Discore
Show / Hide Table of Contents

Method GetChannelWebhooks

| Improve this Doc View Source

GetChannelWebhooks(Snowflake)

Gets a list of webhooks active for the specified text channel.

Requires ManageWebhooks.

Declaration
public Task<IReadOnlyList<DiscordWebhook>> GetChannelWebhooks(Snowflake channelId)
Parameters
Type Name Description
Snowflake channelId
Returns
Type Description
Task<IReadOnlyList<DiscordWebhook>>
Exceptions
Type Condition
DiscordHttpApiException
| Improve this Doc View Source

GetChannelWebhooks(ITextChannel)

Gets a list of webhooks active for the specified text channel.

Requires ManageWebhooks.

Declaration
public Task<IReadOnlyList<DiscordWebhook>> GetChannelWebhooks(ITextChannel channel)
Parameters
Type Name Description
ITextChannel channel
Returns
Type Description
Task<IReadOnlyList<DiscordWebhook>>
Exceptions
Type Condition
ArgumentNullException
DiscordHttpApiException
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX