execute abstract method

Future<IMessage?> execute(
  1. MessageBuilder builder,
  2. {bool wait = true,
  3. Snowflake? threadId,
  4. String? threadName,
  5. String? avatarUrl,
  6. String? username}
)

Executes webhook.

wait - waits for server confirmation of message send before response, and returns the created message body (defaults to false; when false a message that is not save does not return an error) threadId is the id of thread in the channel to send to. If threadName is specified, this will create a thread in the forum channel with the given name - this is only available for forum channels.

Implementation

Future<IMessage?> execute(MessageBuilder builder, {bool wait = true, Snowflake? threadId, String? threadName, String? avatarUrl, String? username});