Table of Contents

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 string

The name of the webhook.

avatar Stream

The avatar of the webhook.

options RequestOptions

The 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 ulong

The identifier of the webhook.

options RequestOptions

The 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 RequestOptions

The 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.