WebhookType class Null safety

Type of webhook. Either incoming if it its normal webhook executable with token, or channelFollower if its discord internal webhook

Inheritance

Constructors

WebhookType.from(int? value)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value int
Returns value of enum
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
override

Constants

channelFollower → const WebhookType
Channel Follower Webhooks are internal webhooks used with Channel Following to post new messages into channels
const WebhookType._create(2)
incoming → const WebhookType
Incoming Webhooks can post messages to channels with a generated token
const WebhookType._create(1)