mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
Некоторые активности требуют уровень буста
This commit is contained in:
parent
cb29f37cb9
commit
cb9107d99f
3 changed files with 14 additions and 2 deletions
|
@ -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")
|
||||
|
|
|
@ -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": "Необходим первый уровень буста или выше!"
|
||||
}
|
|
@ -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": "Необходим первый уровень буста или выше!"
|
||||
}
|
Loading…
Reference in a new issue