@fluxerjs/types 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +42 -1
- package/dist/index.d.ts +42 -1
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -488,6 +488,12 @@ interface GatewayResumeData {
|
|
|
488
488
|
session_id: string;
|
|
489
489
|
seq: number;
|
|
490
490
|
}
|
|
491
|
+
/** Custom status object (Fluxer uses this root object rather than Discord-style activities array). */
|
|
492
|
+
interface GatewayCustomStatus {
|
|
493
|
+
text?: string | null;
|
|
494
|
+
emoji_name?: string | null;
|
|
495
|
+
emoji_id?: string | null;
|
|
496
|
+
}
|
|
491
497
|
interface GatewayPresenceUpdateData {
|
|
492
498
|
since?: number | null;
|
|
493
499
|
activities?: Array<{
|
|
@@ -495,6 +501,8 @@ interface GatewayPresenceUpdateData {
|
|
|
495
501
|
type: number;
|
|
496
502
|
url?: string | null;
|
|
497
503
|
}>;
|
|
504
|
+
/** Custom status; set text (and optionally emoji) for bots. Passable on identify and via presence update. */
|
|
505
|
+
custom_status?: GatewayCustomStatus | null;
|
|
498
506
|
status: 'online' | 'idle' | 'dnd' | 'invisible';
|
|
499
507
|
afk?: boolean;
|
|
500
508
|
}
|
|
@@ -555,6 +563,37 @@ interface GatewayMessageDeleteBulkDispatchData {
|
|
|
555
563
|
channel_id: Snowflake;
|
|
556
564
|
guild_id?: Snowflake;
|
|
557
565
|
}
|
|
566
|
+
/** Emoji data sent with reaction events (id is null for unicode emoji). */
|
|
567
|
+
interface GatewayReactionEmoji {
|
|
568
|
+
id: Snowflake | null;
|
|
569
|
+
name: string;
|
|
570
|
+
animated?: boolean;
|
|
571
|
+
}
|
|
572
|
+
interface GatewayMessageReactionAddDispatchData {
|
|
573
|
+
message_id: Snowflake;
|
|
574
|
+
channel_id: Snowflake;
|
|
575
|
+
user_id: Snowflake;
|
|
576
|
+
guild_id?: Snowflake;
|
|
577
|
+
emoji: GatewayReactionEmoji;
|
|
578
|
+
}
|
|
579
|
+
interface GatewayMessageReactionRemoveDispatchData {
|
|
580
|
+
message_id: Snowflake;
|
|
581
|
+
channel_id: Snowflake;
|
|
582
|
+
user_id: Snowflake;
|
|
583
|
+
guild_id?: Snowflake;
|
|
584
|
+
emoji: GatewayReactionEmoji;
|
|
585
|
+
}
|
|
586
|
+
interface GatewayMessageReactionRemoveEmojiDispatchData {
|
|
587
|
+
message_id: Snowflake;
|
|
588
|
+
channel_id: Snowflake;
|
|
589
|
+
guild_id?: Snowflake;
|
|
590
|
+
emoji: GatewayReactionEmoji;
|
|
591
|
+
}
|
|
592
|
+
interface GatewayMessageReactionRemoveAllDispatchData {
|
|
593
|
+
message_id: Snowflake;
|
|
594
|
+
channel_id: Snowflake;
|
|
595
|
+
guild_id?: Snowflake;
|
|
596
|
+
}
|
|
558
597
|
type GatewayGuildCreateDispatchData = APIGuild & {
|
|
559
598
|
unavailable?: boolean;
|
|
560
599
|
};
|
|
@@ -657,6 +696,8 @@ declare const Routes: {
|
|
|
657
696
|
readonly guildStickers: (id: Snowflake) => `/guilds/${string}/stickers`;
|
|
658
697
|
readonly guildSticker: (guildId: Snowflake, stickerId: Snowflake) => `/guilds/${string}/stickers/${string}`;
|
|
659
698
|
readonly guildWebhooks: (id: Snowflake) => `/guilds/${string}/webhooks`;
|
|
699
|
+
readonly webhook: (id: Snowflake) => `/webhooks/${string}`;
|
|
700
|
+
readonly webhookExecute: (id: Snowflake, token: string) => `/webhooks/${string}/${string}`;
|
|
660
701
|
readonly user: (id: Snowflake) => `/users/${string}`;
|
|
661
702
|
readonly currentUser: () => "/users/@me";
|
|
662
703
|
readonly userProfile: (id: Snowflake) => `/users/${string}/profile`;
|
|
@@ -668,4 +709,4 @@ declare const Routes: {
|
|
|
668
709
|
readonly oauth2ApplicationBotResetToken: (id: Snowflake) => `/oauth2/applications/${string}/bot/reset-token`;
|
|
669
710
|
};
|
|
670
711
|
|
|
671
|
-
export { type APIApplicationCommandInteraction, type APIBan, type APIChannel, type APIChannelOverwrite, type APIChannelPartial, type APIEmbed, type APIEmbedAuthor, type APIEmbedField, type APIEmbedFooter, type APIEmbedMedia, type APIEmoji, type APIEmojiWithUser, type APIErrorBody, APIErrorCode, type APIGatewayBotResponse, type APIGuild, type APIGuildMember, type APIGuildPartial, type APIInvite, type APIMessage, type APIMessageAttachment, type APIMessageReaction, type APIMessageReference, type APIMessageSticker, type APIReactionEmoji, type APIRole, type APISticker, type APIStickerWithUser, type APIUser, type APIUserPartial, type APIWebhook, ChannelType, DefaultMessageNotifications, type EmbedType, FLUXER_EPOCH, type GatewayChannelCreateDispatchData, type GatewayChannelDeleteDispatchData, type GatewayChannelUpdateDispatchData, type GatewayDispatchEventName, GatewayDispatchEvents, type GatewayGuildCreateDispatchData, type GatewayGuildDeleteDispatchData, type GatewayGuildMemberAddDispatchData, type GatewayGuildMemberRemoveDispatchData, type GatewayGuildMemberUpdateDispatchData, type GatewayGuildRoleCreateDispatchData, type GatewayGuildRoleDeleteDispatchData, type GatewayGuildRoleUpdateDispatchData, type GatewayGuildUpdateDispatchData, type GatewayHelloData, type GatewayIdentifyData, type GatewayMessageCreateDispatchData, type GatewayMessageDeleteBulkDispatchData, type GatewayMessageDeleteDispatchData, type GatewayMessageUpdateDispatchData, GatewayOpcodes, type GatewayPresenceUpdateData, type GatewayReadyDispatchData, type GatewayReceivePayload, type GatewayResumeData, type GatewaySendPayload, type GatewayVoiceServerUpdateDispatchData, type GatewayVoiceStateUpdateData, type GatewayVoiceStateUpdateDispatchData, GuildExplicitContentFilter, type GuildFeature, GuildMFALevel, GuildVerificationLevel, MessageFlags, MessageType, OverwriteType, type RateLimitErrorBody, Routes, type Snowflake, WebhookType };
|
|
712
|
+
export { type APIApplicationCommandInteraction, type APIBan, type APIChannel, type APIChannelOverwrite, type APIChannelPartial, type APIEmbed, type APIEmbedAuthor, type APIEmbedField, type APIEmbedFooter, type APIEmbedMedia, type APIEmoji, type APIEmojiWithUser, type APIErrorBody, APIErrorCode, type APIGatewayBotResponse, type APIGuild, type APIGuildMember, type APIGuildPartial, type APIInvite, type APIMessage, type APIMessageAttachment, type APIMessageReaction, type APIMessageReference, type APIMessageSticker, type APIReactionEmoji, type APIRole, type APISticker, type APIStickerWithUser, type APIUser, type APIUserPartial, type APIWebhook, ChannelType, DefaultMessageNotifications, type EmbedType, FLUXER_EPOCH, type GatewayChannelCreateDispatchData, type GatewayChannelDeleteDispatchData, type GatewayChannelUpdateDispatchData, type GatewayCustomStatus, type GatewayDispatchEventName, GatewayDispatchEvents, type GatewayGuildCreateDispatchData, type GatewayGuildDeleteDispatchData, type GatewayGuildMemberAddDispatchData, type GatewayGuildMemberRemoveDispatchData, type GatewayGuildMemberUpdateDispatchData, type GatewayGuildRoleCreateDispatchData, type GatewayGuildRoleDeleteDispatchData, type GatewayGuildRoleUpdateDispatchData, type GatewayGuildUpdateDispatchData, type GatewayHelloData, type GatewayIdentifyData, type GatewayMessageCreateDispatchData, type GatewayMessageDeleteBulkDispatchData, type GatewayMessageDeleteDispatchData, type GatewayMessageReactionAddDispatchData, type GatewayMessageReactionRemoveAllDispatchData, type GatewayMessageReactionRemoveDispatchData, type GatewayMessageReactionRemoveEmojiDispatchData, type GatewayMessageUpdateDispatchData, GatewayOpcodes, type GatewayPresenceUpdateData, type GatewayReactionEmoji, type GatewayReadyDispatchData, type GatewayReceivePayload, type GatewayResumeData, type GatewaySendPayload, type GatewayVoiceServerUpdateDispatchData, type GatewayVoiceStateUpdateData, type GatewayVoiceStateUpdateDispatchData, GuildExplicitContentFilter, type GuildFeature, GuildMFALevel, GuildVerificationLevel, MessageFlags, MessageType, OverwriteType, type RateLimitErrorBody, Routes, type Snowflake, WebhookType };
|
package/dist/index.d.ts
CHANGED
|
@@ -488,6 +488,12 @@ interface GatewayResumeData {
|
|
|
488
488
|
session_id: string;
|
|
489
489
|
seq: number;
|
|
490
490
|
}
|
|
491
|
+
/** Custom status object (Fluxer uses this root object rather than Discord-style activities array). */
|
|
492
|
+
interface GatewayCustomStatus {
|
|
493
|
+
text?: string | null;
|
|
494
|
+
emoji_name?: string | null;
|
|
495
|
+
emoji_id?: string | null;
|
|
496
|
+
}
|
|
491
497
|
interface GatewayPresenceUpdateData {
|
|
492
498
|
since?: number | null;
|
|
493
499
|
activities?: Array<{
|
|
@@ -495,6 +501,8 @@ interface GatewayPresenceUpdateData {
|
|
|
495
501
|
type: number;
|
|
496
502
|
url?: string | null;
|
|
497
503
|
}>;
|
|
504
|
+
/** Custom status; set text (and optionally emoji) for bots. Passable on identify and via presence update. */
|
|
505
|
+
custom_status?: GatewayCustomStatus | null;
|
|
498
506
|
status: 'online' | 'idle' | 'dnd' | 'invisible';
|
|
499
507
|
afk?: boolean;
|
|
500
508
|
}
|
|
@@ -555,6 +563,37 @@ interface GatewayMessageDeleteBulkDispatchData {
|
|
|
555
563
|
channel_id: Snowflake;
|
|
556
564
|
guild_id?: Snowflake;
|
|
557
565
|
}
|
|
566
|
+
/** Emoji data sent with reaction events (id is null for unicode emoji). */
|
|
567
|
+
interface GatewayReactionEmoji {
|
|
568
|
+
id: Snowflake | null;
|
|
569
|
+
name: string;
|
|
570
|
+
animated?: boolean;
|
|
571
|
+
}
|
|
572
|
+
interface GatewayMessageReactionAddDispatchData {
|
|
573
|
+
message_id: Snowflake;
|
|
574
|
+
channel_id: Snowflake;
|
|
575
|
+
user_id: Snowflake;
|
|
576
|
+
guild_id?: Snowflake;
|
|
577
|
+
emoji: GatewayReactionEmoji;
|
|
578
|
+
}
|
|
579
|
+
interface GatewayMessageReactionRemoveDispatchData {
|
|
580
|
+
message_id: Snowflake;
|
|
581
|
+
channel_id: Snowflake;
|
|
582
|
+
user_id: Snowflake;
|
|
583
|
+
guild_id?: Snowflake;
|
|
584
|
+
emoji: GatewayReactionEmoji;
|
|
585
|
+
}
|
|
586
|
+
interface GatewayMessageReactionRemoveEmojiDispatchData {
|
|
587
|
+
message_id: Snowflake;
|
|
588
|
+
channel_id: Snowflake;
|
|
589
|
+
guild_id?: Snowflake;
|
|
590
|
+
emoji: GatewayReactionEmoji;
|
|
591
|
+
}
|
|
592
|
+
interface GatewayMessageReactionRemoveAllDispatchData {
|
|
593
|
+
message_id: Snowflake;
|
|
594
|
+
channel_id: Snowflake;
|
|
595
|
+
guild_id?: Snowflake;
|
|
596
|
+
}
|
|
558
597
|
type GatewayGuildCreateDispatchData = APIGuild & {
|
|
559
598
|
unavailable?: boolean;
|
|
560
599
|
};
|
|
@@ -657,6 +696,8 @@ declare const Routes: {
|
|
|
657
696
|
readonly guildStickers: (id: Snowflake) => `/guilds/${string}/stickers`;
|
|
658
697
|
readonly guildSticker: (guildId: Snowflake, stickerId: Snowflake) => `/guilds/${string}/stickers/${string}`;
|
|
659
698
|
readonly guildWebhooks: (id: Snowflake) => `/guilds/${string}/webhooks`;
|
|
699
|
+
readonly webhook: (id: Snowflake) => `/webhooks/${string}`;
|
|
700
|
+
readonly webhookExecute: (id: Snowflake, token: string) => `/webhooks/${string}/${string}`;
|
|
660
701
|
readonly user: (id: Snowflake) => `/users/${string}`;
|
|
661
702
|
readonly currentUser: () => "/users/@me";
|
|
662
703
|
readonly userProfile: (id: Snowflake) => `/users/${string}/profile`;
|
|
@@ -668,4 +709,4 @@ declare const Routes: {
|
|
|
668
709
|
readonly oauth2ApplicationBotResetToken: (id: Snowflake) => `/oauth2/applications/${string}/bot/reset-token`;
|
|
669
710
|
};
|
|
670
711
|
|
|
671
|
-
export { type APIApplicationCommandInteraction, type APIBan, type APIChannel, type APIChannelOverwrite, type APIChannelPartial, type APIEmbed, type APIEmbedAuthor, type APIEmbedField, type APIEmbedFooter, type APIEmbedMedia, type APIEmoji, type APIEmojiWithUser, type APIErrorBody, APIErrorCode, type APIGatewayBotResponse, type APIGuild, type APIGuildMember, type APIGuildPartial, type APIInvite, type APIMessage, type APIMessageAttachment, type APIMessageReaction, type APIMessageReference, type APIMessageSticker, type APIReactionEmoji, type APIRole, type APISticker, type APIStickerWithUser, type APIUser, type APIUserPartial, type APIWebhook, ChannelType, DefaultMessageNotifications, type EmbedType, FLUXER_EPOCH, type GatewayChannelCreateDispatchData, type GatewayChannelDeleteDispatchData, type GatewayChannelUpdateDispatchData, type GatewayDispatchEventName, GatewayDispatchEvents, type GatewayGuildCreateDispatchData, type GatewayGuildDeleteDispatchData, type GatewayGuildMemberAddDispatchData, type GatewayGuildMemberRemoveDispatchData, type GatewayGuildMemberUpdateDispatchData, type GatewayGuildRoleCreateDispatchData, type GatewayGuildRoleDeleteDispatchData, type GatewayGuildRoleUpdateDispatchData, type GatewayGuildUpdateDispatchData, type GatewayHelloData, type GatewayIdentifyData, type GatewayMessageCreateDispatchData, type GatewayMessageDeleteBulkDispatchData, type GatewayMessageDeleteDispatchData, type GatewayMessageUpdateDispatchData, GatewayOpcodes, type GatewayPresenceUpdateData, type GatewayReadyDispatchData, type GatewayReceivePayload, type GatewayResumeData, type GatewaySendPayload, type GatewayVoiceServerUpdateDispatchData, type GatewayVoiceStateUpdateData, type GatewayVoiceStateUpdateDispatchData, GuildExplicitContentFilter, type GuildFeature, GuildMFALevel, GuildVerificationLevel, MessageFlags, MessageType, OverwriteType, type RateLimitErrorBody, Routes, type Snowflake, WebhookType };
|
|
712
|
+
export { type APIApplicationCommandInteraction, type APIBan, type APIChannel, type APIChannelOverwrite, type APIChannelPartial, type APIEmbed, type APIEmbedAuthor, type APIEmbedField, type APIEmbedFooter, type APIEmbedMedia, type APIEmoji, type APIEmojiWithUser, type APIErrorBody, APIErrorCode, type APIGatewayBotResponse, type APIGuild, type APIGuildMember, type APIGuildPartial, type APIInvite, type APIMessage, type APIMessageAttachment, type APIMessageReaction, type APIMessageReference, type APIMessageSticker, type APIReactionEmoji, type APIRole, type APISticker, type APIStickerWithUser, type APIUser, type APIUserPartial, type APIWebhook, ChannelType, DefaultMessageNotifications, type EmbedType, FLUXER_EPOCH, type GatewayChannelCreateDispatchData, type GatewayChannelDeleteDispatchData, type GatewayChannelUpdateDispatchData, type GatewayCustomStatus, type GatewayDispatchEventName, GatewayDispatchEvents, type GatewayGuildCreateDispatchData, type GatewayGuildDeleteDispatchData, type GatewayGuildMemberAddDispatchData, type GatewayGuildMemberRemoveDispatchData, type GatewayGuildMemberUpdateDispatchData, type GatewayGuildRoleCreateDispatchData, type GatewayGuildRoleDeleteDispatchData, type GatewayGuildRoleUpdateDispatchData, type GatewayGuildUpdateDispatchData, type GatewayHelloData, type GatewayIdentifyData, type GatewayMessageCreateDispatchData, type GatewayMessageDeleteBulkDispatchData, type GatewayMessageDeleteDispatchData, type GatewayMessageReactionAddDispatchData, type GatewayMessageReactionRemoveAllDispatchData, type GatewayMessageReactionRemoveDispatchData, type GatewayMessageReactionRemoveEmojiDispatchData, type GatewayMessageUpdateDispatchData, GatewayOpcodes, type GatewayPresenceUpdateData, type GatewayReactionEmoji, type GatewayReadyDispatchData, type GatewayReceivePayload, type GatewayResumeData, type GatewaySendPayload, type GatewayVoiceServerUpdateDispatchData, type GatewayVoiceStateUpdateData, type GatewayVoiceStateUpdateDispatchData, GuildExplicitContentFilter, type GuildFeature, GuildMFALevel, GuildVerificationLevel, MessageFlags, MessageType, OverwriteType, type RateLimitErrorBody, Routes, type Snowflake, WebhookType };
|
package/dist/index.js
CHANGED
|
@@ -244,6 +244,8 @@ var Routes = {
|
|
|
244
244
|
guildStickers: (id) => `/guilds/${id}/stickers`,
|
|
245
245
|
guildSticker: (guildId, stickerId) => `/guilds/${guildId}/stickers/${stickerId}`,
|
|
246
246
|
guildWebhooks: (id) => `/guilds/${id}/webhooks`,
|
|
247
|
+
webhook: (id) => `/webhooks/${id}`,
|
|
248
|
+
webhookExecute: (id, token) => `/webhooks/${id}/${token}`,
|
|
247
249
|
// Users
|
|
248
250
|
user: (id) => `/users/${id}`,
|
|
249
251
|
currentUser: () => `/users/@me`,
|
package/dist/index.mjs
CHANGED
|
@@ -205,6 +205,8 @@ var Routes = {
|
|
|
205
205
|
guildStickers: (id) => `/guilds/${id}/stickers`,
|
|
206
206
|
guildSticker: (guildId, stickerId) => `/guilds/${guildId}/stickers/${stickerId}`,
|
|
207
207
|
guildWebhooks: (id) => `/guilds/${id}/webhooks`,
|
|
208
|
+
webhook: (id) => `/webhooks/${id}`,
|
|
209
|
+
webhookExecute: (id, token) => `/webhooks/${id}/${token}`,
|
|
208
210
|
// Users
|
|
209
211
|
user: (id) => `/users/${id}`,
|
|
210
212
|
currentUser: () => `/users/@me`,
|