itzg / itzg/discord-github-melder-bot
Handle permission failures in Discord calls better
- Dominant language
- Java
- Stars
- 4
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
For example:
```
2022-01-18 01:11:55.315 WARN 1 --- [oundedElastic-2] m.i.m.integrations.RoleHandlingService : Failure during processInitialRoleAssignments
discord4j.rest.http.client.ClientException: PUT /guilds/[redacted]/members/[redacted]/roles/[redacted] returned 403 Forbidden with response {code=50013, message=Missing Permissions}
at discord4j.rest.http.client.ClientResponse.clientException(ClientResponse.java:171) ~[discord4j-rest-3.2.1.jar:3.2.1]
```
Also the 500 error template didn't have access to the expected `message`.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating RoleHandlingService and the 500 error template referenced by the report, then trace how the Discord4J 403 response reaches them. Confirm the completed behavior against the Missing Permissions example and ensure the 500 template can access the expected message.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100