GatewayIntents class

Flags used to set the intents when opening a Gateway session.

Inheritance
Available Extensions

Constructors

GatewayIntents(int value)
Create a new GatewayIntents.
const

Properties

first Flag<GatewayIntents>
The first element.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Whether this collection has no elements.
no setterinherited
isNotEmpty bool
Whether this collection has at least one element.
no setterinherited
iterator Iterator<Flag<GatewayIntents>>
A new Iterator that allows iterating the elements of this Iterable.
no setterinherited
last Flag<GatewayIntents>
The last element.
no setterinherited
length int
The number of elements in this.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
single Flag<GatewayIntents>
Checks that this iterable has only one element, and returns that element.
no setterinherited
value int
The integer value encoding the flags as a bitfield.
finalinherited

Methods

any(bool test(Flag<GatewayIntents> element)) bool
Checks whether any element of this iterable satisfies test.
inherited
cast<R>() Iterable<R>
A view of this iterable as an iterable of R instances.
inherited
contains(Object? element) bool
Whether the collection contains an element equal to element.
inherited
defaultToString() String
Same as toString, but only called when dart:mirrors is not available.
inherited
elementAt(int index) Flag<GatewayIntents>
Returns the indexth element.
inherited
every(bool test(Flag<GatewayIntents> element)) bool
Checks whether every element of this iterable satisfies test.
inherited
expand<T>(Iterable<T> toElements(Flag<GatewayIntents> element)) Iterable<T>
Expands each element of this Iterable into zero or more elements.
inherited
firstWhere(bool test(Flag<GatewayIntents> element), {Flag<GatewayIntents> orElse()?}) Flag<GatewayIntents>
The first element that satisfies the given predicate test.
inherited
fold<T>(T initialValue, T combine(T previousValue, Flag<GatewayIntents> element)) → T
Reduces a collection to a single value by iteratively combining each element of the collection with an existing value
inherited
followedBy(Iterable<Flag<GatewayIntents>> other) Iterable<Flag<GatewayIntents>>
Creates the lazy concatenation of this iterable and other.
inherited
forEach(void action(Flag<GatewayIntents> element)) → void
Invokes action on each element of this iterable in iteration order.
inherited
has(Flag<GatewayIntents> flag) bool
Returns true if this Flags has the flag enabled, false otherwise.
inherited
join([String separator = ""]) String
Converts each element to a String and concatenates the strings.
inherited
lastWhere(bool test(Flag<GatewayIntents> element), {Flag<GatewayIntents> orElse()?}) Flag<GatewayIntents>
The last element that satisfies the given predicate test.
inherited
map<T>(T toElement(Flag<GatewayIntents> e)) Iterable<T>
The current elements of this iterable modified by toElement.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reduce(Flag<GatewayIntents> combine(Flag<GatewayIntents> value, Flag<GatewayIntents> element)) Flag<GatewayIntents>
Reduces a collection to a single value by iteratively combining elements of the collection using the provided function.
inherited
singleWhere(bool test(Flag<GatewayIntents> element), {Flag<GatewayIntents> orElse()?}) Flag<GatewayIntents>
The single element that satisfies test.
inherited
skip(int count) Iterable<Flag<GatewayIntents>>
Creates an Iterable that provides all but the first count elements.
inherited
skipWhile(bool test(Flag<GatewayIntents> value)) Iterable<Flag<GatewayIntents>>
Creates an Iterable that skips leading elements while test is satisfied.
inherited
take(int count) Iterable<Flag<GatewayIntents>>
Creates a lazy iterable of the count first elements of this iterable.
inherited
takeWhile(bool test(Flag<GatewayIntents> value)) Iterable<Flag<GatewayIntents>>
Creates a lazy iterable of the leading elements satisfying test.
inherited
toList({bool growable = true}) List<Flag<GatewayIntents>>
Creates a List containing the elements of this Iterable.
inherited
toSet() Set<Flag<GatewayIntents>>
Creates a Set containing the same elements as this iterable.
inherited
toString() String
A string representation of this object.
inherited
where(bool test(Flag<GatewayIntents> element)) Iterable<Flag<GatewayIntents>>
Creates a new lazy Iterable with all elements that satisfy the predicate test.
inherited
whereType<T>() Iterable<T>
Creates a new lazy Iterable with all elements that have type T.
inherited

Operators

operator &(Flags<GatewayIntents> other) Flags<GatewayIntents>
Return a set of flags that has all the flags set in both this and other.
inherited
operator ==(Object other) bool
The equality operator.
inherited
operator ^(Flags<GatewayIntents> other) Flags<GatewayIntents>
Return a set of flags that has all the flags set in this or in other but not in both.
inherited
operator |(Flags<GatewayIntents> other) Flags<GatewayIntents>
Return a set of flags that has all the flags set in either this or other.
inherited
operator ~() Flags<GatewayIntents>
Returns the opposite of this set of flags.
inherited

Constants

all → const GatewayIntents
A GatewayIntents with all intents enabled.
allPrivileged → const GatewayIntents
A GatewayIntents with all privileged intents enabled.
allUnprivileged → const GatewayIntents
A GatewayIntents with all unprivileged intents enabled.
autoModerationConfiguration → const Flag<GatewayIntents>
autoModerationExecution → const Flag<GatewayIntents>
directMessageReactions → const Flag<GatewayIntents>
directMessages → const Flag<GatewayIntents>
directMessageTyping → const Flag<GatewayIntents>
guildEmojisAndStickers → const Flag<GatewayIntents>
guildIntegrations → const Flag<GatewayIntents>
guildInvites → const Flag<GatewayIntents>
guildMembers → const Flag<GatewayIntents>
guildMessageReactions → const Flag<GatewayIntents>
guildMessages → const Flag<GatewayIntents>
guildMessageTyping → const Flag<GatewayIntents>
guildModeration → const Flag<GatewayIntents>
guildPresences → const Flag<GatewayIntents>
guilds → const Flag<GatewayIntents>
guildScheduledEvents → const Flag<GatewayIntents>
guildVoiceStates → const Flag<GatewayIntents>
guildWebhooks → const Flag<GatewayIntents>
messageContent → const Flag<GatewayIntents>
none → const GatewayIntents
A GatewayIntents with no intents enabled.