Parameters
- resolvable:
| string
| {
_id: string;
avatar?: | {
_id: string;
content_type: string;
deleted?: boolean
| null;
filename: string;
message_id?: string | null;
metadata:
| { type: "File" }
| { type: "Text" }
| { height: number; type: "Image"; width: number }
| { height: number; type: "Video"; width: number }
| { type: "Audio" };
object_id?: string | null;
reported?: boolean | null;
server_id?: string | null;
size: number;
tag: string;
user_id?: string | null;
}
| null;
badges?: number;
bot?: { owner: string }
| null;
discriminator: string;
display_name?: string | null;
flags?: number;
online: boolean;
privileged?: boolean;
relations?: {
_id: string;
status:
| "User"
| "None"
| "Friend"
| "Outgoing"
| "Incoming"
| "Blocked"
| "BlockedOther";
}[];
relationship: | "User"
| "None"
| "Friend"
| "Outgoing"
| "Incoming"
| "Blocked"
| "BlockedOther";
status?: | {
presence?: "Online"
| "Idle"
| "Focus"
| "Busy"
| "Invisible"
| null;
text?: string | null;
}
| null;
username: string;
}- string
- {
_id: string;
avatar?:
| {
_id: string;
content_type: string;
deleted?: boolean
| null;
filename: string;
message_id?: string | null;
metadata:
| { type: "File" }
| { type: "Text" }
| { height: number; type: "Image"; width: number }
| { height: number; type: "Video"; width: number }
| { type: "Audio" };
object_id?: string | null;
reported?: boolean | null;
server_id?: string | null;
size: number;
tag: string;
user_id?: string | null;
}
| null;
badges?: number;
bot?: { owner: string }
| null;
discriminator: string;
display_name?: string | null;
flags?: number;
online: boolean;
privileged?: boolean;
relations?: {
_id: string;
status:
| "User"
| "None"
| "Friend"
| "Outgoing"
| "Incoming"
| "Blocked"
| "BlockedOther";
}[];
relationship: | "User"
| "None"
| "Friend"
| "Outgoing"
| "Incoming"
| "Blocked"
| "BlockedOther";
status?: | {
presence?: "Online"
| "Idle"
| "Focus"
| "Busy"
| "Invisible"
| null;
text?: string | null;
}
| null;
username: string;
}_id: string
Optionalavatar?:
| {
_id: string;
content_type: string;
deleted?: boolean
| null;
filename: string;
message_id?: string | null;
metadata:
| { type: "File" }
| { type: "Text" }
| { height: number; type: "Image"; width: number }
| { height: number; type: "Video"; width: number }
| { type: "Audio" };
object_id?: string | null;
reported?: boolean | null;
server_id?: string | null;
size: number;
tag: string;
user_id?: string | null;
}
| null
Optionalbadges?: number
Optionalbot?: { owner: string } | null
discriminator: string
Optionaldisplay_name?: string | null
Optionalflags?: number
online: boolean
Optionalprivileged?: boolean
Optionalrelations?: {
_id: string;
status:
| "User"
| "None"
| "Friend"
| "Outgoing"
| "Incoming"
| "Blocked"
| "BlockedOther";
}[]
relationship:
| "User"
| "None"
| "Friend"
| "Outgoing"
| "Incoming"
| "Blocked"
| "BlockedOther"
Optionalstatus?:
| {
presence?: "Online"
| "Idle"
| "Focus"
| "Busy"
| "Invisible"
| null;
text?: string | null;
}
| null
username: string
Returns User | null
The user or null if it cannot be resolved
Insertion ordered cache of items this manager holds.