File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1205,16 +1205,16 @@ async def create(
1205
1205
1206
1206
# Schedule thread setup for later
1207
1207
cat = self .bot .main_category
1208
- if category is None and len (cat .channels ) == 50 :
1208
+ if category is None and len (cat .channels ) >= 49 :
1209
1209
fallback_id = self .bot .config ["fallback_category_id" ]
1210
1210
if fallback_id :
1211
1211
fallback = discord .utils .get (cat .guild .categories , id = int (fallback_id ))
1212
- if fallback and len (fallback .channels ) != 50 :
1212
+ if fallback and len (fallback .channels ) < 49 :
1213
1213
category = fallback
1214
1214
1215
1215
if not category :
1216
1216
category = await cat .clone (name = "Fallback Modmail" )
1217
- self .bot .config .set ("fallback_category_id" , category .id )
1217
+ self .bot .config .set ("fallback_category_id" , str ( category .id ) )
1218
1218
await self .bot .config .update ()
1219
1219
1220
1220
if (message or not manual_trigger ) and self .bot .config ["confirm_thread_creation" ]:
You can’t perform that action at this time.
0 commit comments