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 1, 2024. It is now read-only.
Could use errors.As with a *discordgo.RESTError[1], then check if restErr.Message != nil && restErr.Message.Code == discordgo.ErrCodeUnknownChannel[2] to detect the error condition for trying to send a message to a channel that no longer exists.
Probably simplest to just delete the subscription with subscriptions.Delete(n.SubscriptionID). An easy efficiency win to avoid spurious extra deletes would be to just track which subscriptions have been deleted as part of this process during bot.Update and then just skip over any notifications corresponding to those IDs.