Added channel lock for eco.

This commit is contained in:
Keanu Timmermans 2021-03-13 15:09:18 +01:00
parent a21ed7a97f
commit 3f4ee9315f
Signed by: keanucode
GPG Key ID: A7431C0D513CA93B
1 changed files with 2 additions and 2 deletions

View File

@ -62,9 +62,9 @@ export function getSendEmbed(sender: User, receiver: User, amount: number): obje
}
export function isAuthorized(guild: Guild | null, channel: TextChannel | DMChannel | NewsChannel): boolean {
if (guild?.id === "637512823676600330" || process.argv[2] === "dev") return true;
if (guild?.id === "637512823676600330" && channel?.id === "669464416420364288" || process.argv[2] === "dev") return true;
else {
channel.send("Sorry, this command can only be used in Monika's emote server.");
channel.send("Sorry, this command can only be used in Monika's emote server. (#mon-stocks)");
return false;
}
}