腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(625)
视频
沙龙
1
回答
如何修复不和谐音乐机器人
属性
、
错误:import randomasync def join(ctx):
浏览 2
提问于2021-08-07
得票数 0
回答已采纳
1
回答
我正在尝试制作一个简单的discord机器人,它可以加入和离开语音通道,但我无法让机器人离开该通道。
、
# this command makes the bot join the voice
channel
async def join(ctx): await voice_
channel
.connect() 第一个
命令
起作用
浏览 0
提问于2021-05-15
得票数 0
1
回答
向特定通道discord.py发送消息时出错
、
、
代码是这样的:async def send(ctx, arg1): await
channel
.send('Message') 当我键入通道id而不是发送时,它可以工作,但当我在不一致(!arg1 282772187812)上键入
命令
时,它不起作用,并且我得到这个错误:
discord.ext.commands.errors.CommandInvokeError
:<
浏览 0
提问于2020-08-13
得票数 0
1
回答
实用程序
命令
引发
异常
:
AttributeError
:‘
discord.ext.commands.errors.CommandInvokeError
:’
对象
没有
属性
'
channel
‘
、
client.latency * 1000)}ms") async def clear(ctx, amount=5): await ctx.
channel
.purge
浏览 8
提问于2019-07-20
得票数 0
回答已采纳
3
回答
Discord.py dm
命令
、
discord.Member): for a in range(5):我做了这件事,我的错误是: 从exc
discord.ext.commands.errors.CommandInvokeError
:
命令
引发
的
引发
CommandInvokeError(exc)
异常
:
AttributeError
:'Bot‘
对象
没有</em
浏览 4
提问于2021-02-15
得票数 0
回答已采纳
1
回答
为什么send_message不存在?
、
、
、
discord.ext.commands.errors.CommandInvokeError
:
命令
引发
了一个
异常
:
AttributeError
:'Bot‘
对象
没有
属性
'send_message’这是我的密码: await client.send_message(ctx.message.author, 'sad')```
AttributeError</e
浏览 5
提问于2019-09-27
得票数 0
2
回答
如何用discord.py编辑嵌入的颜色?
、
、
、
color changing""" msg = await self.message.
channel
.send= discord.Embed(title="Green", colour=0x00FF00)当我运行
命令
时,会得到以下错误:
discord.ext.comm
浏览 6
提问于2020-01-01
得票数 0
回答已采纳
1
回答
提到用户的discord.py随机消息
py最近和我想要机器人发送随机消息,提到用户,但它给了我这个错误:以下是代码:async def randomroman(ctx, *,member: discord.Member] await ctx.messag
浏览 2
提问于2020-07-10
得票数 0
回答已采纳
1
回答
discord.py从dm中获取用户答案
、
我知道这个错误: em2=discord.Embed(Title="Hello",
浏览 2
提问于2021-05-26
得票数 0
回答已采纳
2
回答
命令
引发
异常
:
AttributeError
:'str‘
对象
没有
属性
'
channel
’
、
clear_messages(self, ctx, limit: typing.Optional[int] = 1): with ctx.
channel
.typing(): await ctx.message.delete() 我遇到了这个代码块的问题,其中我得到了一个错误,'str‘
没有
属性
,但'<e
浏览 0
提问于2021-05-16
得票数 0
3
回答
如何仅使用用户id将DM发送给用户
、
、
def dm(userID, *, message): await user.send(message)
discord.ext.commands.errors.CommandInvokeError
:
命令
引发
一个
异常
:
AttributeError
:'NoneType‘
对象
没有
属性
'send’
浏览 17
提问于2022-12-01
得票数 0
1
回答
Discord.py从.json文件中提取ids
、
所以我在应答服务器上寻求帮助,他们都开始对我大喊大叫,公元前,我并
没有
把json文件搞得一团糟。
discord.ext.commands.errors.CommandInvokeError
:
命令
引发
一个
异常
:
AttributeError
:'str‘
对象
没有
属性
'read’这是他们给我的密码
浏览 2
提问于2022-06-20
得票数 -1
回答已采纳
2
回答
命令
和事件差异中的ctx.content (discord.py)
、
、
在discord.py中,有
没有
一些选项可以让我在一个
命令
下访问msg.content (或ctx.content每个人如何使用它)?下面你可以看到我的意思的两个例子。第二个是
命令
,但是msg.content不工作。我的问题是,我不想太多地使用事件,让一切都在一个
命令
之下。@bot.event chat = bot.get_
channel
(797224597443051611) if msg.
channel
.id=
浏览 43
提问于2021-01-19
得票数 0
回答已采纳
1
回答
Discord.py:“上下文”
对象
没有
属性
'id‘错误
、
我有一个踢的
命令
,因为不和,它是工作的两个星期前,但它现在不起作用。discord.Member, *, reason=None):
discord.ext.commands.errors.CommandInvokeError
:
命令
引发
了一个
异常
:
AttributeError
:'Context‘
对象
没有
<e
浏览 4
提问于2020-06-27
得票数 1
回答已采纳
2
回答
尝试创建嵌入
命令
discord.py
、
、
、
def buildembed(ctx): return message.author == ctx.author and message.
channel
== ctx.
channel
title = await bot.wait_for('message',ID')
c
浏览 2
提问于2021-05-20
得票数 0
回答已采纳
1
回答
事件
命令
引发
异常
:
AttributeError
:‘
discord.ext.commands.errors.CommandInvokeError
:’
对象
没有
属性
'get_
channel
、
、
、
在正常通电的情况下,一切都很好,当我已经使用特殊的重新启动
命令
时,就会发出这个错误。代码如下:async def on_ready(): kvuqqs = client.get_
channel
(906998823187017728) await kvuqqs.send('Айоу!site-packages/discord
浏览 0
提问于2021-11-28
得票数 1
1
回答
discord.py使机器人加入设置的语音通道,不一定是运行
命令
的人的通道
、
voice_
channel
= bot.get_
channel
('
channel
id')我想让机器人在收到
命令
时加入特定的语音通道,但上面的代码给出了错误“
命令
引发
了
异常
:
AttributeError
:'NoneType‘
对象
没有
’connect‘
属性
”。
浏览 1
提问于2021-09-19
得票数 0
2
回答
如何解除用户禁令?
、
、
、
我有以下代码输出错误:
discord.ext.commands.errors.CommandInvokeError
:
命令
引发
了一个
异常
:
AttributeError
:‘生成器’
对象
没有
属性
'id‘
浏览 4
提问于2018-01-04
得票数 3
回答已采纳
1
回答
有
没有
办法把日期打印成dd/mm/yyyy
、
、
、
commands.command() await ctx.send(datetime.now().strpdate('%d:%m:%Y'))
discord.ext.commands.errors.CommandInvokeError
:
命令
引发
了一个
异常
:
AttributeError
:'datetime.datetime‘
对象
没有
属性
's
浏览 0
提问于2020-07-07
得票数 1
回答已采纳
3
回答
命令
引发
异常
:
AttributeError
:'Context‘
对象
没有
属性
'id’discord.py
、
with open('welcome.json', 'w',) as f:这是错误消息:
discord.ext.commands.errors.CommandInvokeError
:
命令
引发
了一个
异常
:
AttributeError
:'Context‘
对象
没有
属性
'id’ 我怎么才能解决这个问
浏览 3
提问于2021-08-14
得票数 1
回答已采纳
点击加载更多
相关
资讯
Python基础教程8.5 异常之禅
Python基础教程 raise 语句
Python基础教程
Python标准库系列:我们讨厌的异常
【入门】Python的绑定
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
云直播
活动推荐
运营活动
广告
关闭
领券