public virtual Task <IReadOnlyCollection <RestWebhook> > GetWebhooksAsync(RequestOptions?options = null) { return(_socketGuild.GetWebhooksAsync(options)); }
public async Task <RestWebhook> GetWebhookAsync(SocketGuild guild, WebhookOptions options) { return((await guild?.GetWebhooksAsync())?.FirstOrDefault(x => x?.Name == options.Name || x?.Id == options.Webhook.WebhookId)); }
public async Task <RestWebhook> GetWebhookAsync(SocketGuild Guild, WebhookOptions Options) => (await Guild?.GetWebhooksAsync())?.FirstOrDefault(x => x?.Name == Options.Name || x?.Id == Options.Webhook.WebhookId);