execute method
Execute this webhook using its token
.
If wait
is false
, null
is returned and no errors are raised from the server. Otherwise, the created message is returned.
If threadId
is specified, the message is sent in that thread in this webhook's channel.
External references:
- WebhookManager.execute
- Discord API Reference: https://discord.com/developers/docs/resources/webhook#execute-webhook
Implementation
Future<Message?> execute(MessageBuilder builder,
{required String token, bool? wait, Snowflake? threadId, String? threadName, List<Snowflake>? appliedTags, String? username, String? avatarUrl}) =>
manager.execute(id, builder,
token: token, wait: wait, threadId: threadId, threadName: threadName, appliedTags: appliedTags, username: username, avatarUrl: avatarUrl);