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

Discord Client - gives 0 permissions for invite link on logger #661

Closed
augchan42 opened this issue Nov 29, 2024 · 0 comments · Fixed by #662
Closed

Discord Client - gives 0 permissions for invite link on logger #661

augchan42 opened this issue Nov 29, 2024 · 0 comments · Fixed by #662
Labels
bug Something isn't working

Comments

@augchan42
Copy link
Contributor

Describe the bug

Upon startup if discord is a client, the invite link for the bot has hardcoded permissions = 0 in the logs. This means the bot will have no permission to read or write messages

packages/client-discord/src/index.ts:

https://discord.com/api/oauth2/authorize?client_id=${readyClient.user?.id}&permissions=0&scope=bot%20applications.commands`
`
I also ran into an issue with dupe reactions causing a crash due to colliding ids
And gave the bot a new /joinchannel command to tell the bot to join a specific channel

To Reproduce
Just start the agent with a character card with discord enabled, you will see the following in the logs:

�[32m [2024-11-29T00:37:59.270Z] ✓ Use this URL to add the bot to your server: �[0m

�[32m [2024-11-29T00:37:59.270Z] ✓ https://discord.com/api/oauth2/authorize?client_id=8&permissions=0&scope=bot%20applications.commands �[0m

Expected behavior

We should see proper permissions for the bot to be able to respond and write messages

Additional context

Will create a PR that fixes all 3 issues described

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant