Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

8D filter #72

Open
alidexter001 opened this issue Oct 17, 2022 · 2 comments
Open

8D filter #72

alidexter001 opened this issue Oct 17, 2022 · 2 comments

Comments

@alidexter001
Copy link

alidexter001 commented Oct 17, 2022

can someone make me this code match with the bot packages and stuffs
i tryed myself but i still have issues with it

module.exports = {
    help: {
        name: "8d",
        aliases: []
    },
    run: async (client, message, args) => {
        if (!message.member.voice.channel) return message.channel.send("❌ | You are not in a voice channel!");
        if (message.guild.me.voice.channel && message.member.voice.channel.id !== message.guild.me.voice.channel.id) return message.channel.send("❌ | You are not in my voice channel!");
        if (!client.player.isPlaying(message.guild.id)) {
            return message.channel.send("❌ | I'm not playing anything?");
        }
        const edEnabled = await client.player.getQueue(message.guild.id).filters["8D"];
        client.player.setFilters(message.guild.id, {
            "8D": !edEnabled
        });
        return message.channel.send(`✅ | 8D ${!edEnabled ? "Enabled" : "Disabled"}!`)
    }
};

tnx

@monkxy
Copy link

monkxy commented Oct 18, 2022

Just put a link to an 8D song, it's difficult to match code like this, it will also mess up your audio quality if you just make it a mode. Plus that command won't even work, as I said just play an 8D song.

@alidexter001
Copy link
Author

@jude-gideon Ah ok ty man

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants