execute method

Future<Message?> execute(
  1. MessageBuilder builder,
  2. {required String token,
  3. bool? wait,
  4. Snowflake? threadId,
  5. String? threadName,
  6. List<Snowflake>? appliedTags,
  7. String? username,
  8. String? avatarUrl}
)

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:

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);