mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-13 17:20:14 +00:00
Fix error on paginate timeout when missing permissions
This commit is contained in:
parent
752cd5dbfd
commit
e6bfc6c374
1 changed files with 4 additions and 0 deletions
|
|
@ -160,6 +160,10 @@ namespace PluralKit.Bot {
|
||||||
}
|
}
|
||||||
// If we get a "NotFound" error, the message has been deleted and thus not our problem
|
// If we get a "NotFound" error, the message has been deleted and thus not our problem
|
||||||
catch (NotFoundException) { }
|
catch (NotFoundException) { }
|
||||||
|
// If we get an "Unauthorized" error, we don't have permissions to remove our reaction
|
||||||
|
// which means we probably didn't add it in the first place, or permissions changed since then
|
||||||
|
// either way, nothing to do here
|
||||||
|
catch (UnauthorizedException) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
public static async Task<T> Choose<T>(this Context ctx, string description, IList<T> items, Func<T, string> display = null)
|
public static async Task<T> Choose<T>(this Context ctx, string description, IList<T> items, Func<T, string> display = null)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue