Search Results for

    Show / Hide Table of Contents

    Interface IIntegrationChannel

    Represents a channel in a guild that can create webhooks.

    Inherited Members
    IGuildChannel.Position
    IGuildChannel.Flags
    IGuildChannel.Guild
    IGuildChannel.GuildId
    IGuildChannel.PermissionOverwrites
    IGuildChannel.ModifyAsync(Action<GuildChannelProperties>, RequestOptions)
    IGuildChannel.GetPermissionOverwrite(IRole)
    IGuildChannel.GetPermissionOverwrite(IUser)
    IGuildChannel.RemovePermissionOverwriteAsync(IRole, RequestOptions)
    IGuildChannel.RemovePermissionOverwriteAsync(IUser, RequestOptions)
    IGuildChannel.AddPermissionOverwriteAsync(IRole, OverwritePermissions, RequestOptions)
    IGuildChannel.AddPermissionOverwriteAsync(IUser, OverwritePermissions, RequestOptions)
    IGuildChannel.GetUsersAsync(CacheMode, RequestOptions)
    IGuildChannel.GetUserAsync(UInt64, CacheMode, RequestOptions)
    IChannel.Name
    ISnowflakeEntity.CreatedAt
    IEntity<UInt64>.Id
    IDeletable.DeleteAsync(RequestOptions)
    Namespace: Discord
    Assembly: Discord.Net.Core.dll
    Syntax
    public interface IIntegrationChannel : IGuildChannel, IChannel, ISnowflakeEntity, IEntity<ulong>, IDeletable

    Methods

    | Improve this Doc View Source

    CreateWebhookAsync(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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    Extension Methods

    ChannelExtensions.GetChannelType(IChannel)

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2023 3.12.0