🎭Users & Members

User

string Id

DateTime CreatedAt

string Username

UserStatus Status

Attachment? Avatar

string GetDefaultAvatarUrl( )

string GetAvatarUrl( )

string GetAvatarOrDefaultUrl( )

UserBadges Badges

UserFlags Flags

BotData? BotData

bool IsOnline

bool Privileged

UserRelationship Relationship

bool IsBot

bool IsBlocked

IReadOnlyCollection<Server> MutualServers

IReadOnlyCollection<GroupChannel> MutualGroups

bool HasBadge(UserBadgeTypes)

SelfUser

Contains all properties from User

string OwnerId

User? Owner

string ProfileBio

Attachment? Background

Profile

string? Bio

Attachment? Background

ServerMember

Contains all properties from User

string Id

string MemberId

DateTime JoinedAt

string ServerId

Server Server

string Nickname

string CurrentName

User User

Attachment? ServerAvatar

string GetDefaultAvatarUrl( )

string GetServerAvatarUrl( )

string GetServerAvatarOrDefaultUrl( )

string GetServerAvatarOrUserAvatarOrDefaultUrl( )

string[ ] RolesIds

DateTime JoinedAt

DateTime? Timeout

bool IsTimedOut

Role? GetRole( string roleId )

IReadOnlyCollection<Role> Roles

ServerPermissions 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

string? GetAvatarUrl( AvatarSources which, int size )

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
}

Last updated