InteractionContextType enum

A language locale available in the Discord client.

External references:

Inheritance

Constructors

InteractionContextType.parse(int value)
Parse an InteractionContextType from an int.
factory

Values

guild → const InteractionContextType

Interaction can be used within servers.

const InteractionContextType._(0)
botDm → const InteractionContextType

Interaction can be used within DMs with the app's bot user.

const InteractionContextType._(1)
privateChannel → const InteractionContextType

Interaction can be used within Group DMs and DMs other than the app's bot user.

const InteractionContextType._(2)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
The value of this InteractionContextType.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Constants

values → const List<InteractionContextType>
A constant List of the values in this enum, in order of their declaration.