feat: move internal regular expressions to static properties (#5384)

This commit is contained in:
Jan
2021-04-15 00:36:35 +02:00
committed by GitHub
parent 900e57657e
commit 207735cedc
4 changed files with 19 additions and 4 deletions

2
typings/index.d.ts vendored
View File

@@ -906,6 +906,7 @@ declare module 'discord.js' {
public delete(): Promise<GuildTemplate>;
public edit(options?: { name?: string; description?: string }): Promise<GuildTemplate>;
public sync(): Promise<GuildTemplate>;
public static GUILD_TEMPLATES_PATTERN: RegExp;
}
export class GuildPreviewEmoji extends BaseGuildEmoji {
@@ -978,6 +979,7 @@ declare module 'discord.js' {
public delete(reason?: string): Promise<Invite>;
public toJSON(): object;
public toString(): string;
public static INVITES_PATTERN: RegExp;
}
export class Message extends Base {