腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
ctx
是
缺少
的
必需
参数
discord.py
、
discord.py-rewrite
帮助我解决此错误"discord.ext.commands.errors.MissingRequiredArgument:
ctx
是
缺少
的
必需
参数
。“在下面编写
的
代码中 import aiohttpfrom discord.ext import commands async def cat(self,
ctx
):
浏览 24
提问于2020-12-17
得票数 0
回答已采纳
1
回答
Ctx
是
缺少
discrd.py
的
必需
参数
。
python
、
discord
、
discord.py
create_voice(make )和create_nsfw(make )正在工作text和channel函数没有得到应该传递
的
上下文,但是voice和nsfw工作得很好@commands.group() ""
浏览 4
提问于2021-07-21
得票数 0
回答已采纳
1
回答
Discord.py "
ctx
是
缺少
的
必需
参数
。“
python
、
command
、
bots
、
discord.py
、
ctx
我想让我
的
机器人用hi回复|hello import discordfrom discord import Game @bot.command() await
ctx
.send('hi') bot.run('████████
浏览 12
提问于2020-10-10
得票数 0
1
回答
ctx
是
必需
的
参数
。
python
、
discord
、
discord.py
我想做一个简单
的
音乐机器人。当我执行命令时,我得到以下错误:discord.ext.commands.errors.MissingRequiredArgument:
ctx
is a required argument that这是我
的
密码:from discord.ext import commands 命令应该在不和谐
浏览 0
提问于2019-05-29
得票数 0
回答已采纳
1
回答
缺少
1
必需
的
位置
参数
:“
ctx
”
python
、
discord.py
我试图让我
的
机器人在用户对消息做出反应之后给出一个角色,但是每次我收到相同
的
错误时。我不明白这个错误意味着什么。有人能帮忙吗?activetedasync def on_ready():async def on_ready(
ctx
): channel = discord.utils.get(
ctx
.gu
浏览 3
提问于2020-10-18
得票数 0
回答已采纳
1
回答
discord.ext.commands.errors.MissingRequiredArgument:
ctx
是
缺少
的
必需
参数
python
、
discord
、
discord.py
#help commandasync def help(prefix,
ctx
, type_help = "None"): await
ctx
.channel.send(author, embed = embed) 我得到了标题中
的
错误。我该如何解决这个问题呢?
浏览 27
提问于2020-09-25
得票数 0
1
回答
不确定等待功能
python
、
async-await
、
discord.py
我用不和谐来写一个不和谐
的
机器人。当从异步函数调用外部函数时,我收到一个错误,告诉我函数中
缺少
一个
参数
'
ctx
‘。我相信我必须使用‘等待’
的
方法,然而,我不确定在哪里。def fromRebootMethod():async def fromReboot(
ctx
): print(message)
浏览 1
提问于2022-06-10
得票数 0
回答已采纳
1
回答
python discord.ext.commands.errors.MissingRequiredArgument:
ctx
是
缺少
的
必需
参数
。
python
['level']}") async def level(self,
ctx
, member: discord.Member = None): member_id = str(member.id) if not member_id in self.user
浏览 1
提问于2021-11-28
得票数 0
2
回答
机器人不和谐调节
的
问题
discord.py
我试着做这样一件事:如果一个人输入了一个命令(例如,ban),但没有输入
参数
(参与者
的
姓名和原因),机器人就会给出相应
的
消息,没有足够
的
参数
和哪一个
参数
。请帮帮我!
浏览 19
提问于2020-07-15
得票数 0
回答已采纳
7
回答
Python Discord.py -
ctx
是
必需
参数
python
、
discord.py
我正在尝试制作一个不和谐
的
机器人,我正在遵循一个简单
的
教程,但我不能让最简单
的
命令工作。我使用
的
是
Python3.6,运行
的
是
discord.py版本0.16.12import timeimport asyncio@bot.command() await
c
浏览 0
提问于2018-07-04
得票数 4
2
回答
参数
“成员”转换为"discord.member“失败
python
、
discord
、
discord.py
@bot.command() if user==None: data = BytesIOpfp=pfp.resize((177,177)) test.save
浏览 2
提问于2021-08-30
得票数 0
回答已采纳
1
回答
我不断地得到一个“
缺少
一个
必需
的
位置
参数
”错误。
python
、
discord
、
discord.py
我一直在制造一个不和谐
的
自动响应机器人与python,我一直收到一个错误信息。TypeError: on_message()
缺少
一个
必需
的
位置
参数
:'msg‘ async def on_message(
ctx
, msg): if "hi" in msg.content: await
ctx
.send ("Hi,
浏览 6
提问于2022-04-19
得票数 -2
1
回答
有人能告诉我我
的
代码中遗漏了什么吗?我不能使用不一致
的
用户名
python
、
python-3.x
、
discord
、
discord.py
im当前获取
的
错误
是
: message
是
一个
缺少
的
必需
参数
。但我不知道遗漏了什么。async def money(self,
ctx
, message): read = open(user, 'a').close()readfile = open(user, 'r').read() int(
浏览 11
提问于2021-01-27
得票数 1
回答已采纳
1
回答
TypeError: on_command_error()
缺少
一个
必需
的
位置
参数
:'
ctx
‘
python
、
discord.py
错误: TypeError: on_command_error()
缺少
一个
必需
的
位置
参数
:'
ctx
‘@bot.event if isinstance(error, commands.CommandNotFoun
浏览 1
提问于2021-12-14
得票数 0
1
回答
Discord.py -有没有一种方法可以使用*args或带有多个单词
的
参数
而不是最后一个
参数
?
python
、
bots
、
discord
、
args
下面
是
当前
的
命令:这已经足够好了,但是我想在*args后面添加更多
的
参数
,或者如果有另一种方法使用name
参数
来允许空格和多个单词。如果我尝试这样做:为了定义这个世界,它总是说world
是
一个
缺少
浏览 0
提问于2020-05-28
得票数 0
2
回答
有没有办法列出某些bot命令
的
参数
?
python
、
command
、
discord.py
、
discord.py-rewrite
我正在尝试为一个命令生成一个错误消息,因为当您没有包含所有
参数
时,它会将它们回显给您,例如:async def foo(self,
ctx
, arg1, arg2):我知道如果我单独运行>foo,它将返回"arg1
是
一个
缺少
的
必需
参数
“,但是我希
浏览 10
提问于2019-07-21
得票数 0
回答已采纳
1
回答
channel
是
缺少
的
必需
参数
discord.py
@client.command(pass_context=True) counter = 0async for message in channel.history(limit=None): a = await
ctx
.channel.puragedeleted await channel.send(f'{result} messages has been de
浏览 22
提问于2021-10-23
得票数 0
回答已采纳
1
回答
角色
是
缺少
的
必需
参数
python
、
discord.py
当我在discord.py上工作时,遇到了一个问题,“角色
是
一个
缺少
的
必需
参数
”async def GiveRole(
ctx
, role): await client.give_roles%(role,user)) 它应该为您提供在“角色”中指定
的
角色。我
的
整个代码
浏览 16
提问于2019-03-30
得票数 0
回答已采纳
1
回答
TypeError: on_message()
缺少
一个
必需
的
位置
参数
:'message‘
discord.py
我正在尝试创建一个获得用户id
的
代码,然后检查它是否与用户id匹配,如果它与之匹配,则发送一条消息.我一直得到错误TypeError: on_message()
缺少
一个
必需
的
位置
参数
:‘message’@client.event member = message.author.id await
ctx
.send
浏览 0
提问于2021-02-16
得票数 1
回答已采纳
1
回答
线程输出快速动作discord.py
python
、
discord
、
discord.py
作为概念im试图将多线程与discord.py集成
的
一个证据,但是当我运行这段代码时,我发现了一个前所未有的错误。有人知道怎么做吗?错误: TypeError:创建()
缺少
一个
必需
的
正位
参数
“
ctx
” guild =
ctx
.guild for i in range(amo
浏览 6
提问于2022-02-15
得票数 0
点击加载更多
相关
资讯
BIM是建筑幕墙设计师的必需工具
创新理念是未来道路的必需路径(2)
缺少原材料,华为是怎样解决的呢?
能源管理是智慧城市发展的必需品
旅游攻略是要的,美食攻略更是不可缺少的
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券