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. Client Structure

Websocket Client

PreviousRest ClientNextInstance Admin Client

Last updated 2 years ago

The internal WebSocket client can be used for more advanced bots that want to interact with events, cached data and specific properties.

Use the the get data for users, servers, roles, channels and emojis.

You can also use the to respond to messages, user changes, server changes and other interactions.

SocketError

string Message

SocketErrorType Type

SocketErrorType

public enum SocketErrorType
{
    Unknown,
    AlreadyOnboarded,
    UsernameTaken,
    InvalidUsername,
    UnknownUser,
    AlreadyFriends,
    AlreadySentRequest,
    Blocked,
    BlockedByOther,
    NotFriends,
    UnknownChannel,
    UnknownAttachment,
    UnknownMessage,
    CannotEditMessage,
    CannotJoinCall,
    TooManyAttachments,
    TooManyReplies,
    EmptyMessage,
    PayloadTooLarge,
    CannotRemoveYourself,
    GroupTooLarge,
    AlreadyInGroup,
    NotInGroup,
    UnknownServer,
    InvalidRole,
    Banned,
    TooManyServers,
    TooManyEmoji,
    ReachedMaximumBots,
    NotAllowedForBots,
    NotAllowedForUsers,
    BotIsPrivate,
    CannotReportYourself,
    MissingPermission,
    MissingUserPermission,
    NotElevated,
    NotPrivileged,
    CannotGiveMissingPermissions,
    NotOwner,
    RevoltDatabaseError,
    InternalServerError,
    InvalidOperation,
    InvalidCredentials,
    InvalidProperty,
    InvalidSession,
    DuplicateNonce,
    VosoUnavailable,
    NotFound,
    NoEffect,
    FailedValidation,
    OnboardingNotFinished,
    AlreadyAuthenticated
}
🔌
Events
RevoltClient