mirror of
https://github.com/keanuplayz/TravBot-v3.git
synced 2024-08-15 02:33:12 +00:00
made .eco's channel lock message more clear
This commit is contained in:
parent
1330b499c8
commit
62c5dd8602
1 changed files with 11 additions and 3 deletions
|
@ -62,9 +62,17 @@ export function getSendEmbed(sender: User, receiver: User, amount: number): obje
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isAuthorized(guild: Guild | null, channel: TextChannel | DMChannel | NewsChannel): boolean {
|
export function isAuthorized(guild: Guild | null, channel: TextChannel | DMChannel | NewsChannel): boolean {
|
||||||
if ((guild?.id === "637512823676600330" && channel?.id === "669464416420364288") || IS_DEV_MODE) return true;
|
if (IS_DEV_MODE) {
|
||||||
else {
|
return true;
|
||||||
channel.send("Sorry, this command can only be used in Monika's emote server. (#mon-stocks)");
|
}
|
||||||
|
|
||||||
|
if (guild?.id !== "637512823676600330") {
|
||||||
|
channel.send("Sorry, this command can only be used in Monika's emote server.");
|
||||||
return false;
|
return false;
|
||||||
|
} else if (channel?.id === "669464416420364288") {
|
||||||
|
channel.send("Sorry, this command can only be used in <#669464416420364288>.");
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue