fix: catch the correct exception in Paginate

This commit is contained in:
spiral 2021-08-08 15:38:33 -04:00
parent 11bd66e8d8
commit e058d05224
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -130,7 +130,7 @@ namespace PluralKit.Bot {
// 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) { }
catch (ForbiddenException) { }
}
public static async Task<T> Choose<T>(this Context ctx, string description, IList<T> items, Func<T, string> display = null)