|
7 | 7 | - <#1051225367807000706> for questions about datapacks and commands |
8 | 8 | - <#1051227454980755546> for questions about resource packs |
9 | 9 | - <#1143095605577654392> for anything else |
10 | | -More info about the help channels can be found in <#935570290317086841>. |
11 | 10 |
|
12 | 11 | *If you can't see the above channels, make sure you have `Show All Channels` enabled in the server menu.* |
13 | 12 | """ |
14 | 13 |
|
| 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 | + |
15 | 23 | class RedirectCommand(commands.Cog): |
16 | 24 | def __init__(self, bot): |
17 | 25 | self.bot = bot |
18 | 26 |
|
19 | 27 | @commands.message_command(name="Redirect to help channel") |
20 | 28 | 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( |
26 | 43 | text="Requested by " + inter.author.display_name, |
27 | 44 | icon_url=inter.author.display_avatar.url, |
28 | 45 | ) |
|
0 commit comments