Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
855 B
1
Indexable
Never
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] });
    },
Leave a Comment