Impossible to timeout members from GuildMembersManager object
Hello, in my script I tried to timeout a member from the GuildMembersManager object as it is possible with kick or ban but it gives me the error
guild.members.timeout is not a function
yet there is this pr that has been merge which seems to do what I want. What can I do?
https://github.com/discordjs/discord.js/pull/7104GitHub
feat(GuildMember): Add timeouts by Jiralite · Pull Request #7104 · ...
Description
discord/discord-api-docs#4075
Checklist
Add communication_disabled_until property in the GuildMember class
Support modifying communication_disabled_until in GuildMemberManager#edit...
5 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!Because its a method on GuildMember
Oh, I read it wrong
But this is not possible from guildmembersmanager?
if you wanted to specifically do it from the manager, you'd need to use
guild.members.edit()
(specifically editing communicationDisabledUntil
)Perfect thank you