/// <summary> /// Creates a channel /// </summary> /// <param name="properties">Options for creating the channel</param> /// <returns>The created channel</returns> public GuildChannel CreateChannel(GuildChannelCreationProperties properties) { return(Client.CreateGuildChannel(Id, properties)); }
/// <summary> /// Creates a guild channel /// </summary> /// <param name="guildId">ID of the guild</param> /// <param name="properties">Options for creating the channel</param> /// <returns>The created <see cref="GuildChannel"/></returns> public static GuildChannel CreateGuildChannel(this DiscordClient client, ulong guildId, GuildChannelCreationProperties properties) { return(client.createGuildChannel <GuildChannel>(guildId, properties)); }
/// <summary> /// Creates a guild text channel /// </summary> /// <param name="guildId">ID of the guild</param> /// <param name="properties">Options for creating the channel</param> /// <returns>The created <see cref="TextChannel"/></returns> public static TextChannel CreateTextChannel(this DiscordClient client, ulong guildId, GuildChannelCreationProperties properties) { properties.Type = ChannelType.Text; return(client.createGuildChannel <TextChannel>(guildId, properties)); }
/// <summary> /// Creates a guild voice channel /// </summary> /// <param name="guildId">ID of the guild</param> /// <param name="properties">Options for creating the channel</param> /// <returns>The created <see cref="VoiceChannel"/></returns> public static VoiceChannel CreateVoiceChannel(this DiscordClient client, ulong guildId, GuildChannelCreationProperties properties) { properties.Type = ChannelType.Voice; return(client.createGuildChannel <VoiceChannel>(guildId, properties)); }