Server class final

Constructors

Server.new({required Snowflake id, required String name, required Snowflake ownerId, required MemberManager members, required ServerSettings settings, required RoleManager roles, required ChannelManager<Channel> channels, required String? description, required String? applicationId, required ServerAsset assets, required ServerThreadManager threads})

Properties

applicationId String?
final
assets ServerAsset
final
channels ChannelManager<Channel>
final
description String?
final
hashCode int
The hash code for this object.
no setterinherited
id Snowflake
final
members MemberManager
final
name String
final
ownerId Snowflake
final
roles RoleManager
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings ServerSettings
final
threads → ServerThreadManager
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
resolveOwner({bool force = false}) Future<Member>
Resolve the server owner's name.
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.
setSafetyAlertsChannel(String? channelId, {String? reason}) Future<void>
Set the server's safety alerts 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