Webhook class Null safety
Constructors
Properties
- applicationId → Snowflake?
-
read-only
- avatar → String?
-
read-only
- channel → GuildChannel?
-
read-only
- creator → User?
-
read-only
- guild → Guild?
-
read-only
- hashCode → int
-
The hash code for this object.
read-only, inherited
- id → Snowflake
-
read-only
- label → String?
-
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- sourceChannel → SourceChannel?
-
read-only
- sourceGuild → SourceGuild?
-
read-only
- token → String
-
read-only
- type → WebhookType
-
read-only
- url → String?
-
read-only
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
-
setChannel(
Snowflake channelId) → 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