mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 10:49:20 +00:00
Fixed env not working with non lowercase value
This commit is contained in:
@@ -13,8 +13,11 @@ const EMBEDS = {
|
||||
INVITE_INFO: (data: HybridInteractionMessage, locale: I18n) => {
|
||||
const user = data.getUser();
|
||||
let message;
|
||||
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`});
|
||||
if (!(Environment.get().PRIVATE_BOT.toLowerCase() === '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`
|
||||
});
|
||||
|
||||
return makeInfoEmbed({
|
||||
title: `Invite`,
|
||||
|
||||
Reference in New Issue
Block a user