mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
feat(Sticker): added Sticker (#4909)
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com> Co-authored-by: monbrey <rsm999@uowmail.edu.au> Co-authored-by: SpaceEEC <spaceeec@yahoo.com> Co-authored-by: Antonio Román <kyradiscord@gmail.com> Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com> Co-authored-by: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com> Co-authored-by: Advaith <advaithj1@gmail.com> Co-authored-by: izexi <43889168+izexi@users.noreply.github.com> Co-authored-by: Mestery <48163546+Mesteery@users.noreply.github.com> Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com>
This commit is contained in:
25
typings/index.d.ts
vendored
25
typings/index.d.ts
vendored
@@ -21,6 +21,12 @@ declare enum ChannelTypes {
|
||||
STAGE = 13,
|
||||
}
|
||||
|
||||
declare enum StickerFormatTypes {
|
||||
PNG = 1,
|
||||
APNG = 2,
|
||||
LOTTIE = 3,
|
||||
}
|
||||
|
||||
declare enum OverwriteTypes {
|
||||
role = 0,
|
||||
member = 1,
|
||||
@@ -557,7 +563,8 @@ declare module 'discord.js' {
|
||||
MessageTypes: MessageType[];
|
||||
SystemMessageTypes: SystemMessageType[];
|
||||
ActivityTypes: ActivityType[];
|
||||
OverwriteTypes: OverwriteTypes;
|
||||
StickerFormatTypes: typeof StickerFormatTypes;
|
||||
OverwriteTypes: typeof OverwriteTypes;
|
||||
ExplicitContentFilterLevels: ExplicitContentFilterLevel[];
|
||||
DefaultMessageNotifications: DefaultMessageNotifications[];
|
||||
VerificationLevels: VerificationLevel[];
|
||||
@@ -1015,6 +1022,7 @@ declare module 'discord.js' {
|
||||
public readonly pinnable: boolean;
|
||||
public pinned: boolean;
|
||||
public reactions: ReactionManager;
|
||||
public stickers: Collection<Snowflake, Sticker>;
|
||||
public system: boolean;
|
||||
public tts: boolean;
|
||||
public type: MessageType;
|
||||
@@ -2278,6 +2286,7 @@ declare module 'discord.js' {
|
||||
INVITE_ACCEPTED_TO_GUILD_NOT_CONTAINING_BOT: 50036;
|
||||
INVALID_API_VERSION: 50041;
|
||||
CANNOT_DELETE_COMMUNITY_REQUIRED_CHANNEL: 50074;
|
||||
INVALID_STICKER_SENT: 50081;
|
||||
REACTION_BLOCKED: 90001;
|
||||
RESOURCE_OVERLOADED: 130000;
|
||||
}
|
||||
@@ -3263,6 +3272,20 @@ declare module 'discord.js' {
|
||||
|
||||
type Status = number;
|
||||
|
||||
export class Sticker extends Base {
|
||||
constructor(client: Client, data: object);
|
||||
public asset: string;
|
||||
public readonly createdTimestamp: number;
|
||||
public readonly createdAt: Date;
|
||||
public description: string;
|
||||
public format: StickerFormatTypes;
|
||||
public id: Snowflake;
|
||||
public name: string;
|
||||
public packID: Snowflake;
|
||||
public tags: string[];
|
||||
public readonly url: string;
|
||||
}
|
||||
|
||||
interface StreamOptions {
|
||||
type?: StreamType;
|
||||
seek?: number;
|
||||
|
||||
Reference in New Issue
Block a user