@fluxerjs/core 3.4.0 → 3.5.0
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/{SubpathMessage-BAwFSagN.d.mts → SubpathMessage-3ykAJr_F.d.mts} +165 -3
- package/dist/{SubpathMessage-Dq-1tI7E.d.ts → SubpathMessage-nY2WQ8V1.d.ts} +165 -3
- package/dist/client.d.mts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +522 -241
- package/dist/client.mjs +442 -161
- package/dist/cluster.d.mts +1 -1
- package/dist/cluster.d.ts +1 -1
- package/dist/cluster.js +522 -241
- package/dist/cluster.mjs +442 -161
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +563 -278
- package/dist/index.mjs +446 -163
- package/dist/message.d.mts +1 -1
- package/dist/message.d.ts +1 -1
- package/dist/message.js +18 -3
- package/dist/message.mjs +18 -3
- package/package.json +7 -7
package/dist/message.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a8 as Message, a9 as MessageAttachment, af as MessageEditOptions, ag as MessageEmbed, ah as MessageEmbedAuthor, ai as MessageEmbedField, aj as MessageEmbedFooter, ak as MessageEmbedMedia, at as MessageReference, ax as PartialMessage, aK as ReplyOptions } from './SubpathMessage-
|
|
1
|
+
export { a8 as Message, a9 as MessageAttachment, af as MessageEditOptions, ag as MessageEmbed, ah as MessageEmbedAuthor, ai as MessageEmbedField, aj as MessageEmbedFooter, ak as MessageEmbedMedia, at as MessageReference, ax as PartialMessage, aK as ReplyOptions } from './SubpathMessage-3ykAJr_F.mjs';
|
|
2
2
|
export { $ as MessageSendOptions } from './Sudo-mzPLv6YU.mjs';
|
|
3
3
|
import '@fluxerjs/types';
|
|
4
4
|
import '@fluxerjs/collection';
|
package/dist/message.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a8 as Message, a9 as MessageAttachment, af as MessageEditOptions, ag as MessageEmbed, ah as MessageEmbedAuthor, ai as MessageEmbedField, aj as MessageEmbedFooter, ak as MessageEmbedMedia, at as MessageReference, ax as PartialMessage, aK as ReplyOptions } from './SubpathMessage-
|
|
1
|
+
export { a8 as Message, a9 as MessageAttachment, af as MessageEditOptions, ag as MessageEmbed, ah as MessageEmbedAuthor, ai as MessageEmbedField, aj as MessageEmbedFooter, ak as MessageEmbedMedia, at as MessageReference, ax as PartialMessage, aK as ReplyOptions } from './SubpathMessage-nY2WQ8V1.js';
|
|
2
2
|
export { $ as MessageSendOptions } from './Sudo-mzPLv6YU.js';
|
|
3
3
|
import '@fluxerjs/types';
|
|
4
4
|
import '@fluxerjs/collection';
|
package/dist/message.js
CHANGED
|
@@ -534,6 +534,13 @@ var Events = {
|
|
|
534
534
|
VoiceSignal: "voiceSignal",
|
|
535
535
|
OperatorPassUpdate: "operatorPassUpdate",
|
|
536
536
|
VoiceStatesSync: "voiceStatesSync",
|
|
537
|
+
VoiceJoinQueued: "voiceJoinQueued",
|
|
538
|
+
StageInstanceCreate: "stageInstanceCreate",
|
|
539
|
+
StageInstanceUpdate: "stageInstanceUpdate",
|
|
540
|
+
StageInstanceDelete: "stageInstanceDelete",
|
|
541
|
+
StageCountsUpdate: "stageCountsUpdate",
|
|
542
|
+
StageVoiceStatesSync: "stageVoiceStatesSync",
|
|
543
|
+
StageAudienceListUpdate: "stageAudienceListUpdate",
|
|
537
544
|
WebhooksUpdate: "webhooksUpdate",
|
|
538
545
|
Resumed: "resumed",
|
|
539
546
|
Error: "error",
|
|
@@ -1065,11 +1072,11 @@ var Channel = class extends Base {
|
|
|
1065
1072
|
* Checks {@link ChannelType}, not whether `send` exists on the instance.
|
|
1066
1073
|
*/
|
|
1067
1074
|
isTextBased() {
|
|
1068
|
-
return this.type === import_types6.ChannelType.GuildText || this.type === import_types6.ChannelType.GuildAnnouncement || this.type === import_types6.ChannelType.GuildVoice || this.type === import_types6.ChannelType.DM || this.type === import_types6.ChannelType.GroupDM || this.type === import_types6.ChannelType.DMPersonalNotes || this.type === import_types6.ChannelType.AnnouncementThread || this.type === import_types6.ChannelType.PublicThread || this.type === import_types6.ChannelType.PrivateThread;
|
|
1075
|
+
return this.type === import_types6.ChannelType.GuildText || this.type === import_types6.ChannelType.GuildAnnouncement || this.type === import_types6.ChannelType.GuildVoice || this.type === import_types6.ChannelType.GuildStageVoice || this.type === import_types6.ChannelType.DM || this.type === import_types6.ChannelType.GroupDM || this.type === import_types6.ChannelType.DMPersonalNotes || this.type === import_types6.ChannelType.AnnouncementThread || this.type === import_types6.ChannelType.PublicThread || this.type === import_types6.ChannelType.PrivateThread;
|
|
1069
1076
|
}
|
|
1070
1077
|
/** Check if this is a guild channel, including threads, forums, and media channels. */
|
|
1071
1078
|
isGuild() {
|
|
1072
|
-
return this.type === import_types6.ChannelType.GuildText || this.type === import_types6.ChannelType.GuildAnnouncement || this.type === import_types6.ChannelType.GuildVoice || this.type === import_types6.ChannelType.GuildCategory || this.type === import_types6.ChannelType.GuildLink || this.type === import_types6.ChannelType.AnnouncementThread || this.type === import_types6.ChannelType.PublicThread || this.type === import_types6.ChannelType.PrivateThread || this.type === import_types6.ChannelType.GuildForum || this.type === import_types6.ChannelType.GuildMedia;
|
|
1079
|
+
return this.type === import_types6.ChannelType.GuildText || this.type === import_types6.ChannelType.GuildAnnouncement || this.type === import_types6.ChannelType.GuildVoice || this.type === import_types6.ChannelType.GuildStageVoice || this.type === import_types6.ChannelType.GuildCategory || this.type === import_types6.ChannelType.GuildLink || this.type === import_types6.ChannelType.AnnouncementThread || this.type === import_types6.ChannelType.PublicThread || this.type === import_types6.ChannelType.PrivateThread || this.type === import_types6.ChannelType.GuildForum || this.type === import_types6.ChannelType.GuildMedia;
|
|
1073
1080
|
}
|
|
1074
1081
|
/** Check if this is a thread (public, private, or announcement). */
|
|
1075
1082
|
isThread() {
|
|
@@ -1103,10 +1110,18 @@ var Channel = class extends Base {
|
|
|
1103
1110
|
isPersonalNotes() {
|
|
1104
1111
|
return this.type === import_types6.ChannelType.DMPersonalNotes;
|
|
1105
1112
|
}
|
|
1106
|
-
/** Check if this is a voice channel. */
|
|
1113
|
+
/** Check if this is a voice channel (type 2 only; see {@link isVoiceBased} to include stages). */
|
|
1107
1114
|
isVoice() {
|
|
1108
1115
|
return this.type === import_types6.ChannelType.GuildVoice;
|
|
1109
1116
|
}
|
|
1117
|
+
/** Check if this is a stage channel (type 13). */
|
|
1118
|
+
isStage() {
|
|
1119
|
+
return this.type === import_types6.ChannelType.GuildStageVoice;
|
|
1120
|
+
}
|
|
1121
|
+
/** Check if this is a voice or stage channel, i.e. one `@fluxerjs/voice` can join. */
|
|
1122
|
+
isVoiceBased() {
|
|
1123
|
+
return this.type === import_types6.ChannelType.GuildVoice || this.type === import_types6.ChannelType.GuildStageVoice;
|
|
1124
|
+
}
|
|
1110
1125
|
/** Check if this is a link channel. */
|
|
1111
1126
|
isLink() {
|
|
1112
1127
|
return this.type === import_types6.ChannelType.GuildLink;
|
package/dist/message.mjs
CHANGED
|
@@ -512,6 +512,13 @@ var Events = {
|
|
|
512
512
|
VoiceSignal: "voiceSignal",
|
|
513
513
|
OperatorPassUpdate: "operatorPassUpdate",
|
|
514
514
|
VoiceStatesSync: "voiceStatesSync",
|
|
515
|
+
VoiceJoinQueued: "voiceJoinQueued",
|
|
516
|
+
StageInstanceCreate: "stageInstanceCreate",
|
|
517
|
+
StageInstanceUpdate: "stageInstanceUpdate",
|
|
518
|
+
StageInstanceDelete: "stageInstanceDelete",
|
|
519
|
+
StageCountsUpdate: "stageCountsUpdate",
|
|
520
|
+
StageVoiceStatesSync: "stageVoiceStatesSync",
|
|
521
|
+
StageAudienceListUpdate: "stageAudienceListUpdate",
|
|
515
522
|
WebhooksUpdate: "webhooksUpdate",
|
|
516
523
|
Resumed: "resumed",
|
|
517
524
|
Error: "error",
|
|
@@ -1043,11 +1050,11 @@ var Channel = class extends Base {
|
|
|
1043
1050
|
* Checks {@link ChannelType}, not whether `send` exists on the instance.
|
|
1044
1051
|
*/
|
|
1045
1052
|
isTextBased() {
|
|
1046
|
-
return this.type === ChannelType2.GuildText || this.type === ChannelType2.GuildAnnouncement || this.type === ChannelType2.GuildVoice || this.type === ChannelType2.DM || this.type === ChannelType2.GroupDM || this.type === ChannelType2.DMPersonalNotes || this.type === ChannelType2.AnnouncementThread || this.type === ChannelType2.PublicThread || this.type === ChannelType2.PrivateThread;
|
|
1053
|
+
return this.type === ChannelType2.GuildText || this.type === ChannelType2.GuildAnnouncement || this.type === ChannelType2.GuildVoice || this.type === ChannelType2.GuildStageVoice || this.type === ChannelType2.DM || this.type === ChannelType2.GroupDM || this.type === ChannelType2.DMPersonalNotes || this.type === ChannelType2.AnnouncementThread || this.type === ChannelType2.PublicThread || this.type === ChannelType2.PrivateThread;
|
|
1047
1054
|
}
|
|
1048
1055
|
/** Check if this is a guild channel, including threads, forums, and media channels. */
|
|
1049
1056
|
isGuild() {
|
|
1050
|
-
return this.type === ChannelType2.GuildText || this.type === ChannelType2.GuildAnnouncement || this.type === ChannelType2.GuildVoice || this.type === ChannelType2.GuildCategory || this.type === ChannelType2.GuildLink || this.type === ChannelType2.AnnouncementThread || this.type === ChannelType2.PublicThread || this.type === ChannelType2.PrivateThread || this.type === ChannelType2.GuildForum || this.type === ChannelType2.GuildMedia;
|
|
1057
|
+
return this.type === ChannelType2.GuildText || this.type === ChannelType2.GuildAnnouncement || this.type === ChannelType2.GuildVoice || this.type === ChannelType2.GuildStageVoice || this.type === ChannelType2.GuildCategory || this.type === ChannelType2.GuildLink || this.type === ChannelType2.AnnouncementThread || this.type === ChannelType2.PublicThread || this.type === ChannelType2.PrivateThread || this.type === ChannelType2.GuildForum || this.type === ChannelType2.GuildMedia;
|
|
1051
1058
|
}
|
|
1052
1059
|
/** Check if this is a thread (public, private, or announcement). */
|
|
1053
1060
|
isThread() {
|
|
@@ -1081,10 +1088,18 @@ var Channel = class extends Base {
|
|
|
1081
1088
|
isPersonalNotes() {
|
|
1082
1089
|
return this.type === ChannelType2.DMPersonalNotes;
|
|
1083
1090
|
}
|
|
1084
|
-
/** Check if this is a voice channel. */
|
|
1091
|
+
/** Check if this is a voice channel (type 2 only; see {@link isVoiceBased} to include stages). */
|
|
1085
1092
|
isVoice() {
|
|
1086
1093
|
return this.type === ChannelType2.GuildVoice;
|
|
1087
1094
|
}
|
|
1095
|
+
/** Check if this is a stage channel (type 13). */
|
|
1096
|
+
isStage() {
|
|
1097
|
+
return this.type === ChannelType2.GuildStageVoice;
|
|
1098
|
+
}
|
|
1099
|
+
/** Check if this is a voice or stage channel, i.e. one `@fluxerjs/voice` can join. */
|
|
1100
|
+
isVoiceBased() {
|
|
1101
|
+
return this.type === ChannelType2.GuildVoice || this.type === ChannelType2.GuildStageVoice;
|
|
1102
|
+
}
|
|
1088
1103
|
/** Check if this is a link channel. */
|
|
1089
1104
|
isLink() {
|
|
1090
1105
|
return this.type === ChannelType2.GuildLink;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "3.
|
|
6
|
+
"version": "3.5.0",
|
|
7
7
|
"description": "A fully-featured SDK for Fluxer bots",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
"dist"
|
|
60
60
|
],
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@fluxerjs/rest": "3.
|
|
63
|
-
"@fluxerjs/
|
|
64
|
-
"@fluxerjs/
|
|
65
|
-
"@fluxerjs/
|
|
66
|
-
"@fluxerjs/types": "3.
|
|
67
|
-
"@fluxerjs/
|
|
62
|
+
"@fluxerjs/rest": "3.5.0",
|
|
63
|
+
"@fluxerjs/ws": "3.5.0",
|
|
64
|
+
"@fluxerjs/builders": "3.5.0",
|
|
65
|
+
"@fluxerjs/collection": "3.5.0",
|
|
66
|
+
"@fluxerjs/types": "3.5.0",
|
|
67
|
+
"@fluxerjs/util": "3.5.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/node": "^20.0.0",
|