Instance Method

createChannel(with:then:)

Creates a channel in this guild

Declaration

func createChannel(with options: [String : Any], then completion: ((GuildChannel?, RequestError?) -> Void)? = nil)

Parameters

options

Preconfigured options to give the channel on create

Option Params

  • name: The name to give this channel

  • type: The type of channel to create

  • bitrate: If a voice channel, sets the bitrate for the voice channel

  • user_limit: If a voice channel, sets the maximum amount of users to be allowed at a time

  • permission_overwrites: Array of overwrite objects to give this channel