Interface IIntegrationChannel
Represents a channel in a guild that can create webhooks.
Inherited Members
Namespace: Discord
Assembly: Discord.Net.Core.dll
Syntax
public interface IIntegrationChannel : IGuildChannel, IChannel, ISnowflakeEntity, IEntity<ulong>, IDeletable
Methods
| Improve this Doc View SourceCreateWebhookAsync(String, Stream, RequestOptions)
Creates a webhook in this channel.
Declaration
Task<IWebhook> CreateWebhookAsync(string name, Stream avatar = null, RequestOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the webhook. |
Stream | avatar | The avatar of the webhook. |
RequestOptions | options | The options to be used when sending the request. |
Returns
Type | Description |
---|---|
Task<IWebhook> | A task that represents the asynchronous creation operation. The task result contains the newly created webhook. |
GetWebhookAsync(UInt64, RequestOptions)
Gets a webhook available in this channel.
Declaration
Task<IWebhook> GetWebhookAsync(ulong id, RequestOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | id | The identifier of the webhook. |
RequestOptions | options | The options to be used when sending the request. |
Returns
Type | Description |
---|---|
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.
Declaration
Task<IReadOnlyCollection<IWebhook>> GetWebhooksAsync(RequestOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
RequestOptions | options | The options to be used when sending the request. |
Returns
Type | Description |
---|---|
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. |