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;