Fixed invite command

This commit is contained in:
2022-07-15 16:26:40 +07:00
parent 667ed920f7
commit 52cc086a7f
+1 -1
View File
@@ -13,7 +13,7 @@ const EMBEDS = {
INVITE_INFO: (data: HybridInteractionMessage, locale: I18n) => { INVITE_INFO: (data: HybridInteractionMessage, locale: I18n) => {
const user = data.getUser(); const user = data.getUser();
let message; let message;
if (!Environment.get().PRIVATE_BOT || user != null && Users.isDeveloper(user.id)) if (!(Environment.get().PRIVATE_BOT === 'true') || user != null && Users.isDeveloper(user.id))
message = locale.__('invite.info', { BOT_NAME: DiscordProvider.client.user!.username, LINK: `https://discord.com/api/oauth2/authorize?client_id=${DiscordProvider.client.user?.id}&permissions=8&scope=bot%20applications.commands`}); message = locale.__('invite.info', { BOT_NAME: DiscordProvider.client.user!.username, LINK: `https://discord.com/api/oauth2/authorize?client_id=${DiscordProvider.client.user?.id}&permissions=8&scope=bot%20applications.commands`});
return makeInfoEmbed({ return makeInfoEmbed({