diff options
| author | 2023-03-30 13:13:29 +0100 | |
|---|---|---|
| committer | 2023-03-30 13:13:29 +0100 | |
| commit | e4903f80dc409d6ebee7170be8ee5e38c242d81d (patch) | |
| tree | 2309a709a52f8c2bd52d86655a05d68f55464044 /botstrap.py | |
| parent | dedent signature (diff) | |
append forum channel to category
Diffstat (limited to 'botstrap.py')
| -rw-r--r-- | botstrap.py | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/botstrap.py b/botstrap.py index 05f96282b..8d443b3f5 100644 --- a/botstrap.py +++ b/botstrap.py @@ -17,6 +17,7 @@ GUILD_ID = os.getenv("GUILD_ID", None)  COMMUNITY_FEATURE = "COMMUNITY"  PYTHON_HELP_CHANNEL_NAME = "python_help" +PYTHON_HELP_CATEGORY_NAME = "python_help_system"  ANNOUNCEMENTS_CHANNEL_NAME = "announcements"  RULES_CHANNEL_NAME = "rules"  GUILD_FORUM_TYPE = 15 @@ -196,7 +197,8 @@ with DiscordClient() as discord_client:      if create_help_channel:          python_help_channel_name = PYTHON_HELP_CHANNEL_NAME.replace('_', '-') -        python_help_channel_id = create_forum_channel(python_help_channel_name, GUILD_ID, discord_client) +        python_help_category_id = all_categories[PYTHON_HELP_CATEGORY_NAME] +        python_help_channel_id = create_forum_channel(python_help_channel_name, GUILD_ID, discord_client, python_help_category_id)          all_channels[PYTHON_HELP_CHANNEL_NAME] = python_help_channel_id      for channel_name in _Channels.__fields__:  |