mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
feat(Formatters): added new URL utilities and docs (#6014)
* feat(Formatters): added new URL utilities and docs * refactor: use static class to fix docsgen error * fix(Typings): declare members as public * docs(Formatters): add method tags * docs: remove empty line Co-authored-by: SpaceEEC <spaceeec@yahoo.com> Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
This commit is contained in:
30
typings/index.d.ts
vendored
30
typings/index.d.ts
vendored
@@ -176,6 +176,8 @@ declare module 'discord.js' {
|
||||
blockQuote,
|
||||
bold,
|
||||
codeBlock,
|
||||
hideLinkEmbed,
|
||||
hyperlink,
|
||||
inlineCode,
|
||||
italic,
|
||||
quote,
|
||||
@@ -2104,20 +2106,20 @@ declare module 'discord.js' {
|
||||
public static splitMessage(text: string, options?: SplitOptions): string[];
|
||||
}
|
||||
|
||||
export namespace Formatters {
|
||||
export {
|
||||
blockQuote,
|
||||
bold,
|
||||
codeBlock,
|
||||
inlineCode,
|
||||
italic,
|
||||
quote,
|
||||
strikethrough,
|
||||
time,
|
||||
TimestampStyles,
|
||||
TimestampStylesString,
|
||||
underscore,
|
||||
};
|
||||
export class Formatters extends null {
|
||||
public static blockQuote: typeof blockQuote;
|
||||
public static bold: typeof bold;
|
||||
public static codeBlock: typeof codeBlock;
|
||||
public static hideLinkEmbed: typeof hideLinkEmbed;
|
||||
public static hyperlink: typeof hyperlink;
|
||||
public static inlineCode: typeof inlineCode;
|
||||
public static italic: typeof italic;
|
||||
public static quote: typeof quote;
|
||||
public static strikethrough: typeof strikethrough;
|
||||
public static time: typeof time;
|
||||
public static TimestampStyles: typeof TimestampStyles;
|
||||
public static TimestampStylesString: TimestampStylesString;
|
||||
public static underscore: typeof underscore;
|
||||
}
|
||||
|
||||
export class VoiceChannel extends BaseGuildVoiceChannel {
|
||||
|
||||
Reference in New Issue
Block a user