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

Member to kick from server

guildId

Guild to remove them from

reason

Reason why member was kicked from guild (attached to audit log)