Skip to main content

Class SocketCustomSticker

Represents a custom sticker within a guild received over the gateway.

Assembly: Discord.Net.WebSocket.dll​
View Source​
Declaration
public class SocketCustomSticker : SocketSticker, IEntity<ulong>, ICustomSticker, ISticker, IStickerItem

Properties​

Author​

Gets the user that uploaded the guild sticker.

View Source​
Declaration
public SocketGuildUser Author { get; }

Guild​

Gets the guild the sticker was created in.

View Source​
Declaration
public SocketGuild Guild { get; }

AuthorId​

View Source​
Declaration
public ulong? AuthorId { get; set; }

ICustomSticker.AuthorId​

View Source​
Declaration
ulong? ICustomSticker.AuthorId { get; }

ICustomSticker.Guild​

View Source​
Declaration
IGuild ICustomSticker.Guild { get; }

Methods​

ModifyAsync(Action<StickerProperties>, RequestOptions)​

Modifies this sticker.

View Source​
Declaration
public async Task ModifyAsync(Action<StickerProperties> func, RequestOptions options = null)
Returns​

System.Threading.Tasks.Task: A task that represents the asynchronous modification operation.

Parameters​
TypeNameDescription
System.Action<Discord.StickerProperties>funcA delegate containing the properties to modify the sticker with.
Discord.RequestOptionsoptionsThe options to be used when sending the request.

DeleteAsync(RequestOptions)​

Deletes the current sticker.

View Source​
Declaration
public async Task DeleteAsync(RequestOptions options = null)
Returns​

System.Threading.Tasks.Task: A task that represents the asynchronous deletion operation.

Parameters​
TypeNameDescription
Discord.RequestOptionsoptionsThe options to be used when sending the request.

Implements​