Method GetGuildWebhooks
| Improve this Doc View SourceGetGuildWebhooks(Snowflake)
Gets a list of all webhooks in a guild.
Requires ManageWebhooks.
Declaration
public Task<IReadOnlyList<DiscordWebhook>> GetGuildWebhooks(Snowflake guildId)
Parameters
| Type | Name | Description |
|---|---|---|
| Snowflake | guildId |
Returns
| Type | Description |
|---|---|
| Task<IReadOnlyList<DiscordWebhook>> |
Exceptions
| Type | Condition |
|---|---|
| DiscordHttpApiException |
GetGuildWebhooks(DiscordGuild)
Gets a list of all webhooks in a guild.
Requires ManageWebhooks.
Declaration
public Task<IReadOnlyList<DiscordWebhook>> GetGuildWebhooks(DiscordGuild guild)
Parameters
| Type | Name | Description |
|---|---|---|
| DiscordGuild | guild |
Returns
| Type | Description |
|---|---|
| Task<IReadOnlyList<DiscordWebhook>> |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | |
| DiscordHttpApiException |