oops
This commit is contained in:
parent
f8bf64c9b7
commit
d7a0b0af04
@ -229,7 +229,7 @@ class Context(discord.abc.Messageable):
|
|||||||
"""Optional[:class:`.Guild`]: Returns the guild associated with this context's command. None if not available."""
|
"""Optional[:class:`.Guild`]: Returns the guild associated with this context's command. None if not available."""
|
||||||
guild = self.message.guild
|
guild = self.message.guild
|
||||||
if self.bot._shortcuts:
|
if self.bot._shortcuts:
|
||||||
for name, config in self.bot._shortcuts.keys():
|
for name, config in self.bot._shortcuts.items():
|
||||||
setattr(guild, name, config.get(guild.id))
|
setattr(guild, name, config.get(guild.id))
|
||||||
return guild
|
return guild
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user