Class Webhook
public class Webhook : ClientEntity, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>, IJsonModel<JsonWebhook>
- Inheritance
-
Webhook
- Implements
- Derived
- Inherited Members
Constructors
Webhook(JsonWebhook, RestClient)
public Webhook(JsonWebhook jsonModel, RestClient client)
Parameters
jsonModel
JsonWebhookclient
RestClient
Properties
ApplicationId
public ulong? ApplicationId { get; }
Property Value
AvatarHash
public string? AvatarHash { get; }
Property Value
Channel
public Channel? Channel { get; }
Property Value
ChannelId
public ulong? ChannelId { get; }
Property Value
Creator
public User? Creator { get; }
Property Value
Guild
public RestGuild? Guild { get; }
Property Value
GuildId
public ulong? GuildId { get; }
Property Value
Id
The unique identifier for this object.
public override ulong Id { get; }
Property Value
Name
public string? Name { get; }
Property Value
Type
public WebhookType Type { get; }
Property Value
Url
public string? Url { get; }
Property Value
Methods
CreateFromJson(JsonWebhook, RestClient)
public static Webhook CreateFromJson(JsonWebhook jsonModel, RestClient client)
Parameters
jsonModel
JsonWebhookclient
RestClient
Returns
DeleteAsync(RestRequestProperties?, CancellationToken)
public Task DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetAsync(RestRequestProperties?, CancellationToken)
public Task<Webhook> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyAsync(Action<WebhookOptions>, RestRequestProperties?, CancellationToken)
public Task<Webhook> ModifyAsync(Action<WebhookOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
action
Action<WebhookOptions>properties
RestRequestPropertiescancellationToken
CancellationToken