From 4bada5b4449c5cca5eee253356f22480cd323a7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20H=E1=BB=93ng=20=C4=90=E1=BB=A9c?= Date: Mon, 25 Apr 2022 20:22:24 +0700 Subject: [PATCH] Fix Reddem --- Document/ClientOption.md | 4 ++-- Document/User.md | 4 ++-- src/client/Client.js | 2 +- typings/index.d.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Document/ClientOption.md b/Document/ClientOption.md index bccd248..299f662 100644 --- a/Document/ClientOption.md +++ b/Document/ClientOption.md @@ -17,9 +17,9 @@ new Client({ ```js client.updateCookie(): Promise ``` -- Reddem Nitro +- Redeem Nitro ```js -client.reddemNitro('code'): Promise +client.redeemNitro('code'): Promise ``` ## Sync Status diff --git a/Document/User.md b/Document/User.md index 59d98f0..fb18e86 100644 --- a/Document/User.md +++ b/Document/User.md @@ -295,7 +295,7 @@ await client.user.setPassword('old password', 'new password'); await client.user.disableAccount('password'); // Delete Account [WARNING] Cannot be changed once used! await client.user.deleteAccount('password'); -// Reddem Nitro -await client.reddemNitro('code') +// Redeem Nitro +await client.redeemNitro('code') ``` diff --git a/src/client/Client.js b/src/client/Client.js index 41385fb..3c1bbf1 100644 --- a/src/client/Client.js +++ b/src/client/Client.js @@ -377,7 +377,7 @@ class Client extends BaseClient { * discordapp.com/gifts/code | discord.gift/code * @returns {Promise} */ - async reddemNitro(nitro) { + async redeemNitro(nitro) { if (typeof nitro !== 'string') throw new Error('INVALID_NITRO'); const regexNitro = /discord(?:(?:app)?\.com\/gifts|\.gift)\/([\w-]{2,255})/gi; const code = DataResolver.resolveCode(nitro, regexNitro); diff --git a/typings/index.d.ts b/typings/index.d.ts index 6bb4e5c..a35a533 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -582,7 +582,7 @@ export class Client extends BaseClient { public fetchPremiumStickerPacks(): Promise>; public fetchWebhook(id: Snowflake, token?: string): Promise; public fetchGuildWidget(guild: GuildResolvable): Promise; - public reddemNitro(code: String): Promise; + public redeemNitro(code: String): Promise; public generateInvite(options?: InviteGenerationOptions): string; public login(token?: string): Promise; public isReady(): this is Client;