Construct Server
Collection
Id
Private
Readonly
#collectionPrivate
#syncedReadonly
idWhether this object exists
Whether analytics are enabled for this server
URL to the server's animated icon
URL to the server's banner
Categories
Channel IDs
Time when this server was created
Default permissions
Description
Whether this server is publicly discoverable
Server flags
URL to the server's icon
Whether this server is marked as mature
Own member object for this server
Find all message IDs of unread messages
Array of message IDs which are unread
Name
Get an array of ordered categories with their respective channels.
Uncategorised channels are returned in id="default"
category.
Get an ordered array of roles with their IDs attached. The highest ranking roles will be first followed by lower ranking roles. This is dictated by the "rank" property which is smaller for higher priority roles.
Owner's user ID
Permission the currently authenticated user has against this server
Roles
System message channels
Ban user from this server
User
Ban options
Optional
reason?: null | stringBan reason
Create a channel
Channel create route data
Optional
description?: null | stringChannel description
Channel name
Optional
nsfw?: null | booleanWhether this channel is age restricted
Optional
type?: "Text" | "Voice"Channel type
Text
The newly-created channel
Create role
Role name
Delete emoji
Emoji ID
Edit a server
Changes
Optional
analytics?: null | booleanWhether analytics should be collected for this server
Must be enabled in order to show up on Revolt Discover.
Optional
banner?: null | stringAttachment Id for banner
Optional
categories?: null | { Category structure for server
Optional
description?: null | stringServer description
Optional
discoverable?: null | booleanWhether this server is public and should show up on Revolt Discover
Optional
flags?: null | numberFormat: int32
Bitfield of server flags
Optional
icon?: null | stringAttachment Id for icon
Optional
name?: null | stringServer name
Optional
remove?: null | ("Description" | "Icon" | "Categories" | "SystemMessages" | "Banner")[]Fields to remove from server object
Optional
system_System message configuration
Edit a role
Role ID
Role editing route data
Optional
colour?: null | stringRole colour
Optional
hoist?: null | booleanWhether this role should be displayed separately
Optional
name?: null | stringRole name
Optional
rank?: null | numberFormat: int64
Ranking position
Smaller values take priority.
Optional
remove?: null | "Colour"[]Fields to remove from role object
Fetch a server's invites
An array of the server's invites
Fetch a server member
User
Server member object
Fetch a server's members
List of the server's members and their user objects
Helper function to retrieve cached server member by their ID in this server
User's ID
Server Member (if cached)
Check whether we have a given permission in a server
Rest
...permission: ("Video" | "Masquerade" | "ManageChannel" | "ManageServer" | "ManagePermissions" | "ManageRole" | "ManageCustomisation" | "KickMembers" | "BanMembers" | "TimeoutMembers" | "AssignRoles" | "ChangeNickname" | "ManageNicknames" | "ChangeAvatar" | "RemoveAvatars" | "ViewChannel" | "ReadMessageHistory" | "SendMessage" | "ManageMessages" | "ManageWebhooks" | "InviteOthers" | "SendEmbeds" | "UploadFiles" | "React" | "Connect" | "Speak" | "MuteMembers" | "DeafenMembers" | "MoveMembers" | "GrantAllSafe")[]Permission Names
Whether we have this permission
Kick user from this server
User
Check whether we have at least one of the given permissions in a server
Rest
...permission: ("Video" | "Masquerade" | "ManageChannel" | "ManageServer" | "ManagePermissions" | "ManageRole" | "ManageCustomisation" | "KickMembers" | "BanMembers" | "TimeoutMembers" | "AssignRoles" | "ChangeNickname" | "ManageNicknames" | "ChangeAvatar" | "RemoveAvatars" | "ViewChannel" | "ReadMessageHistory" | "SendMessage" | "ManageMessages" | "ManageWebhooks" | "InviteOthers" | "SendEmbeds" | "UploadFiles" | "React" | "Connect" | "Speak" | "MuteMembers" | "DeafenMembers" | "MoveMembers" | "GrantAllSafe")[]Permission Names
Whether we have one of the permissions
Query members from a server by name
Name
List of the server's members and their user objects
Set role permissions
Role Id, set to 'default' to affect all users
Permission value
Pardon user's ban
User
Generated using TypeDoc
Server Class