polar
polar copied to clipboard
Discord Invite benefit fails with the `@everyone` role
trafficstars
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"}
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
@thewilloftheshadow Really?! That's super helpful to know, thank you 🙏 That'll make the fix way much easier!