Проверил через сайт Developer Portal на разрешение бота и все необходимые разрешения есть. Также добавил в свой код строки
intents = discord.Intents.default()
intents.message_content = True
Вот полный код:
import discord
from discord.ext import commands
from important import TOKEN
intents = discord.Intents.default()
intents.message_content = True
bot = commands.Bot(command_prefix='!', intents=intents)
@bot.event
async def on_ready():
print('Бот был успешно запущен')
@bot.event
async def on_message_edit(before, after):
channel = bot.get_channel(1114854745698480240)
await channel.send(f'Автор: {before.author}: Сообщение до: {before.content} | после: {after.content}')
@bot.command()
async def test(ctx):
await ctx.send('Test')
bot.run(TOKEN)
На событие on_message_edit оно реагирует, но на команду нет
В консоли или в дискорде ничего не пишет. Разрешение все проверил и на самом сервере