Skip to content

Commit 2fed36f

Browse files
authored
Switch comparison typing from identity to equality
(From Flow's suggestion)
1 parent 5ce20cd commit 2fed36f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord_slash/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def me(self) -> typing.Union[discord.Member, discord.ClientUser]:
137137
138138
:return: Union[discord.Member, discord.ClientUser]
139139
"""
140-
return self.guild.me if self.guild is not None else self.bot.user
140+
return self.guild.me if self.guild != None else self.bot.user
141141

142142
async def defer(self, hidden: bool = False):
143143
"""

0 commit comments

Comments
 (0)