which perms do i need
i have this event
but its not firing when i remove someones timeout
24 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!
- ✅
Marked as resolved by OPdocumentation suggestion for @Auth:
:method: GuildMember#isCommunicationDisabled()
@14.16.2
Whether this member is currently timed outuse this instead
You'd need Guilds/GuildMembers intent, but we can't really see your client definition.
I do have intent
Idk why event is not firing
Are you actually registering the event somewhere?
Line 170
It's working in another server
Though I have given it admin in that server
Are there any other notable differences?
Nah pretty sure the problem is somewhat related to perms
Previously
AutomoderationActionExecution
Was also not firing
But it got fixed with manage server permission
Yeah, that makes sense in some way, but I'm not sure what perm guildmemberupdate is linked to.
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
I believe that it does when someone manually removes it
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Emh
Where exactly?
+ why is your pfp transparent
Instead of checking whether communicationDisabledUntil is a false value. That function explicitly returns true/false without potentially guessing.
Yeah but rn the function isn't getting called at all
I'll make sure to implement that though
Hmm, if you give the bot admin on the other server, does it start working?
Yeah
It does
Then why tf it works in other server
Lemme show how it works real quick
:bidenW: now automodaction also aint working
Yeah it got fixed by changing the bot lmao
But still it don't fires guild update event