Skip to content

Commit e31cc76

Browse files
committed
Remove redundant category checks
1 parent 8ab48fc commit e31cc76

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

core/thread.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,20 +1294,6 @@ async def create(
12941294

12951295
self.cache[recipient.id] = thread
12961296

1297-
# Schedule thread setup for later
1298-
cat = self.bot.main_category
1299-
if category is None and len(cat.channels) >= 49:
1300-
fallback_id = self.bot.config["fallback_category_id"]
1301-
if fallback_id:
1302-
fallback = discord.utils.get(cat.guild.categories, id=int(fallback_id))
1303-
if fallback and len(fallback.channels) < 49:
1304-
category = fallback
1305-
1306-
if not category:
1307-
category = await cat.clone(name="Fallback Modmail")
1308-
self.bot.config.set("fallback_category_id", str(category.id))
1309-
await self.bot.config.update()
1310-
13111297
if (message or not manual_trigger) and self.bot.config["confirm_thread_creation"]:
13121298
if not manual_trigger:
13131299
destination = recipient

0 commit comments

Comments
 (0)