Skip to content

Commit 3c4e6ea

Browse files
committed
redirecting in other help channel has its own message
1 parent 2868921 commit 3c4e6ea

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

modules/help_channels/message_commands/redirect.py

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,39 @@
77
- <#1051225367807000706> for questions about datapacks and commands
88
- <#1051227454980755546> for questions about resource packs
99
- <#1143095605577654392> for anything else
10-
More info about the help channels can be found in <#935570290317086841>.
1110
1211
*If you can't see the above channels, make sure you have `Show All Channels` enabled in the server menu.*
1312
"""
1413

14+
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+
- <#1051225367807000706> for questions about datapacks and commands
17+
- <#1051227454980755546> for questions about resource packs
18+
19+
*If you can't see the above channels, make sure you have `Show All Channels` enabled in the server menu.*
20+
"""
21+
22+
1523
class RedirectCommand(commands.Cog):
1624
def __init__(self, bot):
1725
self.bot = bot
1826

1927
@commands.message_command(name="Redirect to help channel")
2028
async def redirect(self, inter: disnake.MessageCommandInteraction):
21-
embed = disnake.Embed(
22-
title="Please ask this in the help channels!",
23-
description=MESSAGE,
24-
colour=disnake.Colour.orange(),
25-
).set_footer(
29+
if inter.target.channel.id == 1143095605577654392:
30+
embed = disnake.Embed(
31+
title="This is the wrong channel.",
32+
description=WRONG_CHANNEL_MESSAGE,
33+
color=disnake.Color.red()
34+
)
35+
else:
36+
embed = disnake.Embed(
37+
title="Please ask this in the help channels!",
38+
description=MESSAGE,
39+
colour=disnake.Colour.orange(),
40+
)
41+
42+
embed.set_footer(
2643
text="Requested by " + inter.author.display_name,
2744
icon_url=inter.author.display_avatar.url,
2845
)

0 commit comments

Comments
 (0)