Member to modify
Instance Method
modifyMember(_:with:then:)
Modifies a member from this guild
Declaration
func modifyMember(_ userId: Snowflake, with options: [String : Any], then completion: ((RequestError?) -> Void)? = nil)
Parameters
userId
-
options
-
Preconfigured options to modify member with
Options Params
nick: The nickname to assign
roles: Array of role id’s that should be assigned to the member
mute: Whether or not to server mute the member
deaf: Whether or not to server deafen the member
channel_id: If the user is connected to a voice channel, assigns them the new voice channel they are to connect.
communication_disabled_until: The amount of time the user is going to be timed out for, or remove the timeout.