Interface IIntegrationChannel
- Namespace
- Discord
- Assembly
- Discord.Net.Core.dll
Represents a channel in a guild that can create webhooks.
public interface IIntegrationChannel : IGuildChannel, IChannel, ISnowflakeEntity, IEntity<ulong>, IDeletable
- Inherited Members
- Extension Methods
Methods
CreateWebhookAsync(string, Stream, RequestOptions)
Creates a webhook in this channel.
Task<IWebhook> CreateWebhookAsync(string name, Stream avatar = null, RequestOptions options = null)
Parameters
name
stringThe name of the webhook.
avatar
StreamThe avatar of the webhook.
options
RequestOptionsThe options to be used when sending the request.
Returns
- Task<IWebhook>
A task that represents the asynchronous creation operation. The task result contains the newly created webhook.
GetWebhookAsync(ulong, RequestOptions)
Gets a webhook available in this channel.
Task<IWebhook> GetWebhookAsync(ulong id, RequestOptions options = null)
Parameters
id
ulongThe identifier of the webhook.
options
RequestOptionsThe options to be used when sending the request.
Returns
- Task<IWebhook>
A task that represents the asynchronous get operation. The task result contains a webhook associated with the identifier; null if the webhook is not found.
GetWebhooksAsync(RequestOptions)
Gets the webhooks available in this channel.
Task<IReadOnlyCollection<IWebhook>> GetWebhooksAsync(RequestOptions options = null)
Parameters
options
RequestOptionsThe options to be used when sending the request.
Returns
- Task<IReadOnlyCollection<IWebhook>>
A task that represents the asynchronous get operation. The task result contains a read-only collection of webhooks that is available in this channel.