Table of Contents

Class SocketSticker

Namespace
Discord.WebSocket
Assembly
Discord.Net.WebSocket.dll

Represents a general sticker received over the gateway.

public class SocketSticker : SocketEntity<ulong>, IEntity<ulong>, ISticker, IStickerItem
Inheritance
SocketSticker
Implements
Derived
Inherited Members

Properties

Description

Gets the description of this sticker.

public virtual string Description { get; }

Property Value

string

A string with the description of this sticker.

Format

Gets the format type of this sticker.

public StickerFormatType Format { get; protected set; }

Property Value

StickerFormatType

A StickerFormatType with the format type of this sticker.

IsAvailable

Gets whether this guild sticker can be used, may be false due to loss of Server Boosts.

public virtual bool? IsAvailable { get; protected set; }

Property Value

bool?

Name

Gets the name of this sticker.

public string Name { get; protected set; }

Property Value

string

A string with the name of this sticker.

PackId

Gets the ID of the pack of this sticker.

public virtual ulong PackId { get; }

Property Value

ulong

A snowflake ID associated with the pack of this sticker.

SortOrder

Gets the standard sticker's sort order within its pack.

public virtual int? SortOrder { get; }

Property Value

int?

Tags

Gets the list of tags of this sticker.

public virtual IReadOnlyCollection<string> Tags { get; }

Property Value

IReadOnlyCollection<string>

A read-only list with the tags of this sticker.

Type

Gets the type of this sticker.

public virtual StickerType Type { get; }

Property Value

StickerType

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetStickerUrl()

Gets the image url for this sticker.

public string GetStickerUrl()

Returns

string