change to nanoid

master
Matthew 2022-03-01 14:54:25 -05:00
parent a8a561ecf1
commit f09b9981db
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,6 @@
import type { AxiosError, AxiosStatic } from 'axios'; import type { AxiosError, AxiosStatic } from 'axios';
import axios from 'axios'; import axios from 'axios';
import { Member, Message } from 'eris'; import { Member, Message } from 'eris';
import { nanoid } from 'nanoid';
import { Client, Command, RichEmbed } from '../class'; import { Client, Command, RichEmbed } from '../class';
import { CloudServicesUtil } from '../util'; import { CloudServicesUtil } from '../util';
@ -84,6 +83,7 @@ export default class Apply extends Command {
return true; return true;
}, },
func: async (client: Client, ...data: any[]) => { func: async (client: Client, ...data: any[]) => {
const { nanoid } = require('nanoid');
const token = nanoid(); const token = nanoid();
const member = await client.guilds.get(client.config.guildID).getRESTMember(data[0]); const member = await client.guilds.get(client.config.guildID).getRESTMember(data[0]);