You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 20, 2026. It is now read-only.
When the bot tries to send a request to a webhook (seems to be any webhook endpoints but I've only checked the ones in interaction response page) with an invalid webhook token, it receives a 401 status with additional body:
However, nirn just sees the 401 and assumes that the token is invalid and prevents sending further requests to any endpoint using the same token, this would lead to downtime until nirn is restarted.
Here's a sample screenshot from postman for the PATCH /webhooks/{application.id}/{interaction.token}/messages/@original route:
Proposed solution:
Nirn should check for the 50027 code and ignore it / block future requests to only the webhook token rather than the bot token
When the bot tries to send a request to a webhook (seems to be any webhook endpoints but I've only checked the ones in interaction response page) with an invalid webhook token, it receives a 401 status with additional body:
However, nirn just sees the 401 and assumes that the token is invalid and prevents sending further requests to any endpoint using the same token, this would lead to downtime until nirn is restarted.
Here's a sample screenshot from postman for the
PATCH /webhooks/{application.id}/{interaction.token}/messages/@originalroute:Proposed solution:
Nirn should check for the
50027code and ignore it / block future requests to only the webhook token rather than the bot token