Webhook.send(<message>) discord.py 没有 return 任何东西

Webhook.send(<message>) discord.py doesn't return anything

就像标题中所说的,如果我要做这样的事情:

webhook = await channel.create_webhook(name='test')
msg = await webhook.send(content='test', username='Useless Webhook')
print(f"{msg}\n{type(msg)}")

它returns :

None
<class 'NoneType'>

在不和谐文档中:

Returns
The message that was sent.
Return type
Optional[Message]```

不知道如何解决这个问题...

我的目标是在一段时间后(比如 2 秒)删除 webhook 发送的消息。

嗯,其实也不是很难,我只需要在webhook.send()

中将wait参数设置为True

(我以为wait参数可能会延迟消息)