Skip to content

Commit

Permalink
Change Max Channel per Category to 49
Browse files Browse the repository at this point in the history
Addresses modmail-dev#3002
Will add a 1 channel buffer to the check to account for Discord API bugs preventing the category from actually reaching 50 channels.
  • Loading branch information
Coolguy3289 authored Apr 19, 2021
1 parent 3e4d9b0 commit cb07de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ async def create(

# Schedule thread setup for later
cat = self.bot.main_category
if category is None and len(cat.channels) == 50:
if category is None and len(cat.channels) == 49:
fallback_id = self.bot.config["fallback_category_id"]
if fallback_id:
fallback = discord.utils.get(cat.guild.categories, id=int(fallback_id))
Expand Down

0 comments on commit cb07de8

Please sign in to comment.