fix(utils/reply): remove content or embeds when editing message
This commit is contained in:
parent
849af9d394
commit
c892358fef
4
utils.py
4
utils.py
@ -93,6 +93,10 @@ async def add_check_reaction(message):
|
||||
|
||||
async def reply(message, *args, **kwargs):
|
||||
if message.id in message_responses:
|
||||
if len(args) == 0:
|
||||
kwargs["content"] = None
|
||||
elif len(kwargs) == 0:
|
||||
kwargs["embeds"] = []
|
||||
await message_responses[message.id].edit(
|
||||
*args, **kwargs, allowed_mentions=disnake.AllowedMentions.none()
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user