79517431

Date: 2025-03-18 12:36:25
Score: 3
Natty:
Report link

I have a similar problem

[2025-03-18 15:26:36] [INFO    ] discord.client: logging in using static token
Traceback (most recent call last):
  File "C:/Users/Валера/Desktop/Bot_DS/Bot.py", line 15, in <module>
    bot.run(settings['token']) # Обращаемся к словарю settings с ключом token, для получения токена.
  File "C:\Users\Валера\AppData\Local\Programs\Python\Python313\Lib\site-packages\discord\client.py", line 906, in run
    asyncio.run(runner())
  File "C:\Users\Валера\AppData\Local\Programs\Python\Python313\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "C:\Users\Валера\AppData\Local\Programs\Python\Python313\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "C:\Users\Валера\AppData\Local\Programs\Python\Python313\Lib\asyncio\base_events.py", line 725, in run_until_complete
    return future.result()
  File "C:\Users\Валера\AppData\Local\Programs\Python\Python313\Lib\site-packages\discord\client.py", line 895, in runner
    await self.start(token, reconnect=reconnect)
  File "C:\Users\Валера\AppData\Local\Programs\Python\Python313\Lib\site-packages\discord\client.py", line 824, in start
    await self.connect(reconnect=reconnect)
  File "C:\Users\Валера\AppData\Local\Programs\Python\Python313\Lib\site-packages\discord\client.py", line 748, in connect
    raise PrivilegedIntentsRequired(exc.shard_id) from None
discord.errors.PrivilegedIntentsRequired: Shard ID None is requesting privileged intents that have not been explicitly enabled in the developer portal. It is recommended to go to https://discord.com/developers/applications/ and explicitly enable the privileged intents within your application's page. If this is not possible, then consider disabling the privileged intents instead.

this my code:

import discord
from discord.ext import commands
from confing import settings

bot = commands.Bot(command_prefix = settings['prefix'],intents=discord.Intents.all());


@bot.command() 
async def hello(ctx):
    author = ctx.message.author 


    await ctx.send(f'Hello, {author.mention}!')
bot.run(settings['token'])
Reasons:
  • Blacklisted phrase (1): I have a similar problem
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I have a similar problem
  • Low reputation (1):
Posted by: Валерос