changes or whatevs
parent
fd5d2f5d30
commit
8384cceefb
|
@ -88,7 +88,7 @@ export default class Apply extends Command {
|
||||||
func: async (client: Client, ...data: any[]) => {
|
func: async (client: Client, ...data: any[]) => {
|
||||||
const dmember = await client.guilds.get(client.config.guildID).getRESTMember(data[0]);
|
const dmember = await client.guilds.get(client.config.guildID).getRESTMember(data[0]);
|
||||||
const member = await this.client.db.Member.findOne({ userID: dmember.id }).lean().exec();
|
const member = await this.client.db.Member.findOne({ userID: dmember.id }).lean().exec();
|
||||||
const { CloudServicesUtilP } = require('../util');
|
const CloudServicesUtilP = <typeof CloudServicesUtil>require('../util/CloudServices').default;
|
||||||
const csAccount = await CloudServicesUtilP.fetchAccountStatus(dmember.id, this.client.config.internalKey);
|
const csAccount = await CloudServicesUtilP.fetchAccountStatus(dmember.id, this.client.config.internalKey);
|
||||||
if (!member) {
|
if (!member) {
|
||||||
const addMember = new this.client.db.Member({
|
const addMember = new this.client.db.Member({
|
||||||
|
|
Loading…
Reference in New Issue