Sticker
Signature
export declare class Sticker extends DiscordBaseProperties
14Methods
6Properties
user?: UserStructure;id: string;createdTimestampGetterget createdTimestamp(): number;Create a timestamp for the current object.
createdAtGetterget createdAt(): Date;createdAt gets the creation Date instace of the current object.
readonly client: UsingClient;type: StickerType;description: string | null;guildId?: string | undefined;name: string;formatType: StickerFormatType;available?: boolean | undefined;tags: string;packId?: string | undefined;sortValue?: number | undefined;Methods
constructorConstructorconstructor(client: UsingClient, data: APISticker);guild(mode?: 'rest' | 'flow'): Promise<GuildStructure<'cached' | 'api'> | undefined>;guild(mode: 'cache'): ReturnCache<GuildStructure<'cached'> | undefined>;edit(body: RESTPatchAPIGuildStickerJSONBody, reason?: string): Promise<StickerStructure | undefined>;fetch(force?: boolean): Promise<StickerStructure | undefined>;delete(reason?: string): Promise<void>;static methods({ client, guildId }: MethodContext<{ guildId: string;}>): { list: () => Promise<StickerStructure[]>; create: (payload: CreateStickerBodyRequest, reason?: string) => Promise<StickerStructure>; edit: (stickerId: string, body: RESTPatchAPIGuildStickerJSONBody, reason?: string) => Promise<StickerStructure>; fetch: (stickerId: string, force?: boolean) => Promise<StickerStructure>; delete: (stickerId: string, reason?: string) => Promise<void>;};