Skip to content

Commit b62b5ab

Browse files
committed
Faking the channel ID for low quality post
1 parent 2b70d67 commit b62b5ab

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

bot/context_menus.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ async def handle_command(self, interaction: Interaction, message: Message, chann
4949
notification = f"{message.author.mention}, please showcase your work in <#{channel_id}> and read this message https://discord.com/channels/930170875049820181/930171437841526825/1132078814734848131, specifically the `Project Showcase Guidelines` section."
5050
elif channel_id == HELP_FORUM_CHANNEL_ID:
5151
notification = f"{message.author.mention}, please ask for help in <#{channel_id}> and read this message https://discord.com/channels/930170875049820181/930171437841526825/1132078814734848131, specifically the `Question Quality Guidelines` section."
52+
elif channel_id == "LOW_QUALITY_CHANNEL_ID":
53+
notification = f"{message.author.mention}, please review our messages guidelines at https://discord.com/channels/930170875049820181/930171437841526825 and resubmit your message, this message violates the rules."
5254
else:
5355
notification = f"{message.author.mention}, please post your message in <#{channel_id}>. This channel is not for this type of conversation."
5456

@@ -118,14 +120,14 @@ async def send_to_help_forum(self, interaction: Interaction, message: Message):
118120
@bot.message_command(name="Low quality post")
119121
async def use_high_quality_command(self, interaction: Interaction, message: Message):
120122
"""
121-
Discord message command to instruct users to use the /roadmap slash command.
123+
Discord message command to to do higher quality posts.
122124
123125
Args:
124126
interaction (Interaction): The interaction that triggered the command.
125127
message (Message): The message where the command was invoked.
126128
"""
127-
await interaction.response.send_message("Please review our messages guidelines at https://discord.com/channels/930170875049820181/930171437841526825 and resubmit your message, this message violates the rules.")
128-
129+
await self.handle_command(interaction, message, "LOW_QUALITY_CHANNEL_ID")
130+
129131
@bot.message_command(name="How to use slash commands")
130132
async def how_to_use_slash_command(self, interaction: Interaction, message: Message):
131133
"""

0 commit comments

Comments
 (0)