This commit is contained in:
iDutchy 2021-07-13 19:37:14 -05:00
parent f8bf64c9b7
commit d7a0b0af04

View File

@ -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."""
guild = self.message.guild
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))
return guild