From c0173b87e9e4ca014b469bda474110abd3876ba1 Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Mon, 6 Jan 2025 11:14:40 -0500 Subject: [PATCH] fix: don't edit on channel send --- core.py | 2 +- utils.py | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/core.py b/core.py index 7549d19..914d332 100644 --- a/core.py +++ b/core.py @@ -98,7 +98,7 @@ async def on_message(message, edited=False): elif len(output.strip()) == 0: await utils.add_check_reaction(message) else: - await utils.channel_send(message, output) + await utils.reply(message, output) case C.CLEAR | C.PURGE if message.author.id in constants.OWNERS: await commands.tools.clear(message) case C.JOIN: diff --git a/utils.py b/utils.py index e644cb9..7902b3e 100644 --- a/utils.py +++ b/utils.py @@ -49,15 +49,9 @@ async def reply(message, *args, **kwargs): async def channel_send(message, *args, **kwargs): - if message.id in message_responses: - await message_responses[message.id].edit( - *args, **kwargs, allowed_mentions=disnake.AllowedMentions.none() - ) - else: - response = await message.channel.send( - *args, **kwargs, allowed_mentions=disnake.AllowedMentions.none() - ) - message_responses[message.id] = response + await message.channel.send( + *args, **kwargs, allowed_mentions=disnake.AllowedMentions.none() + ) async def invalid_user_handler(interaction):