Skip to content

Catch InsufficientPermissionExceptions when removing reactions

If the bot does not have the MESSAGE_MANAGE permission on a guild, it throws an InsufficientPermissionExceptions when trying to remove ineligible reactions. Either assert the permission before or catch the exception in case it is thrown (or do both).