File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
modules/help_channels/message_commands Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11import disnake
22from disnake .ext import commands
33import utils .log as Log
4+ import variables
45
56MESSAGE = """
67**If you've got a question, please head to the help channels**
1213"""
1314
1415WRONG_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 (
You can’t perform that action at this time.
0 commit comments