【发布时间】:2020-10-02 23:35:37
【问题描述】:
我正在尝试创建一个命令,当他们使用该命令时 Zalgofyes 成员用户名,但我无法让它工作我正在使用 python 库 zalgo_text 这里是代码
async def fmsu(ctx):
await ctx.author.edit(nick=zalgo.zalgo().zalgofy(ctx.author)),
await ctx.send("Your username has been Zalgofyed {0.author.mention}".format(ctx.message))```
When I use the command I get this error discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: 'Member' object is not iterable
【问题讨论】:
标签: python command bots discord