Fix Reddem

This commit is contained in:
Nguyễn Hồng Đức
2022-04-25 20:22:24 +07:00
parent 817aa690ff
commit 4bada5b444
4 changed files with 6 additions and 6 deletions

View File

@@ -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);