ClientBuilder class final

Constructors

ClientBuilder()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build() Client
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerProvider<T extends ProviderContract>(T provider(Client)) ClientBuilder
setCache(ConstructableWithArgs<CacheProviderContract, Env> cache) ClientBuilder
setDiscordRestHttpVersion(int version) ClientBuilder
setDiscordWssVersion(int version) ClientBuilder
setEncoder(WebsocketEncoder encoding) ClientBuilder
setHmrDevPort(SendPort? devPort) ClientBuilder
setIntent(int intent) ClientBuilder
setLogger(ConstructableWithArgs<LoggerContract, Env> logger) ClientBuilder
setToken(String token) ClientBuilder
toString() String
A string representation of this object.
inherited
validateEnvironment(List<EnvSchema<ErrorReporter>> schema) ClientBuilder
watch(List<Glob> globs) ClientBuilder

Operators

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