|
|
@@ -84,7 +84,7 @@ namespace Discord.Webhook |
|
|
|
ApiClient.SentRequest += async (method, endpoint, millis) => await _restLogger.VerboseAsync($"{method} {endpoint}: {millis} ms").ConfigureAwait(false); |
|
|
|
} |
|
|
|
private static API.DiscordRestApiClient CreateApiClient(DiscordRestConfig config) |
|
|
|
=> new API.DiscordRestApiClient(config.RestClientProvider, DiscordRestConfig.UserAgent); |
|
|
|
=> new API.DiscordRestApiClient(config.RestClientProvider, DiscordRestConfig.UserAgent, null); |
|
|
|
/// <summary> Sends a message to the channel for this webhook. </summary> |
|
|
|
/// <returns> Returns the ID of the created message. </returns> |
|
|
|
public Task<ulong> SendMessageAsync(string text = null, bool isTTS = false, IEnumerable<Embed> embeds = null, |
|
|
|