fix: catch the correct exception in Paginate
This commit is contained in:
parent
11bd66e8d8
commit
e058d05224
@ -130,7 +130,7 @@ namespace PluralKit.Bot {
|
|||||||
// If we get an "Unauthorized" error, we don't have permissions to remove our reaction
|
// 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
|
// which means we probably didn't add it in the first place, or permissions changed since then
|
||||||
// either way, nothing to do here
|
// either way, nothing to do here
|
||||||
catch (UnauthorizedException) { }
|
catch (ForbiddenException) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
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…
Reference in New Issue
Block a user