Пример #1
0
 /// <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));
 }
Пример #2
0
 /// <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));
 }
Пример #3
0
 /// <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));
 }
Пример #4
0
 /// <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));
 }