Table of Contents

Class GuildEmoji

Namespace
NetCord
Assembly
NetCord.dll
public class GuildEmoji : CustomEmoji, IJsonModel<JsonEmoji>, ISpanFormattable, IFormattable
Inheritance
GuildEmoji
Implements
Inherited Members

Constructors

GuildEmoji(JsonEmoji, ulong, RestClient)

public GuildEmoji(JsonEmoji jsonModel, ulong guildId, RestClient client)

Parameters

jsonModel JsonEmoji
guildId ulong
client RestClient

Properties

AllowedRoles

public IReadOnlyList<ulong>? AllowedRoles { get; }

Property Value

IReadOnlyList<ulong>

GuildId

public ulong GuildId { get; }

Property Value

ulong

Methods

DeleteAsync(RestRequestProperties?, CancellationToken)

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

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task

GetAsync(RestRequestProperties?, CancellationToken)

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

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<GuildEmoji>

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

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

Parameters

action Action<GuildEmojiOptions>
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<GuildEmoji>