腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
@
bot.command
()
AttributeError
:“
Client
”
对象
没有
“”
command
“”
属性
“”
python
、
discord.py
、
discord.py-rewrite
from discord.ext import commandsasync def on_ready():async def on_message(message): if message.content.find("
浏览 7
提问于2020-05-03
得票数 0
1
回答
Python
AttributeError
:'
Client
‘
对象
没有
属性
’命令‘
python
Users\stast\OneDrive\Рабочий回溯(最近一次调用):文件"C:\Users\stast\OneDrive\Рабочийстол\ManagunBot\bot.py",第19行,@
bot.command
()
AttributeError
:'
Client
‘
对象
没有
属性
’命令‘from discord.ext import commands pr
浏览 5
提问于2021-10-18
得票数 1
1
回答
AttributeError
:“
Client
”
对象
没有
属性
“”
command
“”
python-3.x
、
error-handling
、
discord.py
我添加了以下代码: @
client
.
command
(pass_context=True)username = ctx.message.author.display_name在我的代码行的末尾,当我试图让机器人上线时,我得到了这个错误:
AttributeError
: '
Client
' object has no attribute '
command
'
浏览 25
提问于2019-04-21
得票数 0
2
回答
Python:
AttributeError
:'
Client
‘
对象
没有
'
command
’
属性
python
、
discord.py
我一直受到这个错误的困扰:
AttributeError
:'
Client
‘
对象
没有
'
command
’
属性
。我想尽一切办法来修复它,但我不知道。任何帮助都可以。请帮帮我!):@
client
.
command
() await ctx.
浏览 0
提问于2021-01-27
得票数 0
1
回答
Discord.py error
AttributeError
:'
Client
‘
对象
没有
属性
’命令‘
discord.py
为什么
没有
用呢?Setup await bot.change_presence(activity=activity) async def help(ctx):
浏览 13
提问于2022-12-02
得票数 0
1
回答
不和谐的音乐机器人
python
、
discord
import commandsimport youtube_dlasync def leave(ctx):
浏览 15
提问于2020-03-08
得票数 0
1
回答
在discord.py中使用用户ID获取用户的头像
discord.py
代码 @
bot.command
() userAvatarUrl = avamember.avatar_urlawait ctx.send(userAvatarUrl) 错误:命令引发异常:成员:‘
AttributeError
’
对象
没有
属性
'avatar_url‘
浏览 78
提问于2021-10-03
得票数 0
回答已采纳
2
回答
如何解除用户禁令?
python
、
python-3.x
、
discord
、
discord.py
我有以下代码输出错误: @
bot.command
(pass_context=True)async def unban2(ctx): banned = <
浏览 4
提问于2018-01-04
得票数 3
回答已采纳
1
回答
当语音通道中无人时,不一致y加入语音命令
python
、
discord.py
我只需要一个elif,以防有人在
没有
语音通话的情况下输入命令。不知道如何去做,任何帮助都将不胜感激。
浏览 3
提问于2021-03-17
得票数 0
1
回答
我正在尝试制作一个简单的discord机器人,它可以加入和离开语音通道,但我无法让机器人离开该通道。
python
、
discord.py
# this
command
makes the bot join the voice channelasync def join(ctx): await voice_channel.connect() @
bot.command
但每当我尝试使用第二个命令时,我都会收到错误: discord.ext.co
浏览 0
提问于2021-05-15
得票数 0
3
回答
Discord.py dm命令
python
、
discord.py
@
bot.command
() id = member.id await我做了这件事,我的错误是: 从exc discord.ext.commands.errors.CommandInvokeError:命令引发的引发CommandInvokeError(exc)异常:
AttributeError
:'Bot‘
对象
没有
属性
'message'
浏览 4
提问于2021-02-15
得票数 0
回答已采纳
1
回答
Discord.py bot.get_context()不返回ctx
对象
python-3.x
、
discord.py
我想从on_message()运行命令,但bot.get_context()返回的是协程
对象
,而不是上下文。代码给出的错误: await bot.get_context(message).invoke(bot.get_
command
("do_something"))
AttributeError
:'coroutine‘
对象
没有
'invoke’
属性
from discord.ext import com
浏览 14
提问于2021-02-18
得票数 0
回答已采纳
1
回答
AttributeError
:“
Command
”
对象
没有
“”check“”
属性
“”
python
、
discord.py
def user_is_me(ctx): @FiveStarBot.
command
(pass_context
浏览 6
提问于2018-07-23
得票数 0
1
回答
属性
错误:'
Client
‘
对象
没有
属性
'
command
’
python
、
pycharm
、
attributeerror
、
discord.py-rewrite
from discord.ext import commands async他的似乎可以工作,但由于某些原因,我的PyCharm仍然显示客户端
没有
属性
命令。有人可以教我怎么修吗?call last): File "C:/Users/danie/PycharmProjects/Discord T
浏览 20
提问于2020-07-05
得票数 1
回答已采纳
3
回答
如何给一个命令起多个名字?
python
、
discord
、
discord.py
我有个命令:async def hellothere(ctx):@
bot.command
(pass_context=True) hellothere(ctx) 但是我收到了一个错误,说明
Command
是不可调用的
浏览 0
提问于2018-05-06
得票数 4
回答已采纳
2
回答
如何检查用户是否在不和谐中扮演特定角色?
python
、
python-3.x
、
discord.py
@
bot.command
(pass_context=True) async def unmute(ctx, user: discord.Member命令引发异常:
AttributeError
:'Member‘
对象
没有
属性
'has_role’ 我不知道该怎么做,所以我很感激我能得到的一切帮助
浏览 0
提问于2019-02-23
得票数 9
回答已采纳
2
回答
discord.py我试图从我的服务器上创建一个afk命令,但每次我运行我的机器人时,它都会给出一个错误
python
、
cmd
、
command
、
python-asyncio
、
discord.py
raised an 'change_nickname'async def on_ready(): print(f'{
client
.user(f"Hi {member
浏览 23
提问于2020-03-10
得票数 0
1
回答
列出
没有
共同行会的朋友,discord.py重写
python
、
discord
、
discord.py
、
discord.py-rewrite
我显然
没有
正确的
属性
,但我在文档中找不到它。
AttributeError
: type object 'User' has no attribute 'mutual_guildsasync def C(ctx):
浏览 24
提问于2018-08-16
得票数 1
回答已采纳
1
回答
我试图使我的不和谐机器人发送一个邀请到特定的服务器,它是连接到数据库中的,但是我的当前代码不能工作
python
、
discord
、
discord.py
、
bots
、
invite
@
bot.command
() mm = bot.get_guild(db[guild_name]) print("test4") 我上到test3,然后它给了我一个
AttributeError
:'voicechannel‘
对象
没有
“通道”的
浏览 9
提问于2022-01-28
得票数 -3
4
回答
尝试使用Discord.py重写将消息发送到特定通道,但不起作用
python
、
python-3.6
、
discord.py-rewrite
AttributeError
: 'NoneType' object has no attribute 'message'import discord return bot = commands.Bot(
command
_prefix
浏览 1
提问于2019-12-10
得票数 6
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Python对象属性的那些事
python渐进-类4
Python3.6内置函数——hasattr
Python是一门动态语言
Python编写渗透工具学习笔记二
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券