diff options
| author | 2020-03-29 14:45:52 +0200 | |
|---|---|---|
| committer | 2020-03-29 14:45:52 +0200 | |
| commit | 27327825fe7f840e2326721e4cc12261c89f1805 (patch) | |
| tree | c173d198274191cc2d2bd045a1c6255ab23a2a73 | |
| parent | Deseasonify: adjust bot method defs to a more logical order (diff) | |
Deseasonify: use `self` rather than local `bot` instance var
| -rw-r--r-- | bot/bot.py | 6 | 
1 files changed, 3 insertions, 3 deletions
@@ -48,7 +48,7 @@ class SeasonalBot(commands.Bot):      @property      def member(self) -> Optional[discord.Member]:          """Retrieves the guild member object for the bot.""" -        guild = bot.get_guild(Client.guild) +        guild = self.get_guild(Client.guild)          if not guild:              return None          return guild.me @@ -106,7 +106,7 @@ class SeasonalBot(commands.Bot):      @mock_in_debug(return_value=True)      async def set_banner(self, url: str) -> bool:          """Set the guild's banner to image at `url`.""" -        guild = bot.get_guild(Client.guild) +        guild = self.get_guild(Client.guild)          if guild is None:              log.info("Failed to get guild instance, aborting asset upload")              return False @@ -116,7 +116,7 @@ class SeasonalBot(commands.Bot):      @mock_in_debug(return_value=True)      async def set_icon(self, url: str) -> bool:          """Sets the guild's icon to image at `url`.""" -        guild = bot.get_guild(Client.guild) +        guild = self.get_guild(Client.guild)          if guild is None:              log.info("Failed to get guild instance, aborting asset upload")              return False  |