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

Users & Members

PreviousExtensionsNextServers

Last updated 1 year ago

User

string Id

DateTime CreatedAt

string Username

Status

? Avatar

string GetDefaultAvatarUrl( )

string GetAvatarUrl( )

string GetAvatarOrDefaultUrl( )

Badges

Flags

? BotData

bool IsOnline

bool Privileged

Relationship

bool IsBot

bool IsBlocked

IReadOnlyCollection<> MutualServers

IReadOnlyCollection<> MutualGroups

bool HasBadge(UserBadgeTypes)

SelfUser

Contains all properties from

string OwnerId

? Owner

string ProfileBio

? Background

Profile

string? Bio

? Background

ServerMember

Contains all properties from

string Id

string MemberId

DateTime JoinedAt

string ServerId

Server

string Nickname

string CurrentName

User

? ServerAvatar

string GetDefaultAvatarUrl( )

string GetServerAvatarUrl( )

string GetServerAvatarOrDefaultUrl( )

string GetServerAvatarOrUserAvatarOrDefaultUrl( )

string[ ] RolesIds

DateTime JoinedAt

DateTime? Timeout

bool IsTimedOut

? GetRole( string roleId )

IReadOnlyCollection<> Roles

Permissions

UserStatus

string Text

UserStatusType Type

public enum UserStatusType
{
    Offline,
    Online,
    Idle,
    Focus,
    Busy,
    Invisible
}
UserBadges

ulong Raw

bool Has( UserBadgeTypes type )

public enum UserBadgeTypes
{
    Developer = 1,
    Translator = 2,
    Supporter = 4,
    ResponsibleDisclosure = 8,
    Founder = 16,
    PlatformModeration = 32,
    ActiveSupporter = 64,
    Paw = 128,
    EarlyAdopter = 256,
    ReservedRelevantJokeBadge1 = 512,
    ReservedRelevantJokeBadge2 = 1024
}
UserFlags

ulong Raw

bool Has( UserFlagTypes type )

public enum UserFlagTypes
{
    Suspended = 1,
    Deleted = 2,
    Banned = 4,
    Spam = 8
}
BotData

string OwnerId

PublicBot

string Username

string? AvatarId

string? Description

AvatarSources
public enum AvatarSources
{
    Default = 1,
    User = 2,
    Server = 4,

    UserOrDefault = Default | User,
    ServerOrUser = User | Server,
    Any = Server | User | Default,
}
UserRelationship

The relationship of the user compared to the logged in user/bot account.

public enum UserRelationship
{
    None,
    User,
    Friend,
    Outgoing,
    Incoming,
    Blocked,
    BlockedOther
}

string? GetAvatarUrl( which, int size )

🎭
AvatarSources
UserStatus
UserBadges
UserFlags
BotData
UserRelationship
User
User
User
User
ServerPermissions
Server
Server
Role
Role
Attachment
Attachment
Attachment
Attachment
GroupChannel