Skip to content

Conversation

etoile2feu
Copy link

This pull request add clearTimeout method to guildMember.

Actually, you have to set the duration on null to cancel the timeout of a guild member.
The clearTimeout method would make the code more easy to read.

Copy link

vercel bot commented Jul 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
discord-js ⬜️ Ignored (Inspect) Visit Preview Jul 30, 2025 1:14am
discord-js-guide ⬜️ Ignored (Inspect) Visit Preview Jul 30, 2025 1:14am

@Tristan-GPT
Copy link

I think it can be a good add. This method can make the code easier to read and a little bit more logic because call timeout function to remove the timeout is not very logic.

Copy link
Member

@didinele didinele left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am against this. Methods that hardcode a value and pass it to the actual API call method subtly make users make unnecessary calls

@etoile2feu
Copy link
Author

I am against this. Methods that hardcode a value and pass it to the actual API call method subtly make users make unnecessary calls

Yes, I didn't think about that.
Should I close this PR ?

@Jiralite
Copy link
Member

Jiralite commented Sep 14, 2025

Closing for the reason listed above. This is generally why helper methods should be avoided.

Regardless, thank you for your efforts!

@Jiralite Jiralite closed this Sep 14, 2025
@github-project-automation github-project-automation bot moved this from Todo to Denied in discord.js Sep 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Denied
Development

Successfully merging this pull request may close these issues.

4 participants