Stop checking admin commands for sanity, theyre ment to do stupid shit
This commit is contained in:
parent
d832313af9
commit
fdbf586284
9
index.js
9
index.js
|
@ -138,15 +138,6 @@ client.on("interactionCreate", async interaction => {
|
||||||
content: "You do not have permission to use this command.",
|
content: "You do not have permission to use this command.",
|
||||||
ephemeral: true
|
ephemeral: true
|
||||||
});
|
});
|
||||||
// check if the arguments are there
|
|
||||||
if (!interaction.options.getMember("user")) return interaction.reply({
|
|
||||||
content: "You must specify a user.",
|
|
||||||
ephemeral: true
|
|
||||||
});
|
|
||||||
if (!interaction.options.getNumber("amount")) return interaction.reply({
|
|
||||||
content: "You must specify an amount.",
|
|
||||||
ephemeral: true
|
|
||||||
});
|
|
||||||
let outputStatus = await checkAndModifyPoints(interaction.options.getMember("user").user, interaction.options.getNumber("amount"), interaction.options.getBoolean("override") || false);
|
let outputStatus = await checkAndModifyPoints(interaction.options.getMember("user").user, interaction.options.getNumber("amount"), interaction.options.getBoolean("override") || false);
|
||||||
if (outputStatus !== false) {
|
if (outputStatus !== false) {
|
||||||
interaction.reply({
|
interaction.reply({
|
||||||
|
|
Loading…
Reference in a new issue