Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout communicationDisabledUntilTimestamp not turning 'null' #7161

Closed
dragiez opened this issue Dec 29, 2021 · 2 comments
Closed

Timeout communicationDisabledUntilTimestamp not turning 'null' #7161

dragiez opened this issue Dec 29, 2021 · 2 comments

Comments

@dragiez
Copy link

dragiez commented Dec 29, 2021

Issue description

After you timeout someone, the time is stored in communicationDisabledUntilTimestamp
If you remove the timeout before time ends. It sets communicationDisabledUntilTimestamp to null
But if user timeout is removed automatically when time ends .
It doesn't set communicationDisabledUntilTimestamp to null and keeps the last timeout timestamp
Which on checking if user is timed out already or not .. it always return true even if user is not timed out.

Code sample

No response

discord.js version

13.4.0

Node.js version

16.11.0

Operating system

Windows 11

Priority this issue should have

Low (slightly annoying)

Which partials do you have configured?

USER, CHANNEL, GUILD_MEMBER, MESSAGE, REACTION

Which gateway intents are you subscribing to?

GUILDS, GUILD_MEMBERS, GUILD_BANS, GUILD_EMOJIS_AND_STICKERS, GUILD_INTEGRATIONS, GUILD_WEBHOOKS, GUILD_INVITES, GUILD_VOICE_STATES, GUILD_PRESENCES, GUILD_MESSAGES, GUILD_MESSAGE_REACTIONS, GUILD_MESSAGE_TYPING, DIRECT_MESSAGES, DIRECT_MESSAGE_REACTIONS, DIRECT_MESSAGE_TYPING

I have tested this issue on a development release

No response

@Jiralite
Copy link
Member

This is not a bug, this is how Discord implemented it. We don't set it to null simply because Discord does not.

@DTrombett
Copy link
Contributor

Which on checking if user is timed out already or not .. it always return true even if user is not timed out.

With #7146 you should be able to do member.isCommunicationDisabled() to check if the user is timed out.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants