腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
AttributeError
:
模块
“”
discord
“”
没有
属性
“”
Bot
“”
、
当我运行我的代码时,我得到这个错误: File "main.py", line 16, in <module>
AttributeError
: module '
discord
' has no attribute '
Bot
' 我也不能完全确定我必须做些什么才能让它运行。有
没有
人碰巧知道该怎
浏览 55
提问于2021-11-01
得票数 0
回答已采纳
1
回答
Disord.py system_channel.send
错误:*
AttributeError
:
模块
'
discord
.guild‘
没有
属性
'system_channel’@
Bot
.event async def on_message_editawait
discord
.guild.system_channel.send(embed=embed)
浏览 4
提问于2022-10-02
得票数 0
回答已采纳
3
回答
如何修复错误:
模块
“不和谐”
没有
属性
“
Bot
”
、
、
的情况:Traceback (most recent call last):
bot
=
discord
.
Bot
()
AttributeError
: module '
discord
' has no attribute '
Bot
'
浏览 8
提问于2021-10-26
得票数 2
回答已采纳
1
回答
使用python的不和谐斜杠命令
、
、
、
我发现了一个错误:import
discord
浏览 5
提问于2022-08-04
得票数 0
1
回答
AttributeError
:'str‘对象
没有
属性
'get’--
Discord
.py
、
、
、
、
AttributeError
:'str‘对象
没有
属性
'get’ awaitcoro(*args, **kwargs) File "E:\projects\
discord
-
bot
\base
浏览 2
提问于2021-02-19
得票数 2
回答已采纳
1
回答
Python
AttributeError
:'Client‘对象
没有
属性
’命令‘
(venv) C:\Users\stast\OneDrive\Рабочий回溯(最近一次调用):文件"C:\Users\stast\OneDrive\Рабочийстол\ManagunBot\
bot
.py",第19行,@
bot
.command()
AttributeError
:'Client‘对象
没有
属性
’命令‘from
discord
.ext import commandsfrom config im
浏览 5
提问于2021-10-18
得票数 1
2
回答
Discord
.py错误:未命名客户端
当我运行这个程序时,它给了我这样的信息:这是我的原始代码:import os client =
浏览 1
提问于2021-04-09
得票数 0
3
回答
Discord
.py dm命令
、
@
bot
.command() id = member.id await
bot
.send_message(id, "")从exc
discord
.ext.commands.errors.CommandInvokeError:命令引发的引发CommandInvokeError(exc)异常:
AttributeError
:
浏览 4
提问于2021-02-15
得票数 0
回答已采纳
1
回答
Discord
.py获取公会成员的所有名称和描述(python)
、
、
import
discord
def __init__(ctx, **kwargs): for member in ctx.guild.members:
bot
.run("My Token Here",
bot</
浏览 0
提问于2020-08-02
得票数 0
1
回答
如何使
discord
.ext.tasks在齿轮中每隔x分钟发送通道
、
我试过了from
discord
.ext import commandsimport randomfrom
discord
.ext.commands import clean_contentimport aiohttpclass Test(commands.Cog): d
浏览 9
提问于2022-01-11
得票数 2
1
回答
AttributeError
:“
Bot
”对象
没有
特性“”add_roles“”
、
、
我希望当某人登录到服务器时,他会被赋予一个特定的角色from
discord
.ext import commands
bot
= commands.
Bot
(command_prefix='!')from
discord
.utils import get async def on_member_join(me
浏览 5
提问于2019-11-26
得票数 3
回答已采纳
1
回答
反应角色
discord
.py
、
、
我在
discord
.py中做了一个像这样的反应角色事件from
discord
.ext import commandsimport asyncioimport random client =
discord
.Client(intentscommands.
Bot
(command
浏览 3
提问于2022-09-13
得票数 -1
1
回答
如何在任务循环中向特定的不和谐通道发送消息?
、
、
、
import
discord
from
discord
_webhook import DiscordWebhook
bot
= commands.
Bot
(command_prefix="$") async def getAlert(): chan
浏览 9
提问于2022-02-03
得票数 0
回答已采纳
1
回答
为什么send_message不存在?
、
、
、
discord
.ext.commands.errors.CommandInvokeError:命令引发了一个异常:
AttributeError
:'
Bot
‘对象
没有
属性
'send_message’这是我的密码: await client.send_message(ctx.message.author, 'sad')```
AttributeError
: '
Bot
'
浏览 5
提问于2019-09-27
得票数 0
1
回答
Discord
.py error
AttributeError
:'Client‘对象
没有
属性
’命令‘
为什么
没有
用呢?'
bot
=
discord
.Client(command_prefix=command_prefix, intents=intents) @
bot
.event print('Online') activity =
discord
.Gamedef help(ctx):
浏览 13
提问于2022-12-02
得票数 0
1
回答
bot
.get_channel()不在齿轮中工作
、
它在
没有
COG的情况下工作得很好,但是在COG中它不工作,并产生以下错误: NameError: name '
bot
‘未定义from
discord
.ext import): async def channelinfo(self,ctx,*,val:str = None(int(val)) 即使是
discord
.User也<e
浏览 8
提问于2020-06-15
得票数 1
回答已采纳
1
回答
创建文本通道时的
discord
.py
AttributeError
、
、
我正在使用python 3.10 File "C:\Users\dyimi\Desktop\Code related stuff\python\
discord
..py\Palace Guard\venv\lib\site-packages\
discord
\guil
浏览 4
提问于2021-10-20
得票数 0
回答已采纳
1
回答
在消息中为用户分配角色
、
print("dsdsdd")import timefrom
discord
.utils importROLE = "Rekrutant"async def on_ready(): print("
浏览 18
提问于2021-04-17
得票数 0
1
回答
在
discord
.py中使用用户ID获取用户的头像
代码 @
bot
.command() userAvatarUrl = avamember.avatar_urlawait ctx.send(userAvatarUrl) 错误:命令引发异常:成员:‘
AttributeError
’对象
没有
属性
'avatar_url‘
浏览 78
提问于2021-10-03
得票数 0
回答已采纳
2
回答
“NoneType”对象在为python处理不和谐时
没有
属性
'send‘
、
、
我想在
没有
命令的情况下写一条机器人讯息给不和。但我在运行密码时遇到了问题。错误说:'NoneType‘对象
没有
属性
'send’ <em
浏览 0
提问于2019-07-06
得票数 4
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Python那些事——如何用 Python 写一个 Discord 机器人
TokenFi即将推出Token Launcher和QuickLaunch Bot,可通过Telegram即时创建代币等
Python中的AttributeError:属性错误处理
只有这个爆款社交应用,中国无法复制,为什么?
享学课堂-深入理解 Python 的属性查找
热门
标签
更多标签
云服务器
ICP备案
云直播
对象存储
腾讯会议
活动推荐
运营活动
广告
关闭
领券