Server class

Constructors

Server(Client client, {required String id, required String nonce, required User owner, required String name, required String? description, required Map<String, Channel> channels, required Map<String, Category> categories, required List<Role> roles, required RolePermissions defaultPermissions, required ServerSystemMessages systemMessages, File? icon, File? banner})

Properties

Server banner
getter/setter pair
categories Map<String, Category>
The categories in this Server
getter/setter pair
channels Map<String, Channel>
The Channels in this Server
getter/setter pair
client Client
The Revolt Client that created this object
getter/setter pair
defaultPermissions RolePermissions
Default permissions object
getter/setter pair
description String?
The Server's description
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
icon File?
Server icon
getter/setter pair
id String
The ID of this Server
getter/setter pair
members ServerMemberManager
getter/setter pair
name String
The Server's name
getter/setter pair
nonce String
The nonce of this Server
getter/setter pair
owner User
The Server's Owner
getter/setter pair
roles List<Role>
Array of the roles in this Server
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
systemMessages ServerSystemMessages
The channels system messages are sent to, or null if disabled.
getter/setter pair

Methods

member(String id) Future<Member?>
Fetches a member or gets it from cache
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited