Server class final

Constructors

Server({required Snowflake id, required String name, required MemberManager members, required ServerSettings settings, required RoleManager roles, required ChannelManager channels, required String? description, required String? applicationId, required ServerAsset assets, required Member owner, required ThreadsManager threads})

Properties

applicationId String?
final
assets ServerAsset
final
channels ChannelManager
final
description String?
final
hashCode int
The hash code for this object.
no setterinherited
id Snowflake
final
members MemberManager
final
name String
final
owner Member
final
roles RoleManager
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings ServerSettings
final
threads → ThreadsManager
final

Methods

enablePremiumProgressBar(bool value, {String? reason}) Future<void>
Set the server's enabled premium features.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAfkChannel(String? channelId, {String? reason}) Future<void>
Set the server's afk channel.
setAfkTimeout(int value, {String? reason}) Future<void>
Set the server's afk timeout.
setDefaultMessageNotifications(DefaultMessageNotification value, {String? reason}) Future<void>
Set the default message notifications for the server.
setDescription(String description, {String? reason}) Future<void>
Set the server's description.
setExplicitContentFilter(ExplicitContentFilter value, {String? reason}) Future<void>
Set the explicit content filter for the server.
setName(String name, {String? reason}) Future<void>
Set the server's name.
setPreferredLocale(String value, {String? reason}) Future<void>
Set the server's preferred locale.
setPublicUpdatesChannel(String? channelId, {String? reason}) Future<void>
Set the server's public updates channel.
setRulesChannel(String? channelId, {String? reason}) Future<void>
Set the server's rules channel.
setSafetyAlertsChannel(String? channelId, {String? reason}) Future<void>
Set the server's safety alerts channel.
setSystemChannel(String? channelId, {String? reason}) Future<void>
Set the server's system channel.
setVanityUrlCode(String value, {String? reason}) Future<void>
Set the server's vanity url code.
toString() String
A string representation of this object.
inherited

Operators

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