mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
emoji-regex
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
const ArgumentType = require('../ArgumentType');
|
||||
const emojiRegex = require('emoji-regex/RGI_Emoji.js');
|
||||
const emojiRegex = require('emoji-regex');
|
||||
|
||||
module.exports = class DefaultEmojiArgumentType extends ArgumentType {
|
||||
constructor(client) {
|
||||
super(client, 'default-emoji');
|
||||
this.regex = new RegExp(`^(?:${emojiRegex().source})$`);
|
||||
this.regex = new RegExp(`^(?:${emojiRegex().toString()})$`);
|
||||
}
|
||||
|
||||
validate(value) {
|
||||
|
||||
Reference in New Issue
Block a user