Skip to content

Commit a1c0663

Browse files
committed
fix(log-guilds): resolve guild join handler
1 parent 183bae9 commit a1c0663

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

botbase/exts/log_guilds.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ async def on_guild_join(self, guild: Guild):
3333
),
3434
color=self.bot.colour,
3535
)
36-
await self.get_channel(self.log_channel).send(embed=embed) # type: ignore
36+
try:
37+
await self.bot.get_channel(self.bot.log_channel).send(embed=embed) # type: ignore
38+
except AttributeError:
39+
pass
3740

3841
async def on_guild_remove(self, guild: Guild):
3942
if guild.unavailable:

0 commit comments

Comments
 (0)