We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 183bae9 commit a1c0663Copy full SHA for a1c0663
botbase/exts/log_guilds.py
@@ -33,7 +33,10 @@ async def on_guild_join(self, guild: Guild):
33
),
34
color=self.bot.colour,
35
)
36
- await self.get_channel(self.log_channel).send(embed=embed) # type: ignore
+ try:
37
+ await self.bot.get_channel(self.bot.log_channel).send(embed=embed) # type: ignore
38
+ except AttributeError:
39
+ pass
40
41
async def on_guild_remove(self, guild: Guild):
42
if guild.unavailable:
0 commit comments