Creates a new Server instance.
The client instance.
The raw data for the server from the API.
Optional
analytics?: booleanOptional
banner?: Optional
categories?: null | { channels: string[]; id: string; title: string }[]Format: int64
Optional
description?: null | stringOptional
discoverable?: booleanOptional
flags?: numberFormat: uint32
Optional
icon?: Optional
nsfw?: booleanOptional
roles?: {Optional
system_messages?: Whether analytics are enabled for the server.
The banner of the server, or null
if none is set.
The categories in the server.
Manages the channels of the server.
Readonly
clientThe client instance.
The description of the server, or null
if none is set.
Whether the server is discoverable.
the emojies associated with the server
The icon of the server, or null
if none is set.
The unique identifier for the object.
Manages the members of the server.
The name of the server.
Whether the server is marked as NSFW (Not Safe For Work).
The ID of the user who owns the server.
The default permissions for the server.
Manages the roles of the server.
Gets the creation timestamp of the server in milliseconds.
The timestamp of when the server was created.
Retrieves the current user's member instance in the server.
The current user's member instance, or null
if not found.
Retrieves the owner of the server.
The owner of the server, or null
if not found.
Creates a deep clone of the object.
A clone of the object.
Updates the object with new data and returns a clone of the object.
The data to update the object with.
Optional
clear: string[]Fields to clear in the object.
A clone of the updated object.
Compares this object with another to determine if they are equal.
Optional
obj: null | ServerThe object to compare with.
true
if the objects are equal, otherwise false
.
Converts the server to a string representation.
The name of the server.
Represents a server (guild) in the client.