#️⃣Channels

Channel

string Id

DateTime CreatedAt

ChannelType Type

Missing channel types will use UnknownChannel and UnknownServerChannel if they are not implemented in the lib yet.

ChannelType

Here is a list of channel types that you can cast to DMChannel, GroupChannel, ServerChannel, TextChannel and VoiceChannel

Cast a channel using Text = Channel as TextChannel that may be null or use if (Channel is TextChannel Text)

ChannelUpdatedProperties

Optional<string> Name

Optional<bool> Active

Optional<Attachment?> Icon

Optional<string> Description

Optional<ChannelPermissions> DefaultPermissions

Optional<Dictionary<string, ChannelPermissions>> RolePermissions

Optional<bool> Nsfw

Optional<string> OwnerId

DMChannel

Contains all properties from Channel

bool Active

string UserId

User? User

string? LastMessageId

GroupChannel

Contains all properties from Channel

ChannelPermissions Permissions

IReadOnlyCollection<User> Users

string? LastMessageId

string OwnerId

User? Owner

string Name

string? Description

Attachment? Icon

bool IsNsfw

ServerChannel

Contains all properties from Channel

string ServerId

Server? Server

ChannelPermissions DefaultPermissions

IReadOnlyCollection<ChannelPermissions> RolePermissions

string Name

string? Description

Attachment? Icon

bool HasPermission(ServerMember, ChannelPermission)

TextChannel

Contains all properties from Channel and ServerChannel

string? LastMessageId

bool IsNsfw

VoiceChannel

Contains all properties from Channel and ServerChannel

Last updated