Closed xayanide closed 2 years ago
The permissions V2 seem to be the cause of the error.
Similar problems have been reported here. 403 Error when setting application command permissions on Discord
And there seems to be an issue that bot owners who do not have 2-step pediatrics cannot create roles. Permissions Calculator
I intend to review the system around roles.
The problem should be solved, but If the old #maches channel is still there, we will need to delete it once. In addition, it is now necessary to manually authorize the command if it is used by someone other than the owner.
Fixed by #81
Describe the bug Discord bot logins then abruptly disconnects after a few seconds.
I think something is going on around here, trace it from there I guess. Or there was a change in Discord that made this occur. It seems like Discord just rolled out some changes.
More info: https://discord.com/blog/slash-commands-permissions-discord-apps-bots https://github.com/discord/discord-api-docs/pull/4830
https://github.com/oceanroleplay/discord.ts/issues/661
https://github.com/Meowhal/osu-ahr/blob/04fc1fb65dc71e8b0228096305b8301b5c6eb295/src/discord/DiscordBot.ts#L51-L53
https://github.com/Meowhal/osu-ahr/blob/04fc1fb65dc71e8b0228096305b8301b5c6eb295/src/discord/DiscordBot.ts#L119
dist
https://github.com/Meowhal/osu-ahr/blob/04fc1fb65dc71e8b0228096305b8301b5c6eb295/dist/discord/DiscordBot.js#L36-L38https://github.com/Meowhal/osu-ahr/blob/04fc1fb65dc71e8b0228096305b8301b5c6eb295/dist/discord/DiscordBot.js#L100
Tried with all 3 intents in the Developer portal.
Prior to this issue, I did not encounter a problem even with all these 3 intents disabled.
Affected version 1.5.17
Steps to reproduce If haven't compiled yet run.
Expected behavior Cleanly continue operating.
Actual behavior Logins then disconnects after a few seconds.
Event type:
unhandledRejection