3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

Fix crash in ReactionRoles emoji validation

This commit is contained in:
Dragory 2020-10-11 14:17:41 +03:00
parent 400f1f0807
commit fde796782e
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
2 changed files with 16 additions and 16 deletions

View file

@ -1255,6 +1255,10 @@ export async function renderRecursively(value, fn: RecursiveRenderFn) {
return value;
}
export function isValidEmoji(emoji: string): boolean {
return isUnicodeEmoji(emoji) || isSnowflake(emoji);
}
export function canUseEmoji(client: Client, emoji: string): boolean {
if (isUnicodeEmoji(emoji)) {
return true;