Показать сообщение отдельно

  #3  
Старый 20.01.2024, 20:56
Ebatte_Sratte
Познающий
Регистрация: 23.01.2022
Сообщений: 77
С нами: 2267665

Репутация: 13
По умолчанию

Цитата:
Сообщение от monotype  

попробуй методами *message.content* и *message.channel.send*

JS:





Код:
import discord
from discord.ext import commands

config = {
    'token': '',
    'prefix': '$',
}

bot = commands.Bot(command_prefix=config['prefix'], intents=discord.Intents.default())

@bot.event
async def on_message(message):
    if message.author != bot.user:
        await message.channel.send(message.content)

bot.run(config['token'])

discord.errors.HTTPException: 400 Bad Request (error code: 50006): Cannot send an empty message
 
Ответить с цитированием