腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
discord.py
AttributeError
:“
Embed
”
对象
没有
“”
get
“”
属性
“”
、
的嵌入,这是我的代码 @commands.command() channel = self.client.
get
_channel[0] await ctx.send(
embed
=
embed
) 每当我运行它时,都会出现以下错误: Ignoring\Python38-32\lib\site-packages
浏览 27
提问于2020-08-07
得票数 1
回答已采纳
1
回答
在交互中添加对消息的反应
、
、
Discord.py
2.0@bot.tree.command()asyncdef poll(interaction: discord.Interaction, question: str): type="rich"
浏览 5
提问于2022-12-03
得票数 0
2
回答
Discord.py
'NoneType‘
对象
没有
属性
'send’
、
、
当我尝试运行该命令时,我总是收到以下错误消息:
Discord.py
'NoneType‘
对象
没有
属性
'send’import jsonfrom discord.extimport commands with open('.@commands.Cog.listener() async def on_member_join(self, me
浏览 3
提问于2021-05-04
得票数 1
回答已采纳
1
回答
AttributeError
:'str‘
对象
没有
属性
'
get
’--
Discord.py
、
、
、
、
AttributeError
:'str‘
对象
没有
属性
'
get
’ animated=data.
get
('animated', False),
AttributeError
: 'str'
浏览 2
提问于2021-02-19
得票数 2
回答已采纳
1
回答
Discord.py
2.0 -获取HybridCommand的上下文
、
、
= discord.
Embed
(title="Test") await cmd.can_run(ctx)
embed
.add_field(name="Usable by you:", value=f"No:\n{
浏览 15
提问于2022-05-27
得票数 1
回答已采纳
3
回答
用Python编程一个不和谐的机器人--我如何发出一个静音命令?
、
client.command(pass_context = True) role = discord.utils.
get
(member.guild.roles, name='Muted')
embed
=discord.
Embed
(titleformat(member, ctx.message.author), color=random.choice
浏览 2
提问于2021-02-07
得票数 1
回答已采纳
1
回答
AttributeError
:“按钮”
对象
没有
属性
“
get
”按钮错误[
discord.py
]
、
python3.8/site-packages/discord_slash/context.py", line 215, in send if components and not all(comp.
get
("type") == 1 fo
浏览 1
提问于2021-10-04
得票数 0
2
回答
使用bot在不和谐中发送消息
、
我在
discord.py
上工作,我对错误
AttributeError
有异议:'NoneType‘
对象
没有
属性
'send’import discord print(f"Logged in as{pybot.user}") channel = pybot.
get
_use
浏览 2
提问于2020-07-09
得票数 0
回答已采纳
3
回答
在带有pycord的信道中发送modals数据
、
、
、
= discord.
Embed
(title="Your Modal Results", color=discord.Color.random())
embed
.add_field(name="Suggestion", value,
embed
=
embed
)
浏览 9
提问于2022-03-14
得票数 0
1
回答
AttributeError
:'Client‘
对象
没有
属性
'author’(不和谐Bot)
、
、
、
、
但是我得到的客户端
对象
没有
属性
'author‘错误。文件"/Users/kailash/Documents/devkai/Amazon /bot.py“,第13行,在on_message
AttributeError
中:'Client‘
对象
没有
属性
'authoramazon ', '') item = search(
浏览 4
提问于2022-11-16
得票数 0
1
回答
AttributeError
:
对象
没有
属性
“
get
”
、
我试图用python将来自json的数据添加到MySql数据库中,但是我得到了错误: xx=validate_string(i.
get
(x,None))
AttributeError
:'str‘
对象
没有
属性
'
get
’import requestsimport pymysql 'Accept': 'application/json','api
浏览 2
提问于2022-02-18
得票数 0
1
回答
错误:命令引发异常:
AttributeError
:'Message‘
对象
没有
属性
'member’
我正在尝试使用
discord.py
向我的Discord机器人添加货币命令。wallet_amt = users[str(user.id)]["wallet"] em.add.field(name="Bank balance", value=bank_amt) await ctx.send(
浏览 23
提问于2021-04-24
得票数 0
2
回答
'
AttributeError
‘:
对象
没有
属性
'
get
’
错误:'UserForm' object has no attribute '
get
'urlpatterns =[全回溯 Request Method:
GET
response =
get</e
浏览 2
提问于2018-07-04
得票数 0
回答已采纳
1
回答
Discord.py
等待req(guild_id,user_id,role.id,reason=reason)
AttributeError
:'NoneType‘
对象
没有
属性
'id’
、
我正试图为我的
discord.py
不和谐机器人做一个黑名单过滤器。我目前得到的结果是:2)
没有
发生角色更改,line 720, in remove_roles
AttributeError
embed
= discord.
Embed
(title="\u
浏览 6
提问于2021-04-13
得票数 0
回答已采纳
2
回答
基于
discord.py
接口的随机猫生成器
、
、
、
我尝试生成一个随机的猫图像,并使用
discord.py
将其放入一个嵌入文件中,但是我得到了一个错误。import keep_aliveimport jsonimport contextlib async with session.
get
(url) as response: return(url=data['
浏览 62
提问于2020-11-10
得票数 0
1
回答
一个与水龙头不协调的问题
、
我使用的例子是
discord.py
lavalink,并且我有一个错误"
AttributeError
:'NoneType‘
对象
没有
属性
'id'“ 我已经安装了lavalink,不知道是什么原因造成的。
浏览 1
提问于2020-12-22
得票数 0
回答已采纳
1
回答
(
discord.py
)
在扩展了
discord.py
以使用按钮和其他组件的discord_components模块中,如果不使用ctx,我想不出如何发送消息。事实是,在一些指南中使用ctx,但这不适合我。我想根据以下原则发送一条消息: message.channel.send(
embed
=
embed
,components = components),但在这个模块(discord_components)中我也尝试使用"send_component_msg“而不是"send",但得到错误的”
属性
错误:"Text
浏览 15
提问于2021-08-10
得票数 1
1
回答
discord.py
-命令引发了一个异常:
AttributeError
:'
Embed
‘
对象
没有
属性
’编辑‘
、
似乎在任何地方都找不到答案,也不知道为什么会这样,因为我从来
没有
遇到过这种情况。编辑消息的位: q = json.loads(q) await msg.edit(
embed
=
embed
2) m = await bot.wait_for('
浏览 4
提问于2021-11-24
得票数 1
回答已采纳
2
回答
如何用Beautiful Soup4抓取HTML修复"
AttributeError
:‘客户端’
对象
没有
属性
'send_message'“
、
、
、
但是,我相信他使用的是较旧版本的
discord.py
。他目前无法接听。我已经搜索了所需的适当更改,但
没有
找到针对我的问题的更改。我已尝试将client.send_message更改为channel.send -收到另一个错误:
AttributeError
:'NoneType‘
对象
没有
'send’
属性
text = test.
get
_text(
浏览 0
提问于2019-07-14
得票数 0
1
回答
向特定通道
discord.py
发送消息时出错
、
、
我在
Discord.py
上制作了一个机器人,并尝试使用参数设置要发送消息的通道。代码是这样的:async def send(ctx, arg1): awaitarg1 282772187812)上键入命令时,它不起作用,并且我得到这个错误: discord.ext.commands.errors.CommandInvokeError:命令引发异常:
AttributeError
:'NoneType‘
对
浏览 0
提问于2020-08-13
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
python渐进-类4
Python进阶——什么是描述符?
Python中的AttributeError:属性错误处理
享学课堂-深入理解 Python 的属性查找
python入门系列:面向对象
热门
标签
更多标签
云服务器
ICP备案
对象存储
腾讯会议
云直播
活动推荐
运营活动
广告
关闭
领券