that failed...
This commit is contained in:
parent
8e6601c2c5
commit
f8bf64c9b7
@ -107,7 +107,7 @@ class BotBase(GroupMixin):
|
|||||||
self.extra_events = {}
|
self.extra_events = {}
|
||||||
self.__cogs = {}
|
self.__cogs = {}
|
||||||
self.__extensions = {}
|
self.__extensions = {}
|
||||||
self.__shortcuts = {}
|
self._shortcuts = {}
|
||||||
self._checks = []
|
self._checks = []
|
||||||
self._check_once = []
|
self._check_once = []
|
||||||
self._before_invoke = None
|
self._before_invoke = None
|
||||||
@ -148,7 +148,7 @@ class BotBase(GroupMixin):
|
|||||||
raise ValueError("Name must be a string")
|
raise ValueError("Name must be a string")
|
||||||
if not isinstance(config_dict, dict):
|
if not isinstance(config_dict, dict):
|
||||||
raise ValueError("config_dict must be a dict")
|
raise ValueError("config_dict must be a dict")
|
||||||
self.__shortcuts[name] = config_dict
|
self._shortcuts[name] = config_dict
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def owner(self):
|
def owner(self):
|
||||||
|
@ -228,8 +228,8 @@ class Context(discord.abc.Messageable):
|
|||||||
def guild(self):
|
def guild(self):
|
||||||
"""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.keys():
|
||||||
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