Creates a new Invite instance.
The client instance.
The raw data for the invite from the API.
The ID of the channel associated with the invite.
Readonly
clientThe client instance.
The unique identifier for the object.
The ID of the user who created the invite.
The ID of the server associated with the invite, if any.
Retrieves the channel associated with the invite.
The channel associated with the invite, or null
if not found.
Retrieves the user who created the invite.
The user who created the invite, or null
if not found.
Retrieves the server associated with the invite.
The server associated with the invite, 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 | InviteThe object to compare with.
true
if the objects are equal, otherwise false
.
Represents an invite to a server or channel.