Table of Contents

Class DiscordWebhook

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

Represents information about a Discord webhook.

public class DiscordWebhook : SnowflakeObject
Inheritance
DiscordWebhook
Inherited Members

Properties

AvatarUrl

Gets the default avatar url for this webhook.

ChannelId

Gets the ID of the channel this webhook belongs to.

GuildId

Gets the ID of the guild this webhook belongs to.

Name

Gets the default name of this webhook.

SourceChannel

A partial channel object for the channel this channel follower webhook is following.

SourceGuild

A partial guild object for the guild of the channel this channel follower webhook is following.

Token

Gets the secure token of this webhook.

Url

Gets the webhook's url. Only returned when using the webhook.incoming OAuth2 scope.

User

Gets the user this webhook was created by.

Methods

DeleteAsync()

Permanently deletes this webhook.

DeleteMessageAsync(ulong)

Deletes a message that was created by the webhook.

EditMessageAsync(ulong, DiscordWebhookBuilder, IEnumerable<DiscordAttachment>)

Edits a previously-sent webhook message.

Equals(DiscordWebhook)

Checks whether this DiscordWebhook is equal to another DiscordWebhook.

Equals(object)

Checks whether this DiscordWebhook is equal to another object.

ExecuteAsync(DiscordWebhookBuilder)

Executes this webhook with the given DiscordWebhookBuilder.

ExecuteGithubAsync(string)

Executes this webhook in GitHub compatibility mode.

ExecuteSlackAsync(string)

Executes this webhook in Slack compatibility mode.

GetHashCode()

Gets the hash code for this DiscordWebhook.

GetMessageAsync(ulong)

Gets a previously-sent webhook message.

ModifyAsync(string, Optional<Stream>, ulong?, string)

Modifies this webhook.

Operators

operator ==(DiscordWebhook, DiscordWebhook)

Gets whether the two DiscordWebhook objects are equal.

operator !=(DiscordWebhook, DiscordWebhook)

Gets whether the two DiscordWebhook objects are not equal.