fix error message
This commit is contained in:
parent
8c95848a70
commit
db03d2d489
2 changed files with 4 additions and 4 deletions
|
@ -85,11 +85,11 @@ async function runCommand(msg, cmd, line) {
|
||||||
if (!cmdObj) return null;
|
if (!cmdObj) return null;
|
||||||
|
|
||||||
if (cmdObj.ownerOnly && msg.author.id != hf.config.owner_id) {
|
if (cmdObj.ownerOnly && msg.author.id != hf.config.owner_id) {
|
||||||
return "No\n\nSent from my iPhone.";
|
return "No\n\nSent from my iPhone";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cmdObj.elevatedOnly && !hf.config.elevated.includes(msg.author.id)) {
|
if (cmdObj.elevatedOnly && !hf.config.elevated.includes(msg.author.id)) {
|
||||||
return "No\n\nSent from my iPhone.";
|
return "No\n\nSent from my iPhone";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cmdObj.guildOnly && !msg.guildID) {
|
if (cmdObj.guildOnly && !msg.guildID) {
|
||||||
|
|
|
@ -12,7 +12,7 @@ function getOption(interaction, command, key) {
|
||||||
async function runCommand(interaction, command) {
|
async function runCommand(interaction, command) {
|
||||||
if (command.ownerOnly && interaction.user.id != hf.config.owner_id) {
|
if (command.ownerOnly && interaction.user.id != hf.config.owner_id) {
|
||||||
return {
|
return {
|
||||||
content: "No\n\nSent from my iPhone.",
|
content: "No\n\nSent from my iPhone",
|
||||||
flags: MessageFlags.EPHEMERAL,
|
flags: MessageFlags.EPHEMERAL,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@ async function runCommand(interaction, command) {
|
||||||
!hf.config.elevated.includes(interaction.user.id)
|
!hf.config.elevated.includes(interaction.user.id)
|
||||||
) {
|
) {
|
||||||
return {
|
return {
|
||||||
content: "No\n\nSent from my iPhone.",
|
content: "No\n\nSent from my iPhone",
|
||||||
flags: MessageFlags.EPHEMERAL,
|
flags: MessageFlags.EPHEMERAL,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue