commandkit 0.1.11-dev.20250423160629 → 0.1.11-dev.20250426143847
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.ts +38 -2
- package/dist/index.js +283 -84
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -128,7 +128,7 @@ var init_MemoryCache = __esm({
|
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
130
|
|
|
131
|
-
// src/components/action-row/ActionRow.ts
|
|
131
|
+
// src/components/v1/action-row/ActionRow.ts
|
|
132
132
|
function ActionRow(props) {
|
|
133
133
|
const row = new import_discord.ActionRowBuilder();
|
|
134
134
|
if (Array.isArray(props.children)) {
|
|
@@ -140,7 +140,7 @@ function ActionRow(props) {
|
|
|
140
140
|
}
|
|
141
141
|
var import_discord;
|
|
142
142
|
var init_ActionRow = __esm({
|
|
143
|
-
"src/components/action-row/ActionRow.ts"() {
|
|
143
|
+
"src/components/v1/action-row/ActionRow.ts"() {
|
|
144
144
|
"use strict";
|
|
145
145
|
init_cjs_shims();
|
|
146
146
|
import_discord = require("discord.js");
|
|
@@ -257,10 +257,10 @@ var init_async_context = __esm({
|
|
|
257
257
|
}
|
|
258
258
|
});
|
|
259
259
|
|
|
260
|
-
// src/components/button/ButtonKit.ts
|
|
260
|
+
// src/components/v1/button/ButtonKit.ts
|
|
261
261
|
var import_discord2, _onClickHandler, _contextData, _unsub, _ButtonKit_instances, getEventInterceptor_fn, setupInteractionCollector_fn, destroyCollector_fn, _ButtonKit, ButtonKit;
|
|
262
262
|
var init_ButtonKit = __esm({
|
|
263
|
-
"src/components/button/ButtonKit.ts"() {
|
|
263
|
+
"src/components/v1/button/ButtonKit.ts"() {
|
|
264
264
|
"use strict";
|
|
265
265
|
init_cjs_shims();
|
|
266
266
|
import_discord2 = require("discord.js");
|
|
@@ -423,7 +423,7 @@ var init_ButtonKit = __esm({
|
|
|
423
423
|
}
|
|
424
424
|
});
|
|
425
425
|
|
|
426
|
-
// src/components/button/Button.ts
|
|
426
|
+
// src/components/v1/button/Button.ts
|
|
427
427
|
function Button(props) {
|
|
428
428
|
const button = new ButtonKit();
|
|
429
429
|
props.style ??= import_discord3.ButtonStyle.Primary;
|
|
@@ -467,7 +467,7 @@ function Button(props) {
|
|
|
467
467
|
}
|
|
468
468
|
var import_discord3;
|
|
469
469
|
var init_Button = __esm({
|
|
470
|
-
"src/components/button/Button.ts"() {
|
|
470
|
+
"src/components/v1/button/Button.ts"() {
|
|
471
471
|
"use strict";
|
|
472
472
|
init_cjs_shims();
|
|
473
473
|
import_discord3 = require("discord.js");
|
|
@@ -476,10 +476,10 @@ var init_Button = __esm({
|
|
|
476
476
|
}
|
|
477
477
|
});
|
|
478
478
|
|
|
479
|
-
// src/components/modal/ModalKit.ts
|
|
479
|
+
// src/components/v1/modal/ModalKit.ts
|
|
480
480
|
var import_discord4, _onSubmitHandler, _contextData2, _unsub2, _ModalKit_instances, getEventInterceptor_fn2, setupCollector_fn, destroyCollector_fn2, _ModalKit, ModalKit;
|
|
481
481
|
var init_ModalKit = __esm({
|
|
482
|
-
"src/components/modal/ModalKit.ts"() {
|
|
482
|
+
"src/components/v1/modal/ModalKit.ts"() {
|
|
483
483
|
"use strict";
|
|
484
484
|
init_cjs_shims();
|
|
485
485
|
import_discord4 = require("discord.js");
|
|
@@ -633,7 +633,7 @@ var init_ModalKit = __esm({
|
|
|
633
633
|
}
|
|
634
634
|
});
|
|
635
635
|
|
|
636
|
-
// src/components/modal/Modal.ts
|
|
636
|
+
// src/components/v1/modal/Modal.ts
|
|
637
637
|
function Modal(props) {
|
|
638
638
|
const modal = new ModalKit();
|
|
639
639
|
if (props.title) {
|
|
@@ -697,7 +697,7 @@ function ParagraphInput(props) {
|
|
|
697
697
|
}
|
|
698
698
|
var import_discord5;
|
|
699
699
|
var init_Modal = __esm({
|
|
700
|
-
"src/components/modal/Modal.ts"() {
|
|
700
|
+
"src/components/v1/modal/Modal.ts"() {
|
|
701
701
|
"use strict";
|
|
702
702
|
init_cjs_shims();
|
|
703
703
|
import_discord5 = require("discord.js");
|
|
@@ -709,10 +709,10 @@ var init_Modal = __esm({
|
|
|
709
709
|
}
|
|
710
710
|
});
|
|
711
711
|
|
|
712
|
-
// src/components/select-menu/StringSelectMenuKit.ts
|
|
712
|
+
// src/components/v1/select-menu/StringSelectMenuKit.ts
|
|
713
713
|
var import_discord6, _onSelectHandler, _contextData3, _unsub3, _StringSelectMenuKit_instances, getEventInterceptor_fn3, setupCollector_fn2, destroyCollector_fn3, _StringSelectMenuKit, StringSelectMenuKit;
|
|
714
714
|
var init_StringSelectMenuKit = __esm({
|
|
715
|
-
"src/components/select-menu/StringSelectMenuKit.ts"() {
|
|
715
|
+
"src/components/v1/select-menu/StringSelectMenuKit.ts"() {
|
|
716
716
|
"use strict";
|
|
717
717
|
init_cjs_shims();
|
|
718
718
|
import_discord6 = require("discord.js");
|
|
@@ -866,10 +866,10 @@ var init_StringSelectMenuKit = __esm({
|
|
|
866
866
|
}
|
|
867
867
|
});
|
|
868
868
|
|
|
869
|
-
// src/components/select-menu/ChannelSelectMenuKit.ts
|
|
869
|
+
// src/components/v1/select-menu/ChannelSelectMenuKit.ts
|
|
870
870
|
var import_discord7, _onSelectHandler2, _contextData4, _unsub4, _ChannelSelectMenuKit_instances, getEventInterceptor_fn4, setupCollector_fn3, destroyCollector_fn4, _ChannelSelectMenuKit, ChannelSelectMenuKit;
|
|
871
871
|
var init_ChannelSelectMenuKit = __esm({
|
|
872
|
-
"src/components/select-menu/ChannelSelectMenuKit.ts"() {
|
|
872
|
+
"src/components/v1/select-menu/ChannelSelectMenuKit.ts"() {
|
|
873
873
|
"use strict";
|
|
874
874
|
init_cjs_shims();
|
|
875
875
|
import_discord7 = require("discord.js");
|
|
@@ -1023,10 +1023,10 @@ var init_ChannelSelectMenuKit = __esm({
|
|
|
1023
1023
|
}
|
|
1024
1024
|
});
|
|
1025
1025
|
|
|
1026
|
-
// src/components/select-menu/MentionableSelectMenuKit.ts
|
|
1026
|
+
// src/components/v1/select-menu/MentionableSelectMenuKit.ts
|
|
1027
1027
|
var import_discord8, _onSelectHandler3, _contextData5, _unsub5, _MentionableSelectMenuKit_instances, getEventInterceptor_fn5, setupCollector_fn4, destroyCollector_fn5, _MentionableSelectMenuKit, MentionableSelectMenuKit;
|
|
1028
1028
|
var init_MentionableSelectMenuKit = __esm({
|
|
1029
|
-
"src/components/select-menu/MentionableSelectMenuKit.ts"() {
|
|
1029
|
+
"src/components/v1/select-menu/MentionableSelectMenuKit.ts"() {
|
|
1030
1030
|
"use strict";
|
|
1031
1031
|
init_cjs_shims();
|
|
1032
1032
|
import_discord8 = require("discord.js");
|
|
@@ -1180,10 +1180,10 @@ var init_MentionableSelectMenuKit = __esm({
|
|
|
1180
1180
|
}
|
|
1181
1181
|
});
|
|
1182
1182
|
|
|
1183
|
-
// src/components/select-menu/UserSelectMenuKit.ts
|
|
1183
|
+
// src/components/v1/select-menu/UserSelectMenuKit.ts
|
|
1184
1184
|
var import_discord9, _onSelectHandler4, _contextData6, _unsub6, _UserSelectMenuKit_instances, getEventInterceptor_fn6, setupCollector_fn5, destroyCollector_fn6, _UserSelectMenuKit, UserSelectMenuKit;
|
|
1185
1185
|
var init_UserSelectMenuKit = __esm({
|
|
1186
|
-
"src/components/select-menu/UserSelectMenuKit.ts"() {
|
|
1186
|
+
"src/components/v1/select-menu/UserSelectMenuKit.ts"() {
|
|
1187
1187
|
"use strict";
|
|
1188
1188
|
init_cjs_shims();
|
|
1189
1189
|
import_discord9 = require("discord.js");
|
|
@@ -1337,10 +1337,10 @@ var init_UserSelectMenuKit = __esm({
|
|
|
1337
1337
|
}
|
|
1338
1338
|
});
|
|
1339
1339
|
|
|
1340
|
-
// src/components/select-menu/RoleSelectMenuKit.ts
|
|
1340
|
+
// src/components/v1/select-menu/RoleSelectMenuKit.ts
|
|
1341
1341
|
var import_discord10, _onSelectHandler5, _contextData7, _unsub7, _RoleSelectMenuKit_instances, getEventInterceptor_fn7, setupCollector_fn6, destroyCollector_fn7, _RoleSelectMenuKit, RoleSelectMenuKit;
|
|
1342
1342
|
var init_RoleSelectMenuKit = __esm({
|
|
1343
|
-
"src/components/select-menu/RoleSelectMenuKit.ts"() {
|
|
1343
|
+
"src/components/v1/select-menu/RoleSelectMenuKit.ts"() {
|
|
1344
1344
|
"use strict";
|
|
1345
1345
|
init_cjs_shims();
|
|
1346
1346
|
import_discord10 = require("discord.js");
|
|
@@ -1494,7 +1494,7 @@ var init_RoleSelectMenuKit = __esm({
|
|
|
1494
1494
|
}
|
|
1495
1495
|
});
|
|
1496
1496
|
|
|
1497
|
-
// src/components/select-menu/SelectMenu.ts
|
|
1497
|
+
// src/components/v1/select-menu/SelectMenu.ts
|
|
1498
1498
|
function applyPropsToBuilder(builder, props) {
|
|
1499
1499
|
builder.setCustomId(props.customId ?? `select-menu::${crypto.randomUUID()}`);
|
|
1500
1500
|
if (props.maxValues != null) {
|
|
@@ -1584,7 +1584,7 @@ function ChannelSelectMenu(props) {
|
|
|
1584
1584
|
}
|
|
1585
1585
|
var import_discord11;
|
|
1586
1586
|
var init_SelectMenu = __esm({
|
|
1587
|
-
"src/components/select-menu/SelectMenu.ts"() {
|
|
1587
|
+
"src/components/v1/select-menu/SelectMenu.ts"() {
|
|
1588
1588
|
"use strict";
|
|
1589
1589
|
init_cjs_shims();
|
|
1590
1590
|
import_discord11 = require("discord.js");
|
|
@@ -1603,14 +1603,198 @@ var init_SelectMenu = __esm({
|
|
|
1603
1603
|
}
|
|
1604
1604
|
});
|
|
1605
1605
|
|
|
1606
|
-
// src/components/select-menu/common.ts
|
|
1606
|
+
// src/components/v1/select-menu/common.ts
|
|
1607
1607
|
var init_common = __esm({
|
|
1608
|
-
"src/components/select-menu/common.ts"() {
|
|
1608
|
+
"src/components/v1/select-menu/common.ts"() {
|
|
1609
1609
|
"use strict";
|
|
1610
1610
|
init_cjs_shims();
|
|
1611
1611
|
}
|
|
1612
1612
|
});
|
|
1613
1613
|
|
|
1614
|
+
// src/components/v2/common.ts
|
|
1615
|
+
function applyId(props, component) {
|
|
1616
|
+
if (props.id != null) {
|
|
1617
|
+
component.setId(props.id);
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
var init_common2 = __esm({
|
|
1621
|
+
"src/components/v2/common.ts"() {
|
|
1622
|
+
"use strict";
|
|
1623
|
+
init_cjs_shims();
|
|
1624
|
+
__name(applyId, "applyId");
|
|
1625
|
+
}
|
|
1626
|
+
});
|
|
1627
|
+
|
|
1628
|
+
// src/components/v2/container.ts
|
|
1629
|
+
function Container(props) {
|
|
1630
|
+
var _a;
|
|
1631
|
+
const container = new import_discord12.ContainerBuilder();
|
|
1632
|
+
applyId(props, container);
|
|
1633
|
+
if (typeof props.accentColor != null) {
|
|
1634
|
+
container.setAccentColor(props.accentColor);
|
|
1635
|
+
}
|
|
1636
|
+
if (props.spoiler != null) {
|
|
1637
|
+
container.setSpoiler(props.spoiler);
|
|
1638
|
+
}
|
|
1639
|
+
if ((_a = props.children) == null ? void 0 : _a.length) {
|
|
1640
|
+
for (const child of props.children.flat()) {
|
|
1641
|
+
if (child instanceof import_discord12.TextDisplayBuilder) {
|
|
1642
|
+
container.addTextDisplayComponents(child);
|
|
1643
|
+
}
|
|
1644
|
+
if (child instanceof import_discord12.FileBuilder) {
|
|
1645
|
+
container.addFileComponents(child);
|
|
1646
|
+
}
|
|
1647
|
+
if (child instanceof import_discord12.ActionRowBuilder) {
|
|
1648
|
+
container.addActionRowComponents(child);
|
|
1649
|
+
}
|
|
1650
|
+
if (child instanceof import_discord12.SeparatorBuilder) {
|
|
1651
|
+
container.addSeparatorComponents(child);
|
|
1652
|
+
}
|
|
1653
|
+
if (child instanceof import_discord12.SectionBuilder) {
|
|
1654
|
+
container.addSectionComponents(child);
|
|
1655
|
+
}
|
|
1656
|
+
if (child instanceof import_discord12.MediaGalleryBuilder) {
|
|
1657
|
+
container.addMediaGalleryComponents(child);
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1661
|
+
return container;
|
|
1662
|
+
}
|
|
1663
|
+
var import_discord12;
|
|
1664
|
+
var init_container = __esm({
|
|
1665
|
+
"src/components/v2/container.ts"() {
|
|
1666
|
+
"use strict";
|
|
1667
|
+
init_cjs_shims();
|
|
1668
|
+
import_discord12 = require("discord.js");
|
|
1669
|
+
init_common2();
|
|
1670
|
+
__name(Container, "Container");
|
|
1671
|
+
}
|
|
1672
|
+
});
|
|
1673
|
+
|
|
1674
|
+
// src/components/v2/file.ts
|
|
1675
|
+
function File(props) {
|
|
1676
|
+
const file = new import_discord13.FileBuilder(props);
|
|
1677
|
+
if (props.url != null) {
|
|
1678
|
+
file.setURL(props.url);
|
|
1679
|
+
}
|
|
1680
|
+
return file;
|
|
1681
|
+
}
|
|
1682
|
+
var import_discord13;
|
|
1683
|
+
var init_file = __esm({
|
|
1684
|
+
"src/components/v2/file.ts"() {
|
|
1685
|
+
"use strict";
|
|
1686
|
+
init_cjs_shims();
|
|
1687
|
+
import_discord13 = require("discord.js");
|
|
1688
|
+
__name(File, "File");
|
|
1689
|
+
}
|
|
1690
|
+
});
|
|
1691
|
+
|
|
1692
|
+
// src/components/v2/media-gallery.ts
|
|
1693
|
+
function MediaGallery(props) {
|
|
1694
|
+
const gallery = new import_discord14.MediaGalleryBuilder();
|
|
1695
|
+
applyId(props, gallery);
|
|
1696
|
+
if (props.children != null) {
|
|
1697
|
+
gallery.addItems(props.children.flat());
|
|
1698
|
+
}
|
|
1699
|
+
return gallery;
|
|
1700
|
+
}
|
|
1701
|
+
function MediaGalleryItem(props) {
|
|
1702
|
+
const item = new import_discord14.MediaGalleryItemBuilder();
|
|
1703
|
+
if (props.description != null) {
|
|
1704
|
+
item.setDescription(props.description);
|
|
1705
|
+
}
|
|
1706
|
+
if (props.spoiler != null) {
|
|
1707
|
+
item.setSpoiler(props.spoiler);
|
|
1708
|
+
}
|
|
1709
|
+
if (props.url != null) {
|
|
1710
|
+
item.setURL(props.url);
|
|
1711
|
+
}
|
|
1712
|
+
return item;
|
|
1713
|
+
}
|
|
1714
|
+
var import_discord14;
|
|
1715
|
+
var init_media_gallery = __esm({
|
|
1716
|
+
"src/components/v2/media-gallery.ts"() {
|
|
1717
|
+
"use strict";
|
|
1718
|
+
init_cjs_shims();
|
|
1719
|
+
import_discord14 = require("discord.js");
|
|
1720
|
+
init_common2();
|
|
1721
|
+
__name(MediaGallery, "MediaGallery");
|
|
1722
|
+
__name(MediaGalleryItem, "MediaGalleryItem");
|
|
1723
|
+
}
|
|
1724
|
+
});
|
|
1725
|
+
|
|
1726
|
+
// src/components/v2/section.ts
|
|
1727
|
+
function Section(props) {
|
|
1728
|
+
const section = new import_discord15.SectionBuilder();
|
|
1729
|
+
applyId(props, section);
|
|
1730
|
+
if (props.children != null) {
|
|
1731
|
+
for (const accessory of props.children.flat()) {
|
|
1732
|
+
if (accessory instanceof import_discord15.ThumbnailBuilder) {
|
|
1733
|
+
section.setThumbnailAccessory(accessory);
|
|
1734
|
+
} else if (accessory instanceof import_discord15.ButtonBuilder) {
|
|
1735
|
+
section.setButtonAccessory(accessory);
|
|
1736
|
+
} else if (accessory instanceof import_discord15.TextDisplayBuilder) {
|
|
1737
|
+
section.addTextDisplayComponents(accessory);
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
return section;
|
|
1742
|
+
}
|
|
1743
|
+
var import_discord15;
|
|
1744
|
+
var init_section = __esm({
|
|
1745
|
+
"src/components/v2/section.ts"() {
|
|
1746
|
+
"use strict";
|
|
1747
|
+
init_cjs_shims();
|
|
1748
|
+
import_discord15 = require("discord.js");
|
|
1749
|
+
init_common2();
|
|
1750
|
+
__name(Section, "Section");
|
|
1751
|
+
}
|
|
1752
|
+
});
|
|
1753
|
+
|
|
1754
|
+
// src/components/v2/separator.ts
|
|
1755
|
+
function Separator(props) {
|
|
1756
|
+
const separator = new import_discord16.SeparatorBuilder(props);
|
|
1757
|
+
return separator;
|
|
1758
|
+
}
|
|
1759
|
+
var import_discord16;
|
|
1760
|
+
var init_separator = __esm({
|
|
1761
|
+
"src/components/v2/separator.ts"() {
|
|
1762
|
+
"use strict";
|
|
1763
|
+
init_cjs_shims();
|
|
1764
|
+
import_discord16 = require("discord.js");
|
|
1765
|
+
__name(Separator, "Separator");
|
|
1766
|
+
}
|
|
1767
|
+
});
|
|
1768
|
+
|
|
1769
|
+
// src/components/v2/text-display.ts
|
|
1770
|
+
function TextDisplay(props) {
|
|
1771
|
+
const textDisplay = new import_discord17.TextDisplayBuilder(props);
|
|
1772
|
+
return textDisplay;
|
|
1773
|
+
}
|
|
1774
|
+
var import_discord17;
|
|
1775
|
+
var init_text_display = __esm({
|
|
1776
|
+
"src/components/v2/text-display.ts"() {
|
|
1777
|
+
"use strict";
|
|
1778
|
+
init_cjs_shims();
|
|
1779
|
+
import_discord17 = require("discord.js");
|
|
1780
|
+
__name(TextDisplay, "TextDisplay");
|
|
1781
|
+
}
|
|
1782
|
+
});
|
|
1783
|
+
|
|
1784
|
+
// src/components/v2/index.ts
|
|
1785
|
+
var init_v2 = __esm({
|
|
1786
|
+
"src/components/v2/index.ts"() {
|
|
1787
|
+
"use strict";
|
|
1788
|
+
init_cjs_shims();
|
|
1789
|
+
init_container();
|
|
1790
|
+
init_file();
|
|
1791
|
+
init_media_gallery();
|
|
1792
|
+
init_section();
|
|
1793
|
+
init_separator();
|
|
1794
|
+
init_text_display();
|
|
1795
|
+
}
|
|
1796
|
+
});
|
|
1797
|
+
|
|
1614
1798
|
// src/utils/warn-unstable.ts
|
|
1615
1799
|
function emitWarning(message, code = "CommandKitWarning") {
|
|
1616
1800
|
process.emitWarning(message, { code });
|
|
@@ -1867,6 +2051,7 @@ var init_components = __esm({
|
|
|
1867
2051
|
init_RoleSelectMenuKit();
|
|
1868
2052
|
init_SelectMenu();
|
|
1869
2053
|
init_common();
|
|
2054
|
+
init_v2();
|
|
1870
2055
|
init_element();
|
|
1871
2056
|
init_types();
|
|
1872
2057
|
init_EventInterceptor();
|
|
@@ -2269,19 +2454,19 @@ var init_Logger = __esm({
|
|
|
2269
2454
|
});
|
|
2270
2455
|
|
|
2271
2456
|
// src/plugins/plugin-runtime/CommandKitPluginRuntime.ts
|
|
2272
|
-
var
|
|
2457
|
+
var import_discord18, _CommandKitPluginRuntime, CommandKitPluginRuntime;
|
|
2273
2458
|
var init_CommandKitPluginRuntime = __esm({
|
|
2274
2459
|
"src/plugins/plugin-runtime/CommandKitPluginRuntime.ts"() {
|
|
2275
2460
|
"use strict";
|
|
2276
2461
|
init_cjs_shims();
|
|
2277
|
-
|
|
2462
|
+
import_discord18 = require("discord.js");
|
|
2278
2463
|
init_error_codes();
|
|
2279
2464
|
init_Logger();
|
|
2280
2465
|
_CommandKitPluginRuntime = class _CommandKitPluginRuntime {
|
|
2281
2466
|
constructor(commandkit2) {
|
|
2282
2467
|
this.commandkit = commandkit2;
|
|
2283
2468
|
}
|
|
2284
|
-
plugins = new
|
|
2469
|
+
plugins = new import_discord18.Collection();
|
|
2285
2470
|
getPlugin(pluginName) {
|
|
2286
2471
|
return this.plugins.get(pluginName) ?? null;
|
|
2287
2472
|
}
|
|
@@ -2856,12 +3041,12 @@ var init_resolve_file_url = __esm({
|
|
|
2856
3041
|
});
|
|
2857
3042
|
|
|
2858
3043
|
// src/app/commands/MessageCommandParser.ts
|
|
2859
|
-
var
|
|
3044
|
+
var import_discord19, _parsed, _options, _args, _MessageCommandParser, MessageCommandParser, _MessageCommandOptions, MessageCommandOptions;
|
|
2860
3045
|
var init_MessageCommandParser = __esm({
|
|
2861
3046
|
"src/app/commands/MessageCommandParser.ts"() {
|
|
2862
3047
|
"use strict";
|
|
2863
3048
|
init_cjs_shims();
|
|
2864
|
-
|
|
3049
|
+
import_discord19 = require("discord.js");
|
|
2865
3050
|
init_error_codes();
|
|
2866
3051
|
_MessageCommandParser = class _MessageCommandParser {
|
|
2867
3052
|
constructor(message, prefix, schema) {
|
|
@@ -2936,36 +3121,36 @@ var init_MessageCommandParser = __esm({
|
|
|
2936
3121
|
const [name, value] = part.split(":");
|
|
2937
3122
|
if (!(name in schema)) return null;
|
|
2938
3123
|
switch (schema[name]) {
|
|
2939
|
-
case
|
|
3124
|
+
case import_discord19.ApplicationCommandOptionType.Boolean:
|
|
2940
3125
|
return { name, value: value === "true" };
|
|
2941
|
-
case
|
|
3126
|
+
case import_discord19.ApplicationCommandOptionType.Integer:
|
|
2942
3127
|
return { name, value: parseInt(value, 10) };
|
|
2943
|
-
case
|
|
3128
|
+
case import_discord19.ApplicationCommandOptionType.Number:
|
|
2944
3129
|
return { name, value: parseFloat(value) };
|
|
2945
|
-
case
|
|
3130
|
+
case import_discord19.ApplicationCommandOptionType.String:
|
|
2946
3131
|
return { name, value };
|
|
2947
|
-
case
|
|
3132
|
+
case import_discord19.ApplicationCommandOptionType.User:
|
|
2948
3133
|
return {
|
|
2949
3134
|
name,
|
|
2950
3135
|
value: this.message.mentions.users.find((u) => {
|
|
2951
3136
|
return u.id === value.replace(/[<@!>]/g, "");
|
|
2952
3137
|
})
|
|
2953
3138
|
};
|
|
2954
|
-
case
|
|
3139
|
+
case import_discord19.ApplicationCommandOptionType.Channel:
|
|
2955
3140
|
return {
|
|
2956
3141
|
name,
|
|
2957
3142
|
value: this.message.mentions.channels.find((c) => {
|
|
2958
3143
|
return c.id === value.replace(/[<#>]/g, "");
|
|
2959
3144
|
})
|
|
2960
3145
|
};
|
|
2961
|
-
case
|
|
3146
|
+
case import_discord19.ApplicationCommandOptionType.Role:
|
|
2962
3147
|
return {
|
|
2963
3148
|
name,
|
|
2964
3149
|
value: this.message.mentions.roles.find((r) => {
|
|
2965
3150
|
return r.id === value.replace(/[<@&>]/g, "");
|
|
2966
3151
|
})
|
|
2967
3152
|
};
|
|
2968
|
-
case
|
|
3153
|
+
case import_discord19.ApplicationCommandOptionType.Attachment:
|
|
2969
3154
|
return {
|
|
2970
3155
|
name,
|
|
2971
3156
|
value: this.message.attachments.find((a) => {
|
|
@@ -3039,7 +3224,7 @@ var init_MessageCommandParser = __esm({
|
|
|
3039
3224
|
}
|
|
3040
3225
|
getMentionable(name, required = false) {
|
|
3041
3226
|
const target = this.assertOption(name, required);
|
|
3042
|
-
if (target instanceof
|
|
3227
|
+
if (target instanceof import_discord19.GuildMember || target instanceof import_discord19.User || target instanceof import_discord19.Role) {
|
|
3043
3228
|
return target;
|
|
3044
3229
|
}
|
|
3045
3230
|
if (required) {
|
|
@@ -3068,12 +3253,12 @@ var init_MessageCommandParser = __esm({
|
|
|
3068
3253
|
});
|
|
3069
3254
|
|
|
3070
3255
|
// src/app/register/CommandRegistrar.ts
|
|
3071
|
-
var
|
|
3256
|
+
var import_discord20, _CommandRegistrar, CommandRegistrar;
|
|
3072
3257
|
var init_CommandRegistrar = __esm({
|
|
3073
3258
|
"src/app/register/CommandRegistrar.ts"() {
|
|
3074
3259
|
"use strict";
|
|
3075
3260
|
init_cjs_shims();
|
|
3076
|
-
|
|
3261
|
+
import_discord20 = require("discord.js");
|
|
3077
3262
|
init_Logger();
|
|
3078
3263
|
_CommandRegistrar = class _CommandRegistrar {
|
|
3079
3264
|
/**
|
|
@@ -3086,7 +3271,7 @@ var init_CommandRegistrar = __esm({
|
|
|
3086
3271
|
this.commandkit.client.token ?? process.env.DISCORD_TOKEN ?? process.env.TOKEN ?? ""
|
|
3087
3272
|
);
|
|
3088
3273
|
}
|
|
3089
|
-
api = new
|
|
3274
|
+
api = new import_discord20.REST();
|
|
3090
3275
|
/**
|
|
3091
3276
|
* Gets the commands data.
|
|
3092
3277
|
*/
|
|
@@ -3096,20 +3281,20 @@ var init_CommandRegistrar = __esm({
|
|
|
3096
3281
|
return commands.flatMap((cmd) => {
|
|
3097
3282
|
const json = "toJSON" in cmd.data.command ? cmd.data.command.toJSON() : cmd.data.command;
|
|
3098
3283
|
const collections = [json];
|
|
3099
|
-
if (cmd.data.userContextMenu && json.type !==
|
|
3284
|
+
if (cmd.data.userContextMenu && json.type !== import_discord20.ApplicationCommandType.User) {
|
|
3100
3285
|
collections.push({
|
|
3101
3286
|
...json,
|
|
3102
|
-
type:
|
|
3287
|
+
type: import_discord20.ApplicationCommandType.User,
|
|
3103
3288
|
options: void 0,
|
|
3104
3289
|
description_localizations: void 0,
|
|
3105
3290
|
// @ts-ignore
|
|
3106
3291
|
description: void 0
|
|
3107
3292
|
});
|
|
3108
3293
|
}
|
|
3109
|
-
if (cmd.data.messageContextMenu && json.type !==
|
|
3294
|
+
if (cmd.data.messageContextMenu && json.type !== import_discord20.ApplicationCommandType.Message) {
|
|
3110
3295
|
collections.push({
|
|
3111
3296
|
...json,
|
|
3112
|
-
type:
|
|
3297
|
+
type: import_discord20.ApplicationCommandType.Message,
|
|
3113
3298
|
description_localizations: void 0,
|
|
3114
3299
|
// @ts-ignore
|
|
3115
3300
|
description: void 0,
|
|
@@ -3176,7 +3361,7 @@ var init_CommandRegistrar = __esm({
|
|
|
3176
3361
|
});
|
|
3177
3362
|
try {
|
|
3178
3363
|
const data = await this.api.put(
|
|
3179
|
-
|
|
3364
|
+
import_discord20.Routes.applicationCommands(this.commandkit.client.user.id),
|
|
3180
3365
|
{
|
|
3181
3366
|
body: commands.map((c) => ({
|
|
3182
3367
|
...c,
|
|
@@ -3239,7 +3424,7 @@ var init_CommandRegistrar = __esm({
|
|
|
3239
3424
|
});
|
|
3240
3425
|
if (prevented2) continue;
|
|
3241
3426
|
const data = await this.api.put(
|
|
3242
|
-
|
|
3427
|
+
import_discord20.Routes.applicationGuildCommands(
|
|
3243
3428
|
this.commandkit.client.user.id,
|
|
3244
3429
|
guild
|
|
3245
3430
|
),
|
|
@@ -3797,12 +3982,12 @@ var init_Context = __esm({
|
|
|
3797
3982
|
});
|
|
3798
3983
|
|
|
3799
3984
|
// src/app/commands/AppCommandRunner.ts
|
|
3800
|
-
var
|
|
3985
|
+
var import_discord21, _AppCommandRunner_instances, finalizer_fn, _AppCommandRunner, AppCommandRunner;
|
|
3801
3986
|
var init_AppCommandRunner = __esm({
|
|
3802
3987
|
"src/app/commands/AppCommandRunner.ts"() {
|
|
3803
3988
|
"use strict";
|
|
3804
3989
|
init_cjs_shims();
|
|
3805
|
-
|
|
3990
|
+
import_discord21 = require("discord.js");
|
|
3806
3991
|
init_environment();
|
|
3807
3992
|
init_Logger();
|
|
3808
3993
|
init_Context();
|
|
@@ -3826,8 +4011,8 @@ var init_AppCommandRunner = __esm({
|
|
|
3826
4011
|
command: prepared.command,
|
|
3827
4012
|
environment: env,
|
|
3828
4013
|
executionMode,
|
|
3829
|
-
interaction: !(source instanceof
|
|
3830
|
-
message: source instanceof
|
|
4014
|
+
interaction: !(source instanceof import_discord21.Message) ? source : null,
|
|
4015
|
+
message: source instanceof import_discord21.Message ? source : null,
|
|
3831
4016
|
forwarded: false,
|
|
3832
4017
|
customArgs: {
|
|
3833
4018
|
setCommandRunner: /* @__PURE__ */ __name((fn) => {
|
|
@@ -3932,7 +4117,7 @@ var init_AppCommandRunner = __esm({
|
|
|
3932
4117
|
}
|
|
3933
4118
|
}
|
|
3934
4119
|
getExecutionMode(source) {
|
|
3935
|
-
if (source instanceof
|
|
4120
|
+
if (source instanceof import_discord21.Message) return CommandExecutionMode.Message;
|
|
3936
4121
|
if (source.isChatInputCommand())
|
|
3937
4122
|
return CommandExecutionMode.ChatInputCommand;
|
|
3938
4123
|
if (source.isAutocomplete()) {
|
|
@@ -4022,12 +4207,12 @@ var init_types_package = __esm({
|
|
|
4022
4207
|
});
|
|
4023
4208
|
|
|
4024
4209
|
// src/app/handlers/AppCommandHandler.ts
|
|
4025
|
-
var
|
|
4210
|
+
var import_discord22, commandDataSchema, middlewareDataSchema, _AppCommandHandler, AppCommandHandler;
|
|
4026
4211
|
var init_AppCommandHandler = __esm({
|
|
4027
4212
|
"src/app/handlers/AppCommandHandler.ts"() {
|
|
4028
4213
|
"use strict";
|
|
4029
4214
|
init_cjs_shims();
|
|
4030
|
-
|
|
4215
|
+
import_discord22 = require("discord.js");
|
|
4031
4216
|
init_resolve_file_url();
|
|
4032
4217
|
init_MessageCommandParser();
|
|
4033
4218
|
init_error_codes();
|
|
@@ -4038,7 +4223,7 @@ var init_AppCommandHandler = __esm({
|
|
|
4038
4223
|
init_types_package();
|
|
4039
4224
|
init_colors();
|
|
4040
4225
|
commandDataSchema = {
|
|
4041
|
-
command: /* @__PURE__ */ __name((c) => c instanceof
|
|
4226
|
+
command: /* @__PURE__ */ __name((c) => c instanceof import_discord22.SlashCommandBuilder || c instanceof import_discord22.ContextMenuCommandBuilder || c && typeof c === "object", "command"),
|
|
4042
4227
|
chatInput: /* @__PURE__ */ __name((c) => typeof c === "function", "chatInput"),
|
|
4043
4228
|
autocomplete: /* @__PURE__ */ __name((c) => typeof c === "function", "autocomplete"),
|
|
4044
4229
|
message: /* @__PURE__ */ __name((c) => typeof c === "function", "message"),
|
|
@@ -4054,8 +4239,8 @@ var init_AppCommandHandler = __esm({
|
|
|
4054
4239
|
this.commandkit = commandkit2;
|
|
4055
4240
|
this.registrar = new CommandRegistrar(this.commandkit);
|
|
4056
4241
|
}
|
|
4057
|
-
loadedCommands = new
|
|
4058
|
-
loadedMiddlewares = new
|
|
4242
|
+
loadedCommands = new import_discord22.Collection();
|
|
4243
|
+
loadedMiddlewares = new import_discord22.Collection();
|
|
4059
4244
|
// Name-to-ID mapping for easier lookup
|
|
4060
4245
|
commandNameToId = /* @__PURE__ */ new Map();
|
|
4061
4246
|
subcommandPathToId = /* @__PURE__ */ new Map();
|
|
@@ -4063,8 +4248,8 @@ var init_AppCommandHandler = __esm({
|
|
|
4063
4248
|
onInteraction = null;
|
|
4064
4249
|
onMessageCreate = null;
|
|
4065
4250
|
commandRunner = new AppCommandRunner(this);
|
|
4066
|
-
externalCommandData = new
|
|
4067
|
-
externalMiddlewareData = new
|
|
4251
|
+
externalCommandData = new import_discord22.Collection();
|
|
4252
|
+
externalMiddlewareData = new import_discord22.Collection();
|
|
4068
4253
|
printBanner() {
|
|
4069
4254
|
const uncategorized = crypto.randomUUID();
|
|
4070
4255
|
const categorizedCommands = this.getCommandsArray().reduce(
|
|
@@ -4182,14 +4367,14 @@ var init_AppCommandHandler = __esm({
|
|
|
4182
4367
|
if (!prepared) return;
|
|
4183
4368
|
return this.commandRunner.runCommand(prepared, message);
|
|
4184
4369
|
};
|
|
4185
|
-
this.commandkit.client.on(
|
|
4186
|
-
this.commandkit.client.on(
|
|
4370
|
+
this.commandkit.client.on(import_discord22.Events.InteractionCreate, this.onInteraction);
|
|
4371
|
+
this.commandkit.client.on(import_discord22.Events.MessageCreate, this.onMessageCreate);
|
|
4187
4372
|
}
|
|
4188
4373
|
async prepareCommandRun(source, cmdName) {
|
|
4189
4374
|
var _a;
|
|
4190
4375
|
let parser;
|
|
4191
4376
|
if (!cmdName) {
|
|
4192
|
-
if (source instanceof
|
|
4377
|
+
if (source instanceof import_discord22.Message) {
|
|
4193
4378
|
if (source.author.bot) return null;
|
|
4194
4379
|
const prefix = await this.commandkit.config.getMessageCommandPrefix(source);
|
|
4195
4380
|
parser = new MessageCommandParser(
|
|
@@ -4235,7 +4420,7 @@ var init_AppCommandHandler = __esm({
|
|
|
4235
4420
|
if (!commandId) return null;
|
|
4236
4421
|
const loadedCommand = this.loadedCommands.get(commandId);
|
|
4237
4422
|
if (!loadedCommand) return null;
|
|
4238
|
-
if ((source instanceof
|
|
4423
|
+
if ((source instanceof import_discord22.CommandInteraction || source instanceof import_discord22.AutocompleteInteraction) && source.guildId && ((_a = loadedCommand.guilds) == null ? void 0 : _a.length) && !loadedCommand.guilds.includes(source.guildId)) {
|
|
4239
4424
|
return null;
|
|
4240
4425
|
}
|
|
4241
4426
|
const middlewares = [];
|
|
@@ -4395,12 +4580,12 @@ var init_AppCommandHandler = __esm({
|
|
|
4395
4580
|
});
|
|
4396
4581
|
|
|
4397
4582
|
// src/app/router/CommandsRouter.ts
|
|
4398
|
-
var
|
|
4583
|
+
var import_discord23, import_node_fs3, import_promises3, import_node_path3, MIDDLEWARE_PATTERN, COMMAND_MIDDLEWARE_PATTERN, GLOBAL_MIDDLEWARE_PATTERN, COMMAND_PATTERN, CATEGORY_PATTERN, _CommandsRouter, CommandsRouter;
|
|
4399
4584
|
var init_CommandsRouter = __esm({
|
|
4400
4585
|
"src/app/router/CommandsRouter.ts"() {
|
|
4401
4586
|
"use strict";
|
|
4402
4587
|
init_cjs_shims();
|
|
4403
|
-
|
|
4588
|
+
import_discord23 = require("discord.js");
|
|
4404
4589
|
import_node_fs3 = require("fs");
|
|
4405
4590
|
import_promises3 = require("fs/promises");
|
|
4406
4591
|
import_node_path3 = require("path");
|
|
@@ -4413,8 +4598,8 @@ var init_CommandsRouter = __esm({
|
|
|
4413
4598
|
constructor(options) {
|
|
4414
4599
|
this.options = options;
|
|
4415
4600
|
}
|
|
4416
|
-
commands = new
|
|
4417
|
-
middlewares = new
|
|
4601
|
+
commands = new import_discord23.Collection();
|
|
4602
|
+
middlewares = new import_discord23.Collection();
|
|
4418
4603
|
populate(data) {
|
|
4419
4604
|
for (const [id, command] of Object.entries(data.commands)) {
|
|
4420
4605
|
this.commands.set(id, command);
|
|
@@ -4535,12 +4720,12 @@ var init_CommandsRouter = __esm({
|
|
|
4535
4720
|
});
|
|
4536
4721
|
|
|
4537
4722
|
// src/app/router/EventsRouter.ts
|
|
4538
|
-
var
|
|
4723
|
+
var import_discord24, import_node_fs4, import_promises4, import_node_path4, _EventsRouter, EventsRouter;
|
|
4539
4724
|
var init_EventsRouter = __esm({
|
|
4540
4725
|
"src/app/router/EventsRouter.ts"() {
|
|
4541
4726
|
"use strict";
|
|
4542
4727
|
init_cjs_shims();
|
|
4543
|
-
|
|
4728
|
+
import_discord24 = require("discord.js");
|
|
4544
4729
|
import_node_fs4 = require("fs");
|
|
4545
4730
|
import_promises4 = require("fs/promises");
|
|
4546
4731
|
import_node_path4 = require("path");
|
|
@@ -4561,7 +4746,7 @@ var init_EventsRouter = __esm({
|
|
|
4561
4746
|
}
|
|
4562
4747
|
}
|
|
4563
4748
|
/** Internal storage of parsed events */
|
|
4564
|
-
events = new
|
|
4749
|
+
events = new import_discord24.Collection();
|
|
4565
4750
|
/**
|
|
4566
4751
|
* Adds new entrypoints to the router
|
|
4567
4752
|
* @param entrypoints - Array of new entrypoint paths
|
|
@@ -4945,7 +5130,7 @@ async function copyLocaleFiles(_from, _to) {
|
|
|
4945
5130
|
}
|
|
4946
5131
|
}
|
|
4947
5132
|
var import_rimraf, import_node_path5, import_node_fs5, import_node_child_process, ts, packageManager;
|
|
4948
|
-
var
|
|
5133
|
+
var init_common3 = __esm({
|
|
4949
5134
|
"src/cli/common.ts"() {
|
|
4950
5135
|
"use strict";
|
|
4951
5136
|
init_cjs_shims();
|
|
@@ -4997,7 +5182,7 @@ var init_loader = __esm({
|
|
|
4997
5182
|
init_cjs_shims();
|
|
4998
5183
|
import_node_fs6 = require("fs");
|
|
4999
5184
|
import_node_path6 = require("path");
|
|
5000
|
-
|
|
5185
|
+
init_common3();
|
|
5001
5186
|
init_config();
|
|
5002
5187
|
CONFIG_FILE_NAMES = [
|
|
5003
5188
|
"commandkit.config.js",
|
|
@@ -5129,7 +5314,7 @@ function onBootstrap(fn) {
|
|
|
5129
5314
|
function onApplicationBootstrap(fn) {
|
|
5130
5315
|
onApplicationBootstrapHooks.add(fn);
|
|
5131
5316
|
}
|
|
5132
|
-
var import_node_events2,
|
|
5317
|
+
var import_node_events2, import_discord25, import_node_path7, import_node_fs7, commandkit, bootstrapHooks, onApplicationBootstrapHooks, _started, _CommandKit_instances, bootstrapHooks_fn, applicationBootstrapHooks_fn, init_fn, initCommands_fn, initEvents_fn, _CommandKit, CommandKit;
|
|
5133
5318
|
var init_CommandKit = __esm({
|
|
5134
5319
|
"src/CommandKit.ts"() {
|
|
5135
5320
|
"use strict";
|
|
@@ -5140,7 +5325,7 @@ var init_CommandKit = __esm({
|
|
|
5140
5325
|
init_MemoryCache();
|
|
5141
5326
|
init_components();
|
|
5142
5327
|
init_EventInterceptor();
|
|
5143
|
-
|
|
5328
|
+
import_discord25 = require("discord.js");
|
|
5144
5329
|
init_utilities();
|
|
5145
5330
|
import_node_path7 = require("path");
|
|
5146
5331
|
init_AppCommandHandler();
|
|
@@ -5186,7 +5371,7 @@ var init_CommandKit = __esm({
|
|
|
5186
5371
|
__privateAdd(this, _started, false);
|
|
5187
5372
|
__publicField(this, "eventInterceptor");
|
|
5188
5373
|
__publicField(this, "config", {
|
|
5189
|
-
defaultLocale:
|
|
5374
|
+
defaultLocale: import_discord25.Locale.EnglishUS,
|
|
5190
5375
|
getMessageCommandPrefix: /* @__PURE__ */ __name(() => "!", "getMessageCommandPrefix")
|
|
5191
5376
|
});
|
|
5192
5377
|
__publicField(this, "commandsRouter");
|
|
@@ -5232,7 +5417,7 @@ var init_CommandKit = __esm({
|
|
|
5232
5417
|
this.commandHandler.registerCommandHandler();
|
|
5233
5418
|
this.incrementClientListenersCount();
|
|
5234
5419
|
if (token !== false && !this.options.client.isReady()) {
|
|
5235
|
-
this.client.once(
|
|
5420
|
+
this.client.once(import_discord25.Events.ClientReady, async () => {
|
|
5236
5421
|
await this.commandHandler.registrar.register();
|
|
5237
5422
|
});
|
|
5238
5423
|
await this.plugins.execute((ctx, plugin) => {
|
|
@@ -5444,7 +5629,7 @@ var init_version = __esm({
|
|
|
5444
5629
|
"use strict";
|
|
5445
5630
|
init_cjs_shims();
|
|
5446
5631
|
version = /* @__MACRO__ $version */
|
|
5447
|
-
"0.1.11-dev.
|
|
5632
|
+
"0.1.11-dev.20250426143847";
|
|
5448
5633
|
}
|
|
5449
5634
|
});
|
|
5450
5635
|
|
|
@@ -5520,7 +5705,7 @@ var init_app_process = __esm({
|
|
|
5520
5705
|
init_env();
|
|
5521
5706
|
import_node_path8 = require("path");
|
|
5522
5707
|
import_node_fs8 = require("fs");
|
|
5523
|
-
|
|
5708
|
+
init_common3();
|
|
5524
5709
|
__name(getStdio, "getStdio");
|
|
5525
5710
|
__name(createAppProcess, "createAppProcess");
|
|
5526
5711
|
}
|
|
@@ -5626,7 +5811,7 @@ var init_type_checker = __esm({
|
|
|
5626
5811
|
"use strict";
|
|
5627
5812
|
init_cjs_shims();
|
|
5628
5813
|
import_node_fs9 = require("fs");
|
|
5629
|
-
|
|
5814
|
+
init_common3();
|
|
5630
5815
|
import_node_path9 = require("path");
|
|
5631
5816
|
init_colors();
|
|
5632
5817
|
TS_NOT_FOUND_ERR = `TypeScript must be installed in order to use the type checker. Please install it using \`npm install typescript\` or \`yarn add typescript\``;
|
|
@@ -5740,7 +5925,7 @@ var init_build = __esm({
|
|
|
5740
5925
|
init_env();
|
|
5741
5926
|
import_rimraf2 = require("rimraf");
|
|
5742
5927
|
init_type_checker();
|
|
5743
|
-
|
|
5928
|
+
init_common3();
|
|
5744
5929
|
__name(buildApplication, "buildApplication");
|
|
5745
5930
|
envScript = /* @__PURE__ */ __name((dev) => `// --- Environment Variables Loader ---
|
|
5746
5931
|
const $env = [${(dev ? devEnvFileArgs : prodEnvFileArgs).map((p) => `"${p}"`).join(", ")}];
|
|
@@ -6043,7 +6228,7 @@ var init_production = __esm({
|
|
|
6043
6228
|
init_loader();
|
|
6044
6229
|
init_app_process();
|
|
6045
6230
|
import_fs = require("fs");
|
|
6046
|
-
|
|
6231
|
+
init_common3();
|
|
6047
6232
|
init_build();
|
|
6048
6233
|
init_plugins();
|
|
6049
6234
|
init_utils();
|
|
@@ -6147,7 +6332,7 @@ var init_generators = __esm({
|
|
|
6147
6332
|
init_cjs_shims();
|
|
6148
6333
|
import_promises7 = require("fs/promises");
|
|
6149
6334
|
import_path4 = require("path");
|
|
6150
|
-
|
|
6335
|
+
init_common3();
|
|
6151
6336
|
import_fs2 = require("fs");
|
|
6152
6337
|
init_colors();
|
|
6153
6338
|
BASE_PATH = process.cwd();
|
|
@@ -6335,14 +6520,18 @@ __export(index_exports, {
|
|
|
6335
6520
|
CommandsRouter: () => CommandsRouter,
|
|
6336
6521
|
CompilerPlugin: () => CompilerPlugin,
|
|
6337
6522
|
CompilerPluginRuntime: () => CompilerPluginRuntime,
|
|
6523
|
+
Container: () => Container,
|
|
6338
6524
|
Context: () => Context,
|
|
6339
6525
|
DefaultLogger: () => DefaultLogger,
|
|
6340
6526
|
ElementType: () => ElementType,
|
|
6341
6527
|
EventInterceptor: () => EventInterceptor,
|
|
6342
6528
|
EventsRouter: () => EventsRouter,
|
|
6529
|
+
File: () => File,
|
|
6343
6530
|
Fragment: () => Fragment,
|
|
6344
6531
|
HMREventType: () => HMREventType,
|
|
6345
6532
|
Logger: () => Logger,
|
|
6533
|
+
MediaGallery: () => MediaGallery,
|
|
6534
|
+
MediaGalleryItem: () => MediaGalleryItem,
|
|
6346
6535
|
MemoryCache: () => MemoryCache,
|
|
6347
6536
|
MentionableSelectMenu: () => MentionableSelectMenu,
|
|
6348
6537
|
MentionableSelectMenuKit: () => MentionableSelectMenuKit,
|
|
@@ -6355,10 +6544,13 @@ __export(index_exports, {
|
|
|
6355
6544
|
RoleSelectMenu: () => RoleSelectMenu,
|
|
6356
6545
|
RoleSelectMenuKit: () => RoleSelectMenuKit,
|
|
6357
6546
|
RuntimePlugin: () => RuntimePlugin,
|
|
6547
|
+
Section: () => Section,
|
|
6548
|
+
Separator: () => Separator,
|
|
6358
6549
|
ShortInput: () => ShortInput,
|
|
6359
6550
|
StringSelectMenu: () => StringSelectMenu,
|
|
6360
6551
|
StringSelectMenuKit: () => StringSelectMenuKit,
|
|
6361
6552
|
StringSelectMenuOption: () => StringSelectMenuOption,
|
|
6553
|
+
TextDisplay: () => TextDisplay,
|
|
6362
6554
|
TextInput: () => TextInput,
|
|
6363
6555
|
UserSelectMenu: () => UserSelectMenu,
|
|
6364
6556
|
UserSelectMenuKit: () => UserSelectMenuKit,
|
|
@@ -6603,9 +6795,9 @@ init_CommandRegistrar();
|
|
|
6603
6795
|
|
|
6604
6796
|
// src/app/commands/helpers.ts
|
|
6605
6797
|
init_cjs_shims();
|
|
6606
|
-
var
|
|
6798
|
+
var import_discord26 = require("discord.js");
|
|
6607
6799
|
function isMessageSource(source) {
|
|
6608
|
-
return source instanceof
|
|
6800
|
+
return source instanceof import_discord26.Message;
|
|
6609
6801
|
}
|
|
6610
6802
|
__name(isMessageSource, "isMessageSource");
|
|
6611
6803
|
function isInteractionSource(source) {
|
|
@@ -6709,14 +6901,18 @@ var index_default = CommandKit;
|
|
|
6709
6901
|
CommandsRouter,
|
|
6710
6902
|
CompilerPlugin,
|
|
6711
6903
|
CompilerPluginRuntime,
|
|
6904
|
+
Container,
|
|
6712
6905
|
Context,
|
|
6713
6906
|
DefaultLogger,
|
|
6714
6907
|
ElementType,
|
|
6715
6908
|
EventInterceptor,
|
|
6716
6909
|
EventsRouter,
|
|
6910
|
+
File,
|
|
6717
6911
|
Fragment,
|
|
6718
6912
|
HMREventType,
|
|
6719
6913
|
Logger,
|
|
6914
|
+
MediaGallery,
|
|
6915
|
+
MediaGalleryItem,
|
|
6720
6916
|
MemoryCache,
|
|
6721
6917
|
MentionableSelectMenu,
|
|
6722
6918
|
MentionableSelectMenuKit,
|
|
@@ -6729,10 +6925,13 @@ var index_default = CommandKit;
|
|
|
6729
6925
|
RoleSelectMenu,
|
|
6730
6926
|
RoleSelectMenuKit,
|
|
6731
6927
|
RuntimePlugin,
|
|
6928
|
+
Section,
|
|
6929
|
+
Separator,
|
|
6732
6930
|
ShortInput,
|
|
6733
6931
|
StringSelectMenu,
|
|
6734
6932
|
StringSelectMenuKit,
|
|
6735
6933
|
StringSelectMenuOption,
|
|
6934
|
+
TextDisplay,
|
|
6736
6935
|
TextInput,
|
|
6737
6936
|
UserSelectMenu,
|
|
6738
6937
|
UserSelectMenuKit,
|