/// <inheritdoc /> public async Task <IRestWebhook> GetWebhookAsync(ulong id, RequestOptions options = null) { var restWebhook = await SocketTextChannel.GetWebhookAsync(id, options); return((restWebhook is null) ? null : RestWebhookAbstractionExtensions.Abstract(restWebhook)); }
/// <inheritdoc /> public async Task <IRestWebhook> CreateWebhookAsync(string name, Stream avatar = null, RequestOptions options = null) => RestWebhookAbstractionExtensions.Abstract( await SocketTextChannel.CreateWebhookAsync(name, avatar, options));