Browse Source

fixing /say command

baumsplitter41 4 tháng trước cách đây
mục cha
commit
fe5a27685f
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      VPD_BOT/cogs/say.py

+ 2 - 1
VPD_BOT/cogs/say.py

@@ -21,7 +21,8 @@ class say(commands.Cog):
     ):  
         if channel_input is None:
             channel = ctx.channel
-        channel= discord.utils.get(ctx.guild.channels, id = int(channel_input[2:-1]))
+        else:
+            channel = discord.utils.get(ctx.guild.channels, id = int(channel_input[2:-1]))
         await channel.send(text)
         await ctx.respond("Message sent", ephemeral=True)