refactor(Guild): remove fetchVanityCode() (#5471)

This commit is contained in:
Jan
2021-04-03 20:01:14 +02:00
committed by GitHub
parent 8023250ee7
commit 0a2e0c0e3e
2 changed files with 7 additions and 27 deletions

8
typings/index.d.ts vendored
View File

@@ -662,8 +662,7 @@ declare module 'discord.js' {
public fetchInvites(): Promise<Collection<string, Invite>>;
public fetchPreview(): Promise<GuildPreview>;
public fetchTemplates(): Promise<Collection<GuildTemplate['code'], GuildTemplate>>;
public fetchVanityCode(): Promise<string>;
public fetchVanityData(): Promise<{ code: string; uses: number }>;
public fetchVanityData(): Promise<Vanity>;
public fetchVoiceRegions(): Promise<Collection<string, VoiceRegion>>;
public fetchWebhooks(): Promise<Collection<Snowflake, Webhook>>;
public fetchWidget(): Promise<GuildWidget>;
@@ -3359,6 +3358,11 @@ declare module 'discord.js' {
type UserResolvable = User | Snowflake | Message | GuildMember;
interface Vanity {
code: string | null;
uses: number | null;
}
type VerificationLevel = 'NONE' | 'LOW' | 'MEDIUM' | 'HIGH' | 'VERY_HIGH';
type VoiceStatus = number;