Member to kick from server
Instance Method
kick(_:from:for:then:)
Kicks a member from a guild
Declaration
func kick(_ userId: Snowflake, from guildId: Snowflake, for reason: String? = nil, then completion: ((RequestError?) -> Void)? = nil)
Parameters
userId
-
guildId
-
Guild to remove them from
reason
-
Reason why member was kicked from guild (attached to audit log)