浏览代码

fixing /say command

baumsplitter41 4 月之前
父节点
当前提交
fe5a27685f
共有 1 个文件被更改,包括 2 次插入1 次删除
  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)