Webhook class Null safety

Constructors

Webhook({required Snowflake id, required WebhookType type, required Snowflake? guildId, required Snowflake? channelId, required String? label, required String? avatar, required String token, required Snowflake? applicationId, required dynamic sourceGuild, required dynamic sourceChannel, required String? url})
Webhook.from({required dynamic payload})
factory

Properties

applicationId Snowflake?
read / write
avatar String?
read / write
channel GuildChannel?
read / write
channelId Snowflake?
read / write
guild Guild?
read / write
guildId Snowflake?
read / write
hashCode int
The hash code for this object.
read-only, inherited
id Snowflake
read / write
label String?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sourceChannel ↔ dynamic
read / write
sourceGuild ↔ dynamic
read / write
token String
read / write
type ↔ WebhookType
read / write
url String?
read / write
user User?
read / write

Methods

delete() Future<bool>
Delete this
execute({String? content, String? username, String? avatarUrl, bool? tts, List<EmbedBuilder>? embeds, List<RowBuilder>? components, bool? suppressEmbed}) Future<void>
Send a message from the webhook
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
setAvatar(String avatar) Future<void>
Update the avatar of this
setLabel(String label) Future<void>
Update the label of this
toString() String
A string representation of this object.
inherited
update({String? label, String? avatar}) Future<void>
Updates multiple properties of this in a single request.

Operators

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