Skip to content

Commit 6a01413

Browse files
committed
make wrong channel message work in all help channels
1 parent 6a46720 commit 6a01413

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

modules/help_channels/message_commands/redirect.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import disnake
22
from disnake.ext import commands
33
import utils.log as Log
4+
import variables
45

56
MESSAGE = """
67
**If you've got a question, please head to the help channels**
@@ -12,9 +13,10 @@
1213
"""
1314

1415
WRONG_CHANNEL_MESSAGE = """
15-
Please ask this question again in the correct channel. This channel is **not** for help with datapacks, resource packs, or commands.
16+
Your post is not suited for this channel. To keep the server tidy and organised, please ask it again in the correct one of the following:
1617
- <#1051225367807000706> for questions about datapacks and commands
1718
- <#1051227454980755546> for questions about resource packs
19+
- <#1143095605577654392> for anything else
1820
1921
*If you can't see the above channels, make sure you have `Show All Channels` enabled in the server menu.*
2022
"""
@@ -26,11 +28,11 @@ def __init__(self, bot):
2628

2729
@commands.message_command(name="Redirect to help channel")
2830
async def redirect(self, inter: disnake.MessageCommandInteraction):
29-
if inter.target.channel.parent.id == 1143095605577654392:
31+
if inter.target.channel.parent.id in [variables.help_channels].append(1143095605577654392):
3032
embed = disnake.Embed(
3133
title="This is the wrong channel.",
3234
description=WRONG_CHANNEL_MESSAGE,
33-
color=disnake.Color.red()
35+
color=disnake.Colour.red()
3436
)
3537
else:
3638
embed = disnake.Embed(

0 commit comments

Comments
 (0)