Forráskód Böngészése

Fixing that /say is sending in curret channel if no channel is specified and adding a message listing registered slash commands on bot startup.

baumsplitter41 4 hónapja
szülő
commit
408b23946b
2 módosított fájl, 2 hozzáadás és 2 törlés
  1. 1 1
      VPD_BOT/cogs/say.py
  2. 1 1
      VPD_BOT/main.py

+ 1 - 1
VPD_BOT/cogs/say.py

@@ -17,7 +17,7 @@ class say(commands.Cog):
             self,
             ctx,
             text: str = Option(description="Input the text you want to send"),
-            channel_input: discord.TextChannel = Option(description="Select the channel,where you want to send the message.")
+            channel_input: discord.TextChannel = Option(description="Select the channel,where you want to send the message.", required=False)
     ):  
         if channel_input is None:
             channel = ctx.channel

+ 1 - 1
VPD_BOT/main.py

@@ -514,7 +514,7 @@ class PersistentRoleView(discord.ui.View):
 
 
 
-@bot.slash_command(name="verify_message", description="Send the reactionrole message")
+@bot.slash_command(name="verify_message", description="Send the reactionrole message| This is for setup only!")
 async def setup_rr(
     ctx: discord.ApplicationContext,
     channel: discord.TextChannel,