Untitled

 avatar
unknown
plain_text
a year ago
855 B
4
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