bot.settings: aaaaaaaaaaaaaaaaaaaaaaa
This commit is contained in:
parent
e0d67ff501
commit
73576a911a
1 changed files with 2 additions and 2 deletions
|
@ -185,7 +185,7 @@ settings.callback = async function (msg, line, cmd, key, value) {
|
||||||
if (!guildSettings.flags[key]) return "Unknown key.";
|
if (!guildSettings.flags[key]) return "Unknown key.";
|
||||||
|
|
||||||
const enabled = guildSettings.hasFlag(msg.guildID, key);
|
const enabled = guildSettings.hasFlag(msg.guildID, key);
|
||||||
if (enabled) return "Already enabled.";
|
if (enabled === true) return "Already enabled.";
|
||||||
|
|
||||||
await guildSettings.enableFlag(msg.guildID, key);
|
await guildSettings.enableFlag(msg.guildID, key);
|
||||||
return {reaction: "\uD83D\uDC4C"};
|
return {reaction: "\uD83D\uDC4C"};
|
||||||
|
@ -200,7 +200,7 @@ settings.callback = async function (msg, line, cmd, key, value) {
|
||||||
if (!guildSettings.flags[key]) return "Unknown key.";
|
if (!guildSettings.flags[key]) return "Unknown key.";
|
||||||
|
|
||||||
const enabled = guildSettings.hasFlag(msg.guildID, key);
|
const enabled = guildSettings.hasFlag(msg.guildID, key);
|
||||||
if (!enabled) return "Already disabled.";
|
if (enabled === false) return "Already disabled.";
|
||||||
|
|
||||||
await guildSettings.disableFlag(msg.guildID, key);
|
await guildSettings.disableFlag(msg.guildID, key);
|
||||||
return {reaction: "\uD83D\uDC4C"};
|
return {reaction: "\uD83D\uDC4C"};
|
||||||
|
|
Loading…
Reference in a new issue