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

Not starting bot #1

Open
mikeharrisoffical opened this issue Jan 22, 2024 · 3 comments
Open

Not starting bot #1

mikeharrisoffical opened this issue Jan 22, 2024 · 3 comments

Comments

@mikeharrisoffical
Copy link

Hi, Ive run into an issue while trying to use your discord bot. It seems that I cannot start my bot although it does says "Connected to discord!", its not making my discord bot go online could you help?

@NimbleToes
Copy link

@mikeharrisoffical I had the same issue, but I resolved it by going into the bot's settings in the Discord Developer Portal and making sure everything was toggled on under the Privileged Gateway Intents section. Restarted the bot and it worked fine. Check to see if this is your issue.

@adamstirtan
Copy link
Owner

Hi there! Yeah I think @NimbleToes beat me to this. I'm not an expert on all those permissions, but ensuring they're toggled on will do the trick. Let me know if you're still stuck @mikeharrisoffical and I'll dig a little deeper with you.

@NimbleToes
Copy link

You might only need the Message Content Intent toggled on using this bot since it's specifically setting it in the DiscordSocketConfig here

DiscordSocketConfig config = new()
{
GatewayIntents = GatewayIntents.AllUnprivileged | GatewayIntents.MessageContent
};

Since it is a privileged intent to read the message content it needs to explicitly be enabled.
The discord.net docs also list this on their text commands page here https://discordnet.dev/guides/text_commands/intro.html and they recommend using slash commands instead of text commands

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