[英]changing the embed's footer
i have this code that would change an embed's footer and resend it to the log channel, but now it doesn't work anymore for somereason我有这段代码可以更改嵌入的页脚并将其重新发送到日志通道,但现在由于某种原因它不再工作了
this is the code:这是代码:
if message.channel == bot_commands_channel:
for em in message.embeds:
em.set_footer('''new footer''')
await log_channel.send(embed=em)
return
and this is the error i get:这是我得到的错误:
File "main.py", line 297, in on_message
em.set_footer('''new footer''')
TypeError: set_footer() takes 1 positional argument but 2 were given
The argument for set_footer
is keyword-only: set_footer
的参数仅是关键字:
embed.set_footer(text='''new footer''') # note the `text=...`
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.