Giter Site home page Giter Site logo

Exempt users about discord-voice HOT 3 CLOSED

discord-voice avatar discord-voice commented on June 16, 2024
Exempt users

from discord-voice.

Comments (3)

Instinzts avatar Instinzts commented on June 16, 2024

Yes, there is a way via a command. If you check the docs there is an option to exempt members. https://github.com/Lebyy/discord-voice I will leave the link here incase you looking forward checking it out! Have a great day and thanks for using Discord-Voice 😃

from discord-voice.

anirkm avatar anirkm commented on June 16, 2024

I tried but im getting an error

        const user = message.mentions.members.first() || message.guild.members.cache.get(args[0])

        exemptUser(user)
 
        async function exemptUser(user){
            try{
                await client.voiceTracker.updateConfig(message.guild.id, {
                    exemptMembers: (member) => member.id === user.id
                });
            } catch (err) {
                console.log(err)
                return client.utils.text(message, `:sweat_smile: | uh something weird occurred, please try again.`)
            }
            return client.utils.text(message, `:white_check_mark: | User: ${user} is now exempted from Voice Activity Tracking.`)
        }

Here is the error:

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined
    at open (node:internal/fs/promises:410:10)
    at writeFile (node:internal/fs/promises:730:20)
    at VoiceManager.editConfig (C:\Users\yatsuki\Documents\GitHub\11pm-ranking\node_modules\discord-voice\src\Manager.js:320:15)
    at C:\Users\yatsuki\Documents\GitHub\11pm-ranking\node_modules\discord-voice\src\Config.js:389:32
    at new Promise (<anonymous>)
    at Config.edit (C:\Users\yatsuki\Documents\GitHub\11pm-ranking\node_modules\discord-voice\src\Config.js:369:16)
    at C:\Users\yatsuki\Documents\GitHub\11pm-ranking\node_modules\discord-voice\src\Manager.js:244:20
    at new Promise (<anonymous>)
    at VoiceManager.updateConfig (C:\yatsuki\anir\Documents\GitHub\11pm-ranking\node_modules\discord-voice\src\Manager.js:239:16)
    at exemptUser (C:\Users\yatsuki\Documents\GitHub\11pm-ranking\commands\voice\exempt.js:49:43) {
  code: 'ERR_INVALID_ARG_TYPE'
}

from discord-voice.

Instinzts avatar Instinzts commented on June 16, 2024

Join Discord-Voice Support Server I will be able to help you there, best of luck Zen1th#7272. Link Here: https://discord.gg/2YBe2rrq

from discord-voice.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.