Skip to content

Commit

Permalink
Fix Message.guild in context menu not pointing to the proper guild
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed Mar 29, 2024
1 parent 0484a5a commit 08b138c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions discord/app_commands/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ def _get_resolved_items(cls, interaction: Interaction, resolved: ResolvedData) -

# Type checker doesn't understand this due to failure to narrow
message = Message(state=state, channel=channel, data=message_data) # type: ignore
message.guild = guild
key = ResolveKey(id=message_id, type=-1)
completed[key] = message

Expand Down

0 comments on commit 08b138c

Please sign in to comment.