Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have a problem with intents #131

Open
AGithubUs opened this issue Sep 17, 2023 · 3 comments
Open

I have a problem with intents #131

AGithubUs opened this issue Sep 17, 2023 · 3 comments

Comments

@AGithubUs
Copy link

line 13, in
bot = commands.Bot(command_prefix=config.BOT_PREFIX,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: BotBase.init() missing 1 required keyword-only argument: 'intents'
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x000001C3362CA3D0>

@solaluset
Copy link

Hello. This project is outdated, I suggest you to use my fork.

@AGithubUs
Copy link
Author

ok

@Karli911
Copy link

maybe you can do something like this.

intents = discord.Intents.default()
intents.members = True #used to let the bot to get info about the user
intents.message_content = True #lets the bot read the message contents

bot = commands.Bot(command_prefix=config.BOT_PREFIX,intents=intents, pm_help=True, case_insensitive=True)

this has worked so far for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants