change to nanoid
parent
a8a561ecf1
commit
f09b9981db
|
@ -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]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue