import discordbot = discord.Bot()@bot.slash_command(name = "chat")async def chat(ctx, message: str): ... мой кодbot.run('токен')
Ignoring exception in on_connect
Traceback (most recent call last):
File "C:\Users\Kidborg\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\client.py", line 352, in _run_event
await coro(*args, **kwargs)
File "C:\Users\Kidborg\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\bot.py", line 793, in on_connect
await self.register_commands()
File "C:\Users\Kidborg\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\bot.py", line 460, in register_commands
await self.http.bulk_upsert_command_permissions(
File "C:\Users\Kidborg\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\http.py", line 338, in request
raise HTTPException(response, data)
discord.errors.HTTPException: 405 Method Not Allowed (error code: 0): 405: Method Not Allowed
Код:
``` ```