Skip to content

Discord Invite benefit fails with the @everyone role #4009

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

Open
frankie567 opened this issue Sep 18, 2024 · 2 comments
Open

Discord Invite benefit fails with the @everyone role #4009

frankie567 opened this issue Sep 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@frankie567
Copy link
Member

It looks like Discord doesn't consider it as a role that can be added. We should probably handle this one specifically

{"benefit_id": "93f47997-efb6-4e40-852d-da13c6db87b2", "user_id": "ebd0ac0f-153c-4b8c-ae52-dd5cc04a61a2", "error": "Client error '404 Not Found' for url 'https://discord.com/api/v10/guilds/1198996134551625848/members/229571327365873665/roles/1198996134551625848'\nFor more information check: [https://httpstatuses.com/404",](https://httpstatuses.com/404%22,) "status_code": 404, "body": "{\"message\": \"Unknown Role\", \"code\": 10011}", "event": "HTTP error while adding member", "job_try": 5, "job_id": "benefit.grant:9264c6a677fd46b5bd7cc2cca8cdab7f", "enqueue_time": "2024-09-18T11:31:38.534000+00:00", "score": 1726659251051, "request_correlation_id": "b5d3be2a-ac89-427a-9551-310af9307696", "correlation_id": "131f97f6-3f50-4fdd-b24b-880d9e15663b", "level": "warning", "logger": "polar.benefit.benefits.discord", "timestamp": "2024-09-18T11:34:11.704628Z"}
@frankie567 frankie567 added the bug Something isn't working label Sep 18, 2024
@thewilloftheshadow
Copy link

Adding a bit of context to this, the easiest way to detect this is that the @everyone role's ID will always match the guild's ID

@frankie567
Copy link
Member Author

@thewilloftheshadow Really?! That's super helpful to know, thank you 🙏 That'll make the fix way much easier!

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
Status: No status
Development

No branches or pull requests

2 participants