RevoltSharp
  • 🏠Info
  • GitHub
  • 📋Changelog
  • Commands
    • 💻Command Handler
      • 📋Changelog
      • Guide
  • Guides
    • 📘Guides
      • Create Client
      • User Account
      • Self-hosted Revolt
      • Uploading Files
      • Sending Embeds
      • Async Events
      • Custom Requests
      • Cloudflare Under Attack Mode
  • Client Structure
    • ⚙️RevoltClient
    • 🌐Rest Client
    • 🔌Websocket Client
    • 🛡️Instance Admin Client
    • ⚡Events
    • ⛓️Extensions
  • Class Structure
    • 🎭Users & Members
    • 🏨Servers
    • #️⃣Channels
    • 🛡️Permissions
    • 💬Messages
    • 🗯️Message Properties
    • 🙂Emojis
    • 🎲Misc
Powered by GitBook
On this page
  1. Class Structure

Channels

PreviousServersNextPermissions

Last updated 1 year ago

Channel

string Id

DateTime CreatedAt

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 , , , and

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<?> Icon

Optional<string> Description

Optional<> DefaultPermissions

Optional<Dictionary<string, >> RolePermissions

Optional<bool> Nsfw

Optional<string> OwnerId

DMChannel

Contains all properties from

bool Active

string UserId

? User

string? LastMessageId

GroupChannel

Contains all properties from

Permissions

IReadOnlyCollection<> Users

string? LastMessageId

string OwnerId

? Owner

string Name

string? Description

? Icon

bool IsNsfw

ServerChannel

string ServerId

string Name

string? Description

TextChannel

string? LastMessageId

bool IsNsfw

VoiceChannel

Contains all properties from

? Server

DefaultPermissions

IReadOnlyCollection<> RolePermissions

? Icon

bool HasPermission(, )

Contains all properties from and

Contains all properties from and

#️⃣
Channel
Channel
ServerChannel
Channel
ServerChannel
ChannelType
DMChannel
GroupChannel
ServerChannel
TextChannel
VoiceChannel
Channel
Channel
ChannelPermissions
ChannelPermissions
ChannelPermissions
ChannelPermissions
ChannelPermissions
ChannelPermission
Attachment
Attachment
Attachment
Server
User
User
User
ServerMember