mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ class EmojiArgumentType extends ArgumentType {
|
||||
|
||||
validate(value, msg) {
|
||||
const matches = value.match(/^(?:<:([a-zA-Z0-9_]+):)?([0-9]+)>?$/);
|
||||
if (msg.client.emojis.has(matches[2])) return true;
|
||||
if (matches && msg.client.emojis.has(matches[2])) return true;
|
||||
if (!msg.guild) return false;
|
||||
const search = value.toLowerCase();
|
||||
let emojis = msg.guild.emojis.filterArray(nameFilterInexact(search));
|
||||
|
||||
Reference in New Issue
Block a user