fetch
This commit is contained in:
parent
366e15f7e4
commit
cc25953e90
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ 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.resolve(userid).tag;}
|
if (command !== 'guild') {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}`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue