Table of Contents

Class DiscordWebhook

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Represents information about a Discord webhook.

public class DiscordWebhook : SnowflakeObject, IEquatable<DiscordWebhook>
Inheritance
DiscordWebhook
Implements
Inherited Members

Properties

ApplicationId

Gets the ID of the application this webhook belongs to, if applicable.

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

Gets the partial source channel for this webhook (For Channel Follower Webhooks).

SourceGuild

Gets the partial source guild for this webhook (For Channel Follower Webhooks).

Token

Gets the secure token of this webhook.

Url

Gets the url used for executing the webhook.

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.

DeleteMessageAsync(ulong, ulong)

Deletes a message that was created by the webhook.

EditMessageAsync(ulong, DiscordWebhookBuilder, string)

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, string)

Executes this webhook with the given DiscordWebhookBuilder.

ExecuteGithubAsync(string, string)

Executes this webhook in GitHub compatibility mode.

ExecuteSlackAsync(string, string)

Executes this webhook in Slack compatibility mode.

GetHashCode()

Gets the hash code for this DiscordWebhook.

GetMessageAsync(ulong)

Gets a previously-sent webhook message.

GetMessageAsync(ulong, ulong)

Gets a previously-sent webhook message.

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

Modifies this webhook.

TryGetMessageAsync(ulong)

Tries to get a previously-sent webhook message.

TryGetMessageAsync(ulong, ulong)

Tries to get a previously-sent webhook message.

Operators

operator ==(DiscordWebhook, DiscordWebhook)

Gets whether the two DiscordWebhook objects are equal.

operator !=(DiscordWebhook, DiscordWebhook)

Gets whether the two DiscordWebhook objects are not equal.