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