We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb76d7d commit 8a5aa3bCopy full SHA for 8a5aa3b
discord_slash/context.py
@@ -53,6 +53,8 @@ def __init__(self,
53
self.channel_id = int(_json["channel_id"])
54
if self.guild:
55
self.author = discord.Member(data=_json["member"], state=self.bot._connection, guild=self.guild)
56
+ elif self.guild_id:
57
+ self.author = discord.User(data=_json["member"]["user"], state=self.bot._connection)
58
else:
59
self.author = discord.User(data=_json["user"], state=self.bot._connection)
60
0 commit comments