diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py index 61e6f5b7..189fc95c 100644 --- a/discord/ext/commands/context.py +++ b/discord/ext/commands/context.py @@ -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