Discore
Show / Hide Table of Contents

Method GetWebhookWithToken

| Improve this Doc View Source

GetWebhookWithToken(Snowflake, string)

Gets a webhook via its ID.

This call does not require authentication and returns no user in the webhook object.

Declaration
public Task<DiscordWebhook> GetWebhookWithToken(Snowflake webhookId, string token)
Parameters
Type Name Description
Snowflake webhookId
string token
Returns
Type Description
Task<DiscordWebhook>
Exceptions
Type Condition
ArgumentException

Thrown if the token is empty or only contains whitespace characters.

ArgumentNullException

Thrown if token is null.

DiscordHttpApiException
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX