Webhook class
Constructors
-
Webhook(Snowflake _id, int _type, Snowflake? _guildId, Snowflake? _channelId, Snowflake? _creatorId, String? _label, String? _avatar, String _token, Snowflake? _applicationId, String? _url, SourceChannel? _sourceChannel, SourceGuild? _sourceGuild)
-
-
Webhook.from({required dynamic payload})
-
factory
Methods
-
delete({String? reason})
→ 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 nonexistent method or property is accessed.
inherited
-
setAvatar(String avatar, {String? reason})
→ Future<void>
-
Update the avatar of this
-
setChannel(Snowflake channelId, {String? reason})
→ Future<void>
-
Update the avatar of this
-
setLabel(String label, {String? reason})
→ Future<void>
-
Update the label of this
-
toString()
→ String
-
A string representation of this object.
inherited
-
update({String? label, String? avatar, String? reason})
→ Future<void>
-
Updates multiple properties of this in a single request.