From f09b9981dba83f26e3022cbdeea68d36082b93bd Mon Sep 17 00:00:00 2001 From: Matthew R Date: Tue, 1 Mar 2022 14:54:25 -0500 Subject: [PATCH] change to nanoid --- src/commands/apply.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/apply.ts b/src/commands/apply.ts index 11f0490..b444ef2 100644 --- a/src/commands/apply.ts +++ b/src/commands/apply.ts @@ -2,7 +2,6 @@ import type { AxiosError, AxiosStatic } from 'axios'; import axios from 'axios'; import { Member, Message } from 'eris'; -import { nanoid } from 'nanoid'; import { Client, Command, RichEmbed } from '../class'; import { CloudServicesUtil } from '../util'; @@ -84,6 +83,7 @@ export default class Apply extends Command { return true; }, func: async (client: Client, ...data: any[]) => { + const { nanoid } = require('nanoid'); const token = nanoid(); const member = await client.guilds.get(client.config.guildID).getRESTMember(data[0]);