Member to modify
Instance Method
modifyMember(_:in:with:for:then:)
Modifies a member from a guild
Declaration
func modifyMember(_ userId: Snowflake, in guildId: Snowflake, with options: [String : Any], for reason: String? = nil, then completion: ((RequestError?) -> Void)? = nil)
Parameters
userId
-
guildId
-
Guild to modify member in
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.