Exemple #1
0
 public new static GuildChannel From(IClient client, [NotNull] Spectacles.NET.Types.Channel channel)
 {
     return(new GuildChannel(client, ulong.Parse(channel.Id), channel.Type, null,
                             ulong.Parse(channel.GuildId),
                             channel.Name, channel.Position, ulong.Parse(channel.ParentId),
                             channel.PermissionOverwrites.Select(PermissionOverwrite.From).ToArray()));
 }
Exemple #2
0
 public static Channel From(IClient client, [NotNull] Spectacles.NET.Types.Channel channel)
 {
     return(new Channel(client, ulong.Parse(channel.Id), channel.Type));
 }