Untitled
unknown
plain_text
2 years ago
855 B
9
Indexable
run: async (client, context, player, args) => {
const embed = new EmbedBuilder().setColor(client.embedColor);
const guildSetting = client.guildSetting.get(context.guild.id);
if (guildSetting.reconnect.status) {
guildSetting.reconnect = {
status: false,
text: null,
voice: null,
};
embed.setDescription("`🔴` | 24/7 mode is now disabled.");
} else {
guildSetting.reconnect = {
status: true,
text: guildSetting.setup.status ? guildSetting.setup.channel : context.channel.id,
voice: player.voiceId,
};
embed.setDescription("`🟢` | 24/7 mode is now enabled.");
}
return context.reply({ embeds: [embed] });
},Editor is loading...
Leave a Comment