Skip to content

Commit c5f230f

Browse files
move category channel type to a constant
1 parent bef98a1 commit c5f230f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

botstrap.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
PYTHON_HELP_CATEGORY_NAME = "python_help_system"
2929
ANNOUNCEMENTS_CHANNEL_NAME = "announcements"
3030
RULES_CHANNEL_NAME = "rules"
31+
GUILD_CATEGORY_TYPE = 4
3132
GUILD_FORUM_TYPE = 15
3233

3334
if not BOT_TOKEN:
@@ -203,7 +204,7 @@ def get_all_channels_and_categories(self) -> tuple[dict[str, str], dict[str, str
203204
name = f"off_topic_{off_topic_count}"
204205
off_topic_count += 1
205206

206-
if channel_type == 4:
207+
if channel_type == GUILD_CATEGORY_TYPE:
207208
categories[name] = channel["id"]
208209
else:
209210
channels[name] = channel["id"]

0 commit comments

Comments
 (0)