You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The guild that a message command is used on is not defined (i.e. ctx.target.guild is None). Most of the time, ctx.guild can be used instead for the user to work with but that means that some of the Message class features do NOT work as intended since the message acts as if it were written in DMs.
For example: #1535 returns users even when used in a guild if the message was not previously cached.
I believe this is proper and expected behaviour. ctx.target is a property method for safely retrieving an object of Guild, Member or User through the interaction payload's resolved data – we're using .get() in our call site which can return None if the resolved object cannot be found.
Our current logic handles parsing the existing interaction data, not our cache. Do you mind explaining why you believe the expected result should be a guild?
Library Version
latest
Describe the Bug
The guild that a message command is used on is not defined (i.e.
ctx.target.guild
is None). Most of the time,ctx.guild
can be used instead for the user to work with but that means that some of the Message class features do NOT work as intended since the message acts as if it were written in DMs.For example: #1535 returns users even when used in a guild if the message was not previously cached.
Steps to Reproduce
Results:
Expected Results
Expected:
Minimal Reproducible Code
No response
Traceback
No response
Checklist
Additional Information
No response
The text was updated successfully, but these errors were encountered: