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

Add support for GuildMember timeout #7135

Closed
maikdevries opened this issue Dec 21, 2021 · 1 comment · Fixed by #7104
Closed

Add support for GuildMember timeout #7135

maikdevries opened this issue Dec 21, 2021 · 1 comment · Fixed by #7104

Comments

@maikdevries
Copy link

Feature

A GuildMember can now be timed out using the new timeout field of the PATCH /guilds/{guild.id}/members/{user.id} endpoint. This issue does exactly that.

Ideal solution or implementation

Add a field and the related methods to the GuildMember type which stores and handles the timing out of members. There seems to be a new permission as well with the flag MODERATE_MEMBERS which allows one to manage time outs in a Guild, which is something that needs to be implemented too.

As the Discord API states:

Timed out members will temporarily lose all permissions except VIEW_CHANNEL and READ_MESSAGE_HISTORY. Owners and admin users with ADMINISTRATOR permissions are exempt.

Alternative solutions or implementations

No response

Other context

Discord API reference and the Discord FAQ on timeouts.

Image of the client's preview of the new permission:
image

@SuperchupuDev
Copy link
Contributor

There's a PR already #7104

@SpaceEEC SpaceEEC linked a pull request Dec 21, 2021 that will close this issue
5 tasks
@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

Successfully merging a pull request may close this issue.

3 participants