Skip to content

Commit 8e2dd50

Browse files
committed
make sure ids are ints
1 parent 796e3c0 commit 8e2dd50

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,13 +502,13 @@ async def on_guild_channel_delete(self, channel):
502502
return
503503

504504
if not isinstance(channel, discord.TextChannel):
505-
if self.config.get('main_category_id') == channel.id:
505+
if int(self.config.get('main_category_id')) == channel.id:
506506
await self.config.update({
507507
'main_category_id': None
508508
})
509509
return
510510

511-
if self.config.get('log_channel_id') == channel.id:
511+
if int(self.config.get('log_channel_id')) == channel.id:
512512
await self.config.update({
513513
'log_channel_id': None
514514
})

core/thread.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,6 @@ async def create(self, recipient, *, creator=None, category=None):
563563
creator or recipient),
564564
self.bot.api.get_user_logs(recipient.id)
565565
)
566-
# await self.get_dominant_color(recipient.avatar_url)
567566

568567
log_count = sum(1 for log in log_data if not log['open'])
569568
info_embed = self._format_info_embed(recipient, log_url, log_count,

0 commit comments

Comments
 (0)