【发布时间】:2022-01-11 14:42:21
【问题描述】:
我正在尝试使用 nextcord.py/dpy 和 discord 官方事件制作一个不和谐事件机器人,但我遇到了 entity_type 问题,因为它给了我一个错误 type error str 没有属性值,我对此感到困惑
这是我的命令
@client.command(name='rp' ,help= 'creates an event')
async def rp(ctx, name=None, time =None, reason = None):
#external =
channel = nextcord.utils.get(ctx.guild.channels, name = 'roleplay-sessions')
await ctx.guild.create_scheduled_event(name=name, channel = channel, start_time = time, description = reason, entity_type = 'external')
任何帮助都会很棒,因为它已经 13 个小时了,我的头很痛,谢谢
【问题讨论】:
标签: python discord.py nextcord