Как сделать пользовательского бота в Discord, который при написании команды отправляет сообщение в чат?
* Чтобы он попадал в "мои приложения"
Не селф-бот!
Мой код представлен ниже, что здесь не так?
import disnake
from disnake.ext import commands
bot = commands.Bot(command_prefix='!', intents=disnake.Intents.all())
@bot.event
async def on_ready():
print(f'We are logged in as {bot.user}')
@bot.slash_command(name="hello", description="Send a greeting")
async def hello(interaction: disnake.ApplicationCommandInteraction):
await interaction.send("Hello, World!")
bot.run('токен')