|
|
@ -33,7 +33,10 @@ export default {
|
|
|
|
const body = { type:command, uid: userid, reason: reason };
|
|
|
|
const body = { type:command, uid: userid, reason: reason };
|
|
|
|
Blacklists.create(body);
|
|
|
|
Blacklists.create(body);
|
|
|
|
let user = userid;
|
|
|
|
let user = userid;
|
|
|
|
if (command !== 'guild') {user = client.users.fetch(userid).tag;}
|
|
|
|
if (command !== 'guild') {
|
|
|
|
|
|
|
|
await client.users.resolve(userid);
|
|
|
|
|
|
|
|
user = client.users.fetch(userid).tag;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return interaction.editReply(`${user} has been blacklisted from ${command} with the following reason ${reason}`);
|
|
|
|
return interaction.editReply(`${user} has been blacklisted from ${command} with the following reason ${reason}`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|