我试图在discord.py中执行一系列命令,其中父命令是"set“,其子命令是”通道“或其他组/命令。正如你可能猜到的,我不希望任何人都能设置一个欢迎或告别频道。has_permissions(manage_server=True) # enter command functionality here
...and我在这个组中创建一个子命令
你好,我正在尝试为我的不一致服务器创建一个音乐机器人。但是,当我尝试播放音乐时,错误是
query "song: Failed to parse JSON (caused by JSONDecodeError('Expecting value: line 1 column 1 (char 0)')); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how t
所以,我一直在试图找出如何下载附件,但我似乎不知道如何下载。ctx.message.attachments.url不工作。discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'Message' object has no attribute 'attachment'
在修复