- Preparing search index...
- The search index is not available
revolt.js - v
Properties
Private
Readonly
#collection
Accessors
$exists
- get $exists(): boolean
-
Returns boolean
animatedAvatarURL
- get animatedAvatarURL(): string
-
Returns string
avatar
- get avatar(): undefined | File
-
Returns undefined | File
avatarURL
- get avatarURL(): string
-
Returns string
bot
- get bot(): undefined | {
owner: string;
}
-
Returns undefined | {
owner: string;
}
createdAt
- get createdAt(): Date
-
Returns Date
defaultAvatarURL
- get defaultAvatarURL(): string
-
Returns string
discriminator
- get discriminator(): string
-
Returns string
displayName
- get displayName(): string
-
Returns string
online
- get online(): boolean
-
Returns boolean
permission
- get permission(): number
-
Returns number
presence
- get presence(): "Online" | "Idle" | "Focus" | "Busy" | "Invisible"
-
Returns "Online" | "Idle" | "Focus" | "Busy" | "Invisible"
privileged
- get privileged(): boolean
-
Returns boolean
relationship
- get relationship(): "None" | "User" | "Friend" | "Outgoing" | "Incoming" | "Blocked" | "BlockedOther"
-
Returns "None" | "User" | "Friend" | "Outgoing" | "Incoming" | "Blocked" | "BlockedOther"
self
- get self(): boolean
-
Returns boolean
status
- get status(): undefined | {
presence?: null | "Online" | "Idle" | "Focus" | "Busy" | "Invisible";
text?: null | string;
}
-
Returns undefined | {
presence?: null | "Online" | "Idle" | "Focus" | "Busy" | "Invisible";
text?: null | string;
}
username
- get username(): string
-
Returns string
Methods
addFriend
- addFriend(): Promise<User>
-
Returns Promise<User>
blockUser
- blockUser(): Promise<void>
-
Returns Promise<void>
changeUsername
- changeUsername(username: string, password: string): Promise<{
_id: string;
avatar?: null | {
_id: string;
content_type: string;
deleted?: null | boolean;
filename: string;
message_id?: null | string;
metadata: {
type: "File";
} | {
type: "Text";
} | {
height: number;
type: "Image";
width: number;
} | {
height: number;
type: "Video";
width: number;
} | {
type: "Audio";
};
object_id?: null | string;
reported?: null | boolean;
server_id?: null | string;
size: number;
tag: string;
user_id?: null | string;
};
badges?: null | number;
bot?: null | {
owner: string;
};
discriminator: string;
display_name?: null | string;
flags?: null | number;
online?: null | boolean;
privileged?: boolean;
profile?: null | {
background?: null | {
_id: string;
content_type: string;
deleted?: null | boolean;
filename: string;
message_id?: null | string;
metadata: {
type: "File";
} | {
type: "Text";
} | {
height: number;
type: "Image";
width: number;
} | {
height: number;
type: "Video";
width: number;
} | {
type: "Audio";
};
object_id?: null | string;
reported?: null | boolean;
server_id?: null | string;
size: number;
tag: string;
user_id?: null | string;
};
content?: null | string;
};
relations?: null | {
_id: string;
status: "None" | "User" | "Friend" | "Outgoing" | "Incoming" | "Blocked" | "BlockedOther";
}[];
relationship?: null | "None" | "User" | "Friend" | "Outgoing" | "Incoming" | "Blocked" | "BlockedOther";
status?: null | {
presence?: null | "Online" | "Idle" | "Focus" | "Busy" | "Invisible";
text?: null | string;
};
username: string;
}>
-
Parameters
-
username: string
-
password: string
Returns Promise<{
_id: string;
avatar?: null | {
_id: string;
content_type: string;
deleted?: null | boolean;
filename: string;
message_id?: null | string;
metadata: {
type: "File";
} | {
type: "Text";
} | {
height: number;
type: "Image";
width: number;
} | {
height: number;
type: "Video";
width: number;
} | {
type: "Audio";
};
object_id?: null | string;
reported?: null | boolean;
server_id?: null | string;
size: number;
tag: string;
user_id?: null | string;
};
badges?: null | number;
bot?: null | {
owner: string;
};
discriminator: string;
display_name?: null | string;
flags?: null | number;
online?: null | boolean;
privileged?: boolean;
profile?: null | {
background?: null | {
_id: string;
content_type: string;
deleted?: null | boolean;
filename: string;
message_id?: null | string;
metadata: {
type: "File";
} | {
type: "Text";
} | {
height: number;
type: "Image";
width: number;
} | {
height: number;
type: "Video";
width: number;
} | {
type: "Audio";
};
object_id?: null | string;
reported?: null | boolean;
server_id?: null | string;
size: number;
tag: string;
user_id?: null | string;
};
content?: null | string;
};
relations?: null | {
_id: string;
status: "None" | "User" | "Friend" | "Outgoing" | "Incoming" | "Blocked" | "BlockedOther";
}[];
relationship?: null | "None" | "User" | "Friend" | "Outgoing" | "Incoming" | "Blocked" | "BlockedOther";
status?: null | {
presence?: null | "Online" | "Idle" | "Focus" | "Busy" | "Invisible";
text?: null | string;
};
username: string;
}>
edit
- edit(data: {
avatar?: null | string;
badges?: null | number;
display_name?: null | string;
flags?: null | number;
profile?: null | {
background?: null | string;
content?: null | string;
};
remove?: null | ("Avatar" | "StatusText" | "StatusPresence" | "ProfileContent" | "ProfileBackground" | "DisplayName")[];
status?: null | {
presence?: null | "Online" | "Idle" | "Focus" | "Busy" | "Invisible";
text?: null | string;
};
}): Promise<void>
-
Parameters
-
data: {
avatar?: null | string;
badges?: null | number;
display_name?: null | string;
flags?: null | number;
profile?: null | {
background?: null | string;
content?: null | string;
};
remove?: null | ("Avatar" | "StatusText" | "StatusPresence" | "ProfileContent" | "ProfileBackground" | "DisplayName")[];
status?: null | {
presence?: null | "Online" | "Idle" | "Focus" | "Busy" | "Invisible";
text?: null | string;
};
}
-
Optional
avatar?: null | string
-
Optional
badges?: null | number
-
Optional
display_name?: null | string
-
Optional
flags?: null | number
-
Optional
profile?: null | {
background?: null | string;
content?: null | string;
}
-
Optional
remove?: null | ("Avatar" | "StatusText" | "StatusPresence" | "ProfileContent" | "ProfileBackground" | "DisplayName")[]
-
Optional
status?: null | {
presence?: null | "Online" | "Idle" | "Focus" | "Busy" | "Invisible";
text?: null | string;
}
Returns Promise<void>
fetchMutual
- fetchMutual(): Promise<{
servers: string[];
users: string[];
}>
-
Returns Promise<{
servers: string[];
users: string[];
}>
fetchProfile
- fetchProfile(): Promise<{
background?: null | {
_id: string;
content_type: string;
deleted?: null | boolean;
filename: string;
message_id?: null | string;
metadata: {
type: "File";
} | {
type: "Text";
} | {
height: number;
type: "Image";
width: number;
} | {
height: number;
type: "Video";
width: number;
} | {
type: "Audio";
};
object_id?: null | string;
reported?: null | boolean;
server_id?: null | string;
size: number;
tag: string;
user_id?: null | string;
};
content?: null | string;
}>
-
Returns Promise<{
background?: null | {
_id: string;
content_type: string;
deleted?: null | boolean;
filename: string;
message_id?: null | string;
metadata: {
type: "File";
} | {
type: "Text";
} | {
height: number;
type: "Image";
width: number;
} | {
height: number;
type: "Video";
width: number;
} | {
type: "Audio";
};
object_id?: null | string;
reported?: null | boolean;
server_id?: null | string;
size: number;
tag: string;
user_id?: null | string;
};
content?: null | string;
}>
removeFriend
- removeFriend(): Promise<void>
-
Returns Promise<void>
statusMessage
- statusMessage(translate?: ((presence: "Online" | "Idle" | "Focus" | "Busy" | "Invisible") => string)): undefined | string
-
Parameters
-
translate: ((presence: "Online" | "Idle" | "Focus" | "Busy" | "Invisible") => string) = ...
-
- (presence: "Online" | "Idle" | "Focus" | "Busy" | "Invisible"): string
-
Parameters
-
presence: "Online" | "Idle" | "Focus" | "Busy" | "Invisible"
Returns string
Returns undefined | string
toString
- toString(): string
-
Returns string
unblockUser
- unblockUser(): Promise<void>
-
Returns Promise<void>
User Class