mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 13:56:25 +02:00
Test
This commit is contained in:
@@ -7,6 +7,7 @@ class EmojiArgumentType extends ArgumentType {
|
||||
}
|
||||
|
||||
validate(value, msg) {
|
||||
if (!value) return false;
|
||||
const matches = value.match(/^(?:<:([a-zA-Z0-9_]+):)?([0-9]+)>?$/);
|
||||
if (matches && msg.client.emojis.has(matches[2])) return true;
|
||||
if (!msg.guild) return false;
|
||||
|
||||
Reference in New Issue
Block a user