mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-25 14:44:58 +05:00
Фикс
This commit is contained in:
parent
299a8c34ec
commit
ac3c364495
1 changed files with 19 additions and 18 deletions
|
@ -24,24 +24,25 @@ class Activity extends Command {
|
||||||
const perms = voice.permissionsFor(this.client.user);
|
const perms = voice.permissionsFor(this.client.user);
|
||||||
if (!perms.has(Discord.Permissions.FLAGS.CONNECT) || !perms.has(Discord.Permissions.FLAGS.SPEAK)) return message.error("music/play:VOICE_CHANNEL_CONNECT");
|
if (!perms.has(Discord.Permissions.FLAGS.CONNECT) || !perms.has(Discord.Permissions.FLAGS.SPEAK)) return message.error("music/play:VOICE_CHANNEL_CONNECT");
|
||||||
|
|
||||||
const activities = ["awkword", "betrayal", "checkers", "chess", "doodlecrew", "fishing", "lettertile", "poker", "spellcast", "wordsnack", "puttparty", "youtube"];
|
const activities = ["awkword", "betrayal", "checkers", "chess", "sketchheads", "fishing", "lettertile", "poker", "spellcast", "wordsnack", "puttparty", "youtube"];
|
||||||
const activity = args[0];
|
const activity = args[0];
|
||||||
|
|
||||||
switch (activity) {
|
switch (activity) {
|
||||||
case "awkword":
|
case "awkword":
|
||||||
this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "awkword").then(async invite => {
|
message.channel.send("Не работает!");
|
||||||
const embed = new Discord.MessageEmbed()
|
// this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "awkword").then(async invite => {
|
||||||
.setTitle("Awkword")
|
// const embed = new Discord.MessageEmbed()
|
||||||
.setColor(data.config.embed.color)
|
// .setTitle("Awkword")
|
||||||
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Awkword", channel: voice.name })}](${invite.code})**`)
|
// .setColor(data.config.embed.color)
|
||||||
.setFooter({
|
// .setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Awkword", channel: voice.name })}](${invite.code})**`)
|
||||||
text: message.translate("general/activity:FOOTER")
|
// .setFooter({
|
||||||
})
|
// text: message.translate("general/activity:FOOTER")
|
||||||
.setTimestamp();
|
// })
|
||||||
return message.channel.send({
|
// .setTimestamp();
|
||||||
embeds: [embed]
|
// return message.channel.send({
|
||||||
});
|
// embeds: [embed]
|
||||||
});
|
// });
|
||||||
|
// });
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "betrayal":
|
case "betrayal":
|
||||||
|
@ -92,12 +93,12 @@ class Activity extends Command {
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "doodlecrew":
|
case "sketchheads":
|
||||||
this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "doodlecrew").then(async invite => {
|
this.client.discordTogether.createTogetherCode(message.member.voice.channelId, "sketchheads").then(async invite => {
|
||||||
const embed = new Discord.MessageEmbed()
|
const embed = new Discord.MessageEmbed()
|
||||||
.setTitle("Doodle Crew")
|
.setTitle("Sketch Heads")
|
||||||
.setColor(data.config.embed.color)
|
.setColor(data.config.embed.color)
|
||||||
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Doodle Crew", channel: voice.name })}](${invite.code})**`)
|
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Sketch Heads", channel: voice.name })}](${invite.code})**`)
|
||||||
.setFooter({
|
.setFooter({
|
||||||
text: message.translate("general/activity:FOOTER")
|
text: message.translate("general/activity:FOOTER")
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue