channel = ctx.message.author.voice.voice_channel
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'VoiceState' object has no attri
我找不到解决这个问题的办法,所以我来了我为我的discord服务器做了一个discord.py重写的机器人,我想实现当用户加入语音通道时我的机器人会说些什么的功能。discord.ext.commands.errors.CommandInvokeError: Command raised an exception:
AttributeError: 'Member' object has no attribute 'voice_channel
所以我试着用discord.py做一个音乐机器人,但是我解决不了这个错误 "AttributeError:'Bot‘对象没有’add_Cog‘属性“ 下面是我的代码: import discord if ctx.author.voice is None: voice_channelctx.voice_client is
大家好,我现在正在用discord.py编程,我有一个命令有问题,那就是把每个人都移到我的频道。name='moveall')if ctx.author.guild_permissions.kick_members: if voice_channel is ctx.author.voice.channel:
contin