Channel to create invite for
Instance Method
createInvite(for:with:then:)
Creates an invite for channel
Declaration
func createInvite(for channelId: Snowflake, with options: [String : Any] = [:], then completion: (([String : Any]?, RequestError?) -> Void)? = nil)
Parameters
channelId
-
options
-
Options to give invite
Options Params
max_age: Duration in seconds before the invite expires, or 0 for never. Default 86400 (24 hours)
max_uses: Max number of people who can use this invite, or 0 for unlimited. Default 0
temporary: Whether or not this invite gives you temporary access to the guild. Default false
unique: Whether or not this invite has a unique invite code. Default false