that failed...

This commit is contained in:
iDutchy 2021-07-13 19:32:30 -05:00
parent 8e6601c2c5
commit f8bf64c9b7
2 changed files with 4 additions and 4 deletions

View File

@ -107,7 +107,7 @@ class BotBase(GroupMixin):
self.extra_events = {}
self.__cogs = {}
self.__extensions = {}
self.__shortcuts = {}
self._shortcuts = {}
self._checks = []
self._check_once = []
self._before_invoke = None
@ -148,7 +148,7 @@ class BotBase(GroupMixin):
raise ValueError("Name must be a string")
if not isinstance(config_dict, dict):
raise ValueError("config_dict must be a dict")
self.__shortcuts[name] = config_dict
self._shortcuts[name] = config_dict
@property
def owner(self):

View File

@ -228,8 +228,8 @@ class Context(discord.abc.Messageable):
def guild(self):
"""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():
if self.bot._shortcuts:
for name, config in self.bot._shortcuts.keys():
setattr(guild, name, config.get(guild.id))
return guild