mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
feat: add linked roles formatters (#10461)
* feat: add linked roles formatters * docs: requested changes Co-authored-by: Almeida <github@almeidx.dev> * docs: remove locale --------- Co-authored-by: Almeida <github@almeidx.dev> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -17,6 +17,7 @@ import {
|
||||
hyperlink,
|
||||
inlineCode,
|
||||
italic,
|
||||
linkedRoleMention,
|
||||
messageLink,
|
||||
orderedList,
|
||||
quote,
|
||||
@@ -145,6 +146,12 @@ describe('Message formatters', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('linkedRoleMention', () => {
|
||||
test('GIVEN roleId THEN returns "<id:linked-roles:[roleId]>"', () => {
|
||||
expect(linkedRoleMention('815434166602170409')).toEqual('<id:linked-roles:815434166602170409>');
|
||||
});
|
||||
});
|
||||
|
||||
describe('chatInputApplicationCommandMention', () => {
|
||||
test('GIVEN commandName and commandId THEN returns "</[commandName]:[commandId]>"', () => {
|
||||
expect(chatInputApplicationCommandMention('airhorn', '815434166602170409')).toEqual(
|
||||
|
||||
Reference in New Issue
Block a user