Skip to content

members prune timeout #10927

Open
Open
@dazzypark

Description

@dazzypark

Which application or package is this feature request for?

discord.js

Feature

In larger Discord guilds (e.g. with over 20,000 members), the guild.members.prune() method can take longer than the default REST API timeout in discord.js. In our case, it sometimes takes up to 22 seconds to complete, which results in the request failing due to the 15-second timeout.

Ideal solution or implementation

If possible, it would be very helpful if the guild.members.prune() method could accept a custom timeout option. This would allow developers to handle longer-running operations like this one without needing to change the global REST API timeout, which might have unintended effects on other requests.

Thank you for considering this suggestion, and as always, thank you for your work on this project!

Alternative solutions or implementations

No response

Other context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions