Convert all react methods to reactIfAble

This commit is contained in:
Dragon Fire
2020-11-26 11:44:51 -05:00
parent cd166dce0e
commit c31fd9151e
10 changed files with 23 additions and 20 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ module.exports = class Util {
if (joined.includes(res.author.id)) return false;
if (res.content.toLowerCase() !== 'join game') return false;
joined.push(res.author.id);
res.react(SUCCESS_EMOJI_ID || '✅').catch(() => null);
Util.reactIfAble(res, res.author, SUCCESS_EMOJI_ID, '✅');
return true;
};
const verify = await msg.channel.awaitMessages(filter, { max: max - 1, time: 60000 });