Table of Contents

Class IncomingWebhook

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class IncomingWebhook : Webhook, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>, IJsonModel<JsonWebhook>
Inheritance
IncomingWebhook
Implements
Inherited Members

Constructors

IncomingWebhook(JsonWebhook, RestClient)

public IncomingWebhook(JsonWebhook jsonModel, RestClient client)

Parameters

jsonModel JsonWebhook
client RestClient

Properties

Token

public string Token { get; }

Property Value

string

Methods

DeleteMessageAsync(ulong, ulong?, RestRequestProperties?, CancellationToken)

public Task DeleteMessageAsync(ulong messageId, ulong? threadId = null, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

messageId ulong
threadId ulong?
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task

DeleteWithTokenAsync(RestRequestProperties?, CancellationToken)

public Task DeleteWithTokenAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task

ExecuteAsync(WebhookMessageProperties, bool, ulong?, RestRequestProperties?, CancellationToken)

public Task<RestMessage?> ExecuteAsync(WebhookMessageProperties message, bool wait = false, ulong? threadId = null, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

message WebhookMessageProperties
wait bool
threadId ulong?
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<RestMessage>

GetAsync(RestRequestProperties?, CancellationToken)

public Task<IncomingWebhook> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<IncomingWebhook>

GetMessageAsync(ulong, RestRequestProperties?, CancellationToken)

public Task<RestMessage> GetMessageAsync(ulong messageId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

messageId ulong
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<RestMessage>

GetWithTokenAsync(RestRequestProperties?, CancellationToken)

public Task<IncomingWebhook> GetWithTokenAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<IncomingWebhook>

ModifyAsync(Action<WebhookOptions>, RestRequestProperties?, CancellationToken)

public Task<IncomingWebhook> ModifyAsync(Action<WebhookOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

action Action<WebhookOptions>
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<IncomingWebhook>

ModifyMessageAsync(ulong, Action<MessageOptions>, ulong?, RestRequestProperties?, CancellationToken)

public Task<RestMessage> ModifyMessageAsync(ulong messageId, Action<MessageOptions> action, ulong? threadId = null, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

messageId ulong
action Action<MessageOptions>
threadId ulong?
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<RestMessage>

ModifyWithTokenAsync(Action<WebhookOptions>, RestRequestProperties?, CancellationToken)

public Task<IncomingWebhook> ModifyWithTokenAsync(Action<WebhookOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

action Action<WebhookOptions>
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<IncomingWebhook>