mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
fix(ContextMenuCommandBuilder): allow emoji in name (#10790)
* fix(ContextMenuCommandBuilder): allow emoji in name * test: add emoji from 16.0 https://emojipedia.org/fingerprint * chore: non rule-breaking regex * feat: use simplified regex Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com> * style: prettier --------- Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
d1f56ffb2a
commit
28a945069f
@@ -27,6 +27,11 @@ describe('Context Menu Commands', () => {
|
||||
|
||||
// Translation: thx (according to GTranslate)
|
||||
expect(() => getBuilder().setName('どうも')).not.toThrowError();
|
||||
|
||||
expect(() => getBuilder().setName('🎉').toJSON()).not.toThrowError();
|
||||
expect(() => getBuilder().setName('').toJSON()).not.toThrowError();
|
||||
expect(() => getBuilder().setName('🎉 abc').toJSON()).not.toThrowError();
|
||||
expect(() => getBuilder().setName(' abc').toJSON()).not.toThrowError();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user