fix: deprecate underscore in favor of underline (#10054)

* fix: deprecate `underscore` in favor of `underline`

* refactor: use `underline` in `underscore`

Co-authored-by: Almeida <github@almeidx.dev>

---------

Co-authored-by: Almeida <github@almeidx.dev>
This commit is contained in:
Danial Raza
2023-12-17 21:44:54 +01:00
committed by GitHub
parent 1acc9abae2
commit 461948c07d
2 changed files with 14 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ import {
strikethrough,
time,
TimestampStyles,
underscore,
underline,
unorderedList,
userMention,
} from '../src/index.js';
@@ -58,9 +58,9 @@ describe('Message formatters', () => {
});
});
describe('underscore', () => {
describe('underline', () => {
test('GIVEN "discord.js" THEN returns "__discord.js__"', () => {
expect<'__discord.js__'>(underscore('discord.js')).toEqual('__discord.js__');
expect<'__discord.js__'>(underline('discord.js')).toEqual('__discord.js__');
});
});