Animated emoji, npm fix

This commit is contained in:
Daniel Odendahl Jr
2017-12-31 22:48:48 +00:00
parent d2e9bfbf3e
commit 0933c8f318
6 changed files with 24 additions and 9 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ class EmojiArgumentType extends ArgumentType {
}
validate(value, msg) {
const matches = value.match(/^(?:<:([a-zA-Z0-9_]+):)?([0-9]+)>?$/);
const matches = value.match(/^(?:<a?:([a-zA-Z0-9_]+):)?([0-9]+)>?$/);
if (matches && msg.client.emojis.has(matches[2])) return true;
if (!msg.guild) return false;
const search = value.toLowerCase();