Comments (3)
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.
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.
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)
- Should we store voiceTime with channelid? HOT 4
- error with command voice-leaderboard HOT 1
- add ability graph image to voice-stats HOT 2
- Stop botting downloads HOT 3
- [⚠️] Maintainer required
- Schema name mistake HOT 2
- No voice channel detection (voiceStateUpdate) HOT 2
- blacklist channel + minimal count user HOT 2
- Adding the ability to alter module config if user is deafen or muted HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord-voice.