mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 15:57:47 +02:00
Fix reactIfAble
This commit is contained in:
@@ -283,6 +283,7 @@ module.exports = class Util {
|
|||||||
|
|
||||||
static async reactIfAble(msg, user, emoji, fallbackEmoji) {
|
static async reactIfAble(msg, user, emoji, fallbackEmoji) {
|
||||||
const dm = !msg.guild;
|
const dm = !msg.guild;
|
||||||
|
if (!emoji) emoji = fallbackEmoji;
|
||||||
if (fallbackEmoji && (!dm && !msg.channel.permissionsFor(user).has('USE_EXTERNAL_EMOJIS'))) {
|
if (fallbackEmoji && (!dm && !msg.channel.permissionsFor(user).has('USE_EXTERNAL_EMOJIS'))) {
|
||||||
emoji = fallbackEmoji;
|
emoji = fallbackEmoji;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user