From cb9107d99fe3d476994c232f4c9d63438d77b726 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Thu, 24 Feb 2022 20:29:27 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=BA=D0=BE=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D1=8B=D0=B5=20=D0=B0=D0=BA=D1=82=D0=B8=D0=B2=D0=BD=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D0=B8=20=D1=82=D1=80=D0=B5=D0=B1=D1=83=D1=8E=D1=82=20?= =?UTF-8?q?=D1=83=D1=80=D0=BE=D0=B2=D0=B5=D0=BD=D1=8C=20=D0=B1=D1=83=D1=81?= =?UTF-8?q?=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/General/activity.js | 10 ++++++++++ languages/ru-RU/general/activity.json | 3 ++- languages/uk-UA/general/activity.json | 3 ++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/commands/General/activity.js b/commands/General/activity.js index 60fe7446..c499458a 100644 --- a/commands/General/activity.js +++ b/commands/General/activity.js @@ -62,6 +62,8 @@ class Activity extends Command { break; case "checkers": + if (message.guild.PremiumTier === "NONE") return message.error("general/activity:NO_BOOST"); + this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "checkers").then(async invite => { const embed = new Discord.MessageEmbed() .setTitle("Checkers In The Park") @@ -78,6 +80,8 @@ class Activity extends Command { break; case "chess": + if (message.guild.PremiumTier === "NONE") return message.error("general/activity:NO_BOOST"); + this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "chess").then(async invite => { const embed = new Discord.MessageEmbed() .setTitle("Chess In The Park") @@ -110,6 +114,8 @@ class Activity extends Command { break; case "ocho": + if (message.guild.PremiumTier === "NONE") return message.error("general/activity:NO_BOOST"); + this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "ocho").then(async invite => { const embed = new Discord.MessageEmbed() .setTitle("Ocho") @@ -158,6 +164,8 @@ class Activity extends Command { break; case "poker": + if (message.guild.PremiumTier === "NONE") return message.error("general/activity:NO_BOOST"); + this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "poker").then(async invite => { const embed = new Discord.MessageEmbed() .setTitle("Poker Night") @@ -174,6 +182,8 @@ class Activity extends Command { break; case "spellcast": + if (message.guild.PremiumTier === "NONE") return message.error("general/activity:NO_BOOST"); + this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "spellcast").then(async invite => { const embed = new Discord.MessageEmbed() .setTitle("Spell Cast") diff --git a/languages/ru-RU/general/activity.json b/languages/ru-RU/general/activity.json index 0a9e49b6..039ccc04 100644 --- a/languages/ru-RU/general/activity.json +++ b/languages/ru-RU/general/activity.json @@ -3,5 +3,6 @@ "USAGE": "{{prefix}}activity (активность)", "EXAMPLES": "{{prefix}}activity\n{{prefix}}activity chess", "TITLE": "Список доступных активностей", - "FOOTER": "JaBa | Discord Together" + "FOOTER": "JaBa | Discord Together", + "NO_BOOST": "Необходим первый уровень буста или выше!" } \ No newline at end of file diff --git a/languages/uk-UA/general/activity.json b/languages/uk-UA/general/activity.json index 0a9e49b6..039ccc04 100644 --- a/languages/uk-UA/general/activity.json +++ b/languages/uk-UA/general/activity.json @@ -3,5 +3,6 @@ "USAGE": "{{prefix}}activity (активность)", "EXAMPLES": "{{prefix}}activity\n{{prefix}}activity chess", "TITLE": "Список доступных активностей", - "FOOTER": "JaBa | Discord Together" + "FOOTER": "JaBa | Discord Together", + "NO_BOOST": "Необходим первый уровень буста или выше!" } \ No newline at end of file