Guild to create channel for
Instance Method
createChannel(for:with:then:)
Creates a channel in a guild
Declaration
func createChannel(for guildId: Snowflake, with options: [String : Any], then completion: ((GuildChannel?, RequestError?) -> Void)? = nil)
Parameters
guildId
-
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