mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 18:59:19 +00:00
Fixed invite command
This commit is contained in:
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user