🔌Websocket Client

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

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

You can also use the Events 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
}

Last updated