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

Unable to run successfully e01_basic_ping_bot #2760

Open
lorenzo111111 opened this issue Feb 9, 2024 · 2 comments
Open

Unable to run successfully e01_basic_ping_bot #2760

lorenzo111111 opened this issue Feb 9, 2024 · 2 comments

Comments

@lorenzo111111
Copy link

I was trying to run the example 1 (see title), but I was unsuccessful.
I set the DISCORD_TOKEN correctly and initialization seems successful. However, when I receive a "!ping" message I got the following error:
Error sending message: Http(UnsuccessfulRequest(ErrorResponse { status_code: 401, url: "https://discord.com/api/v10/channels/1205198741049708545/messages", method: POST, error: DiscordJsonError { code: 0, message: "401: Unauthorized", errors: [] } }))

@jamesbt365
Copy link
Contributor

Your bot doesnt have permissions to send messages in that channel.

@lorenzo111111
Copy link
Author

Your bot doesnt have permissions to send messages in that channel.

How can I solve?

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

2 participants