feat: RedeemNitro #709

This commit is contained in:
Elysia
2023-06-17 23:33:56 +07:00
parent 1116a71f7b
commit 0abc2f23e2
2 changed files with 22 additions and 41 deletions

2
typings/index.d.ts vendored
View File

@@ -969,7 +969,7 @@ export class Client<Ready extends boolean = boolean> extends BaseClient {
public fetchPremiumStickerPacks(): Promise<Collection<Snowflake, StickerPack>>;
public fetchWebhook(id: Snowflake, token?: string): Promise<Webhook>;
public fetchGuildWidget(guild: GuildResolvable): Promise<Widget>;
public redeemNitro(code: string, channel?: TextChannelResolvable, failIfNotExists?: boolean): object;
public redeemNitro(code: string, channel?: TextChannelResolvable, paymentSourceId?: Snowflake): object;
public generateInvite(options?: InviteGenerationOptions): string;
public login(token?: string): Promise<string>;
public normalLogin(username: string, password?: string, mfaCode?: string): Promise<string>;