Data iterable.
Optional
options: ICachedOptions<User>The client that instantiated this
Adds or updates an entry in the cache.
The data to be added or updated in the cache.
Optional
cache: booleanOptional
__namedParameters: { extras?: unknown[]; id?: string }The cached or newly created entry.
Returns a new Iterator object that contains the [key, value] pairs for each element in the collection.
An iterator object that can be used to iterate over the key-value pairs of the Collection.
Fetches a user by ID, optionally caching the result.
The ChatMember, Message, or user ID to fetch.
Optional
options: Omit<IFetchOptions, "fullInfo"> & { fullInfo?: false }Options for fetching.
The fetched User instance.
Fetches a user by ID, optionally caching the result.
The ChatMember, Message, or user ID to fetch.
Optional
options: Omit<IFetchOptions, "fullInfo"> & { fullInfo: true }Options for fetching.
The fetched ChatFullInfo instance.
Fetches a user by ID, optionally caching the result.
The ChatMember, Message, or user ID to fetch.
Optional
options: IFetchOptionsOptions for fetching.
The fetched User or ChatFullInfo instance.
Resolves a user from a ChatMember, Message, or user ID.
The ChatMember, Message, or user ID to resolve.
The resolved User instance or null if not found.
Resolves the user ID from a ChatMember, Message, or user ID.
The ChatMember, Message, or user ID to resolve.
The resolved user ID or null if not found.
The client instance.