commandkit 0.1.11-dev.20250423160629 → 0.1.11-dev.20250426145509
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 +45 -2
- package/dist/index.js +295 -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,208 @@ 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
|
+
function Thumbnail(props) {
|
|
1744
|
+
const thumbnail = new import_discord15.ThumbnailBuilder({
|
|
1745
|
+
description: props.description,
|
|
1746
|
+
spoiler: props.spoiler,
|
|
1747
|
+
id: props.id,
|
|
1748
|
+
media: { url: props.url }
|
|
1749
|
+
});
|
|
1750
|
+
return thumbnail;
|
|
1751
|
+
}
|
|
1752
|
+
var import_discord15;
|
|
1753
|
+
var init_section = __esm({
|
|
1754
|
+
"src/components/v2/section.ts"() {
|
|
1755
|
+
"use strict";
|
|
1756
|
+
init_cjs_shims();
|
|
1757
|
+
import_discord15 = require("discord.js");
|
|
1758
|
+
init_common2();
|
|
1759
|
+
__name(Section, "Section");
|
|
1760
|
+
__name(Thumbnail, "Thumbnail");
|
|
1761
|
+
}
|
|
1762
|
+
});
|
|
1763
|
+
|
|
1764
|
+
// src/components/v2/separator.ts
|
|
1765
|
+
function Separator(props) {
|
|
1766
|
+
const separator = new import_discord16.SeparatorBuilder(props);
|
|
1767
|
+
return separator;
|
|
1768
|
+
}
|
|
1769
|
+
var import_discord16;
|
|
1770
|
+
var init_separator = __esm({
|
|
1771
|
+
"src/components/v2/separator.ts"() {
|
|
1772
|
+
"use strict";
|
|
1773
|
+
init_cjs_shims();
|
|
1774
|
+
import_discord16 = require("discord.js");
|
|
1775
|
+
__name(Separator, "Separator");
|
|
1776
|
+
}
|
|
1777
|
+
});
|
|
1778
|
+
|
|
1779
|
+
// src/components/v2/text-display.ts
|
|
1780
|
+
function TextDisplay(props) {
|
|
1781
|
+
const textDisplay = new import_discord17.TextDisplayBuilder(props);
|
|
1782
|
+
return textDisplay;
|
|
1783
|
+
}
|
|
1784
|
+
var import_discord17;
|
|
1785
|
+
var init_text_display = __esm({
|
|
1786
|
+
"src/components/v2/text-display.ts"() {
|
|
1787
|
+
"use strict";
|
|
1788
|
+
init_cjs_shims();
|
|
1789
|
+
import_discord17 = require("discord.js");
|
|
1790
|
+
__name(TextDisplay, "TextDisplay");
|
|
1791
|
+
}
|
|
1792
|
+
});
|
|
1793
|
+
|
|
1794
|
+
// src/components/v2/index.ts
|
|
1795
|
+
var init_v2 = __esm({
|
|
1796
|
+
"src/components/v2/index.ts"() {
|
|
1797
|
+
"use strict";
|
|
1798
|
+
init_cjs_shims();
|
|
1799
|
+
init_container();
|
|
1800
|
+
init_file();
|
|
1801
|
+
init_media_gallery();
|
|
1802
|
+
init_section();
|
|
1803
|
+
init_separator();
|
|
1804
|
+
init_text_display();
|
|
1805
|
+
}
|
|
1806
|
+
});
|
|
1807
|
+
|
|
1614
1808
|
// src/utils/warn-unstable.ts
|
|
1615
1809
|
function emitWarning(message, code = "CommandKitWarning") {
|
|
1616
1810
|
process.emitWarning(message, { code });
|
|
@@ -1867,6 +2061,7 @@ var init_components = __esm({
|
|
|
1867
2061
|
init_RoleSelectMenuKit();
|
|
1868
2062
|
init_SelectMenu();
|
|
1869
2063
|
init_common();
|
|
2064
|
+
init_v2();
|
|
1870
2065
|
init_element();
|
|
1871
2066
|
init_types();
|
|
1872
2067
|
init_EventInterceptor();
|
|
@@ -2269,19 +2464,19 @@ var init_Logger = __esm({
|
|
|
2269
2464
|
});
|
|
2270
2465
|
|
|
2271
2466
|
// src/plugins/plugin-runtime/CommandKitPluginRuntime.ts
|
|
2272
|
-
var
|
|
2467
|
+
var import_discord18, _CommandKitPluginRuntime, CommandKitPluginRuntime;
|
|
2273
2468
|
var init_CommandKitPluginRuntime = __esm({
|
|
2274
2469
|
"src/plugins/plugin-runtime/CommandKitPluginRuntime.ts"() {
|
|
2275
2470
|
"use strict";
|
|
2276
2471
|
init_cjs_shims();
|
|
2277
|
-
|
|
2472
|
+
import_discord18 = require("discord.js");
|
|
2278
2473
|
init_error_codes();
|
|
2279
2474
|
init_Logger();
|
|
2280
2475
|
_CommandKitPluginRuntime = class _CommandKitPluginRuntime {
|
|
2281
2476
|
constructor(commandkit2) {
|
|
2282
2477
|
this.commandkit = commandkit2;
|
|
2283
2478
|
}
|
|
2284
|
-
plugins = new
|
|
2479
|
+
plugins = new import_discord18.Collection();
|
|
2285
2480
|
getPlugin(pluginName) {
|
|
2286
2481
|
return this.plugins.get(pluginName) ?? null;
|
|
2287
2482
|
}
|
|
@@ -2856,12 +3051,12 @@ var init_resolve_file_url = __esm({
|
|
|
2856
3051
|
});
|
|
2857
3052
|
|
|
2858
3053
|
// src/app/commands/MessageCommandParser.ts
|
|
2859
|
-
var
|
|
3054
|
+
var import_discord19, _parsed, _options, _args, _MessageCommandParser, MessageCommandParser, _MessageCommandOptions, MessageCommandOptions;
|
|
2860
3055
|
var init_MessageCommandParser = __esm({
|
|
2861
3056
|
"src/app/commands/MessageCommandParser.ts"() {
|
|
2862
3057
|
"use strict";
|
|
2863
3058
|
init_cjs_shims();
|
|
2864
|
-
|
|
3059
|
+
import_discord19 = require("discord.js");
|
|
2865
3060
|
init_error_codes();
|
|
2866
3061
|
_MessageCommandParser = class _MessageCommandParser {
|
|
2867
3062
|
constructor(message, prefix, schema) {
|
|
@@ -2936,36 +3131,36 @@ var init_MessageCommandParser = __esm({
|
|
|
2936
3131
|
const [name, value] = part.split(":");
|
|
2937
3132
|
if (!(name in schema)) return null;
|
|
2938
3133
|
switch (schema[name]) {
|
|
2939
|
-
case
|
|
3134
|
+
case import_discord19.ApplicationCommandOptionType.Boolean:
|
|
2940
3135
|
return { name, value: value === "true" };
|
|
2941
|
-
case
|
|
3136
|
+
case import_discord19.ApplicationCommandOptionType.Integer:
|
|
2942
3137
|
return { name, value: parseInt(value, 10) };
|
|
2943
|
-
case
|
|
3138
|
+
case import_discord19.ApplicationCommandOptionType.Number:
|
|
2944
3139
|
return { name, value: parseFloat(value) };
|
|
2945
|
-
case
|
|
3140
|
+
case import_discord19.ApplicationCommandOptionType.String:
|
|
2946
3141
|
return { name, value };
|
|
2947
|
-
case
|
|
3142
|
+
case import_discord19.ApplicationCommandOptionType.User:
|
|
2948
3143
|
return {
|
|
2949
3144
|
name,
|
|
2950
3145
|
value: this.message.mentions.users.find((u) => {
|
|
2951
3146
|
return u.id === value.replace(/[<@!>]/g, "");
|
|
2952
3147
|
})
|
|
2953
3148
|
};
|
|
2954
|
-
case
|
|
3149
|
+
case import_discord19.ApplicationCommandOptionType.Channel:
|
|
2955
3150
|
return {
|
|
2956
3151
|
name,
|
|
2957
3152
|
value: this.message.mentions.channels.find((c) => {
|
|
2958
3153
|
return c.id === value.replace(/[<#>]/g, "");
|
|
2959
3154
|
})
|
|
2960
3155
|
};
|
|
2961
|
-
case
|
|
3156
|
+
case import_discord19.ApplicationCommandOptionType.Role:
|
|
2962
3157
|
return {
|
|
2963
3158
|
name,
|
|
2964
3159
|
value: this.message.mentions.roles.find((r) => {
|
|
2965
3160
|
return r.id === value.replace(/[<@&>]/g, "");
|
|
2966
3161
|
})
|
|
2967
3162
|
};
|
|
2968
|
-
case
|
|
3163
|
+
case import_discord19.ApplicationCommandOptionType.Attachment:
|
|
2969
3164
|
return {
|
|
2970
3165
|
name,
|
|
2971
3166
|
value: this.message.attachments.find((a) => {
|
|
@@ -3039,7 +3234,7 @@ var init_MessageCommandParser = __esm({
|
|
|
3039
3234
|
}
|
|
3040
3235
|
getMentionable(name, required = false) {
|
|
3041
3236
|
const target = this.assertOption(name, required);
|
|
3042
|
-
if (target instanceof
|
|
3237
|
+
if (target instanceof import_discord19.GuildMember || target instanceof import_discord19.User || target instanceof import_discord19.Role) {
|
|
3043
3238
|
return target;
|
|
3044
3239
|
}
|
|
3045
3240
|
if (required) {
|
|
@@ -3068,12 +3263,12 @@ var init_MessageCommandParser = __esm({
|
|
|
3068
3263
|
});
|
|
3069
3264
|
|
|
3070
3265
|
// src/app/register/CommandRegistrar.ts
|
|
3071
|
-
var
|
|
3266
|
+
var import_discord20, _CommandRegistrar, CommandRegistrar;
|
|
3072
3267
|
var init_CommandRegistrar = __esm({
|
|
3073
3268
|
"src/app/register/CommandRegistrar.ts"() {
|
|
3074
3269
|
"use strict";
|
|
3075
3270
|
init_cjs_shims();
|
|
3076
|
-
|
|
3271
|
+
import_discord20 = require("discord.js");
|
|
3077
3272
|
init_Logger();
|
|
3078
3273
|
_CommandRegistrar = class _CommandRegistrar {
|
|
3079
3274
|
/**
|
|
@@ -3086,7 +3281,7 @@ var init_CommandRegistrar = __esm({
|
|
|
3086
3281
|
this.commandkit.client.token ?? process.env.DISCORD_TOKEN ?? process.env.TOKEN ?? ""
|
|
3087
3282
|
);
|
|
3088
3283
|
}
|
|
3089
|
-
api = new
|
|
3284
|
+
api = new import_discord20.REST();
|
|
3090
3285
|
/**
|
|
3091
3286
|
* Gets the commands data.
|
|
3092
3287
|
*/
|
|
@@ -3096,20 +3291,20 @@ var init_CommandRegistrar = __esm({
|
|
|
3096
3291
|
return commands.flatMap((cmd) => {
|
|
3097
3292
|
const json = "toJSON" in cmd.data.command ? cmd.data.command.toJSON() : cmd.data.command;
|
|
3098
3293
|
const collections = [json];
|
|
3099
|
-
if (cmd.data.userContextMenu && json.type !==
|
|
3294
|
+
if (cmd.data.userContextMenu && json.type !== import_discord20.ApplicationCommandType.User) {
|
|
3100
3295
|
collections.push({
|
|
3101
3296
|
...json,
|
|
3102
|
-
type:
|
|
3297
|
+
type: import_discord20.ApplicationCommandType.User,
|
|
3103
3298
|
options: void 0,
|
|
3104
3299
|
description_localizations: void 0,
|
|
3105
3300
|
// @ts-ignore
|
|
3106
3301
|
description: void 0
|
|
3107
3302
|
});
|
|
3108
3303
|
}
|
|
3109
|
-
if (cmd.data.messageContextMenu && json.type !==
|
|
3304
|
+
if (cmd.data.messageContextMenu && json.type !== import_discord20.ApplicationCommandType.Message) {
|
|
3110
3305
|
collections.push({
|
|
3111
3306
|
...json,
|
|
3112
|
-
type:
|
|
3307
|
+
type: import_discord20.ApplicationCommandType.Message,
|
|
3113
3308
|
description_localizations: void 0,
|
|
3114
3309
|
// @ts-ignore
|
|
3115
3310
|
description: void 0,
|
|
@@ -3176,7 +3371,7 @@ var init_CommandRegistrar = __esm({
|
|
|
3176
3371
|
});
|
|
3177
3372
|
try {
|
|
3178
3373
|
const data = await this.api.put(
|
|
3179
|
-
|
|
3374
|
+
import_discord20.Routes.applicationCommands(this.commandkit.client.user.id),
|
|
3180
3375
|
{
|
|
3181
3376
|
body: commands.map((c) => ({
|
|
3182
3377
|
...c,
|
|
@@ -3239,7 +3434,7 @@ var init_CommandRegistrar = __esm({
|
|
|
3239
3434
|
});
|
|
3240
3435
|
if (prevented2) continue;
|
|
3241
3436
|
const data = await this.api.put(
|
|
3242
|
-
|
|
3437
|
+
import_discord20.Routes.applicationGuildCommands(
|
|
3243
3438
|
this.commandkit.client.user.id,
|
|
3244
3439
|
guild
|
|
3245
3440
|
),
|
|
@@ -3797,12 +3992,12 @@ var init_Context = __esm({
|
|
|
3797
3992
|
});
|
|
3798
3993
|
|
|
3799
3994
|
// src/app/commands/AppCommandRunner.ts
|
|
3800
|
-
var
|
|
3995
|
+
var import_discord21, _AppCommandRunner_instances, finalizer_fn, _AppCommandRunner, AppCommandRunner;
|
|
3801
3996
|
var init_AppCommandRunner = __esm({
|
|
3802
3997
|
"src/app/commands/AppCommandRunner.ts"() {
|
|
3803
3998
|
"use strict";
|
|
3804
3999
|
init_cjs_shims();
|
|
3805
|
-
|
|
4000
|
+
import_discord21 = require("discord.js");
|
|
3806
4001
|
init_environment();
|
|
3807
4002
|
init_Logger();
|
|
3808
4003
|
init_Context();
|
|
@@ -3826,8 +4021,8 @@ var init_AppCommandRunner = __esm({
|
|
|
3826
4021
|
command: prepared.command,
|
|
3827
4022
|
environment: env,
|
|
3828
4023
|
executionMode,
|
|
3829
|
-
interaction: !(source instanceof
|
|
3830
|
-
message: source instanceof
|
|
4024
|
+
interaction: !(source instanceof import_discord21.Message) ? source : null,
|
|
4025
|
+
message: source instanceof import_discord21.Message ? source : null,
|
|
3831
4026
|
forwarded: false,
|
|
3832
4027
|
customArgs: {
|
|
3833
4028
|
setCommandRunner: /* @__PURE__ */ __name((fn) => {
|
|
@@ -3932,7 +4127,7 @@ var init_AppCommandRunner = __esm({
|
|
|
3932
4127
|
}
|
|
3933
4128
|
}
|
|
3934
4129
|
getExecutionMode(source) {
|
|
3935
|
-
if (source instanceof
|
|
4130
|
+
if (source instanceof import_discord21.Message) return CommandExecutionMode.Message;
|
|
3936
4131
|
if (source.isChatInputCommand())
|
|
3937
4132
|
return CommandExecutionMode.ChatInputCommand;
|
|
3938
4133
|
if (source.isAutocomplete()) {
|
|
@@ -4022,12 +4217,12 @@ var init_types_package = __esm({
|
|
|
4022
4217
|
});
|
|
4023
4218
|
|
|
4024
4219
|
// src/app/handlers/AppCommandHandler.ts
|
|
4025
|
-
var
|
|
4220
|
+
var import_discord22, commandDataSchema, middlewareDataSchema, _AppCommandHandler, AppCommandHandler;
|
|
4026
4221
|
var init_AppCommandHandler = __esm({
|
|
4027
4222
|
"src/app/handlers/AppCommandHandler.ts"() {
|
|
4028
4223
|
"use strict";
|
|
4029
4224
|
init_cjs_shims();
|
|
4030
|
-
|
|
4225
|
+
import_discord22 = require("discord.js");
|
|
4031
4226
|
init_resolve_file_url();
|
|
4032
4227
|
init_MessageCommandParser();
|
|
4033
4228
|
init_error_codes();
|
|
@@ -4038,7 +4233,7 @@ var init_AppCommandHandler = __esm({
|
|
|
4038
4233
|
init_types_package();
|
|
4039
4234
|
init_colors();
|
|
4040
4235
|
commandDataSchema = {
|
|
4041
|
-
command: /* @__PURE__ */ __name((c) => c instanceof
|
|
4236
|
+
command: /* @__PURE__ */ __name((c) => c instanceof import_discord22.SlashCommandBuilder || c instanceof import_discord22.ContextMenuCommandBuilder || c && typeof c === "object", "command"),
|
|
4042
4237
|
chatInput: /* @__PURE__ */ __name((c) => typeof c === "function", "chatInput"),
|
|
4043
4238
|
autocomplete: /* @__PURE__ */ __name((c) => typeof c === "function", "autocomplete"),
|
|
4044
4239
|
message: /* @__PURE__ */ __name((c) => typeof c === "function", "message"),
|
|
@@ -4054,8 +4249,8 @@ var init_AppCommandHandler = __esm({
|
|
|
4054
4249
|
this.commandkit = commandkit2;
|
|
4055
4250
|
this.registrar = new CommandRegistrar(this.commandkit);
|
|
4056
4251
|
}
|
|
4057
|
-
loadedCommands = new
|
|
4058
|
-
loadedMiddlewares = new
|
|
4252
|
+
loadedCommands = new import_discord22.Collection();
|
|
4253
|
+
loadedMiddlewares = new import_discord22.Collection();
|
|
4059
4254
|
// Name-to-ID mapping for easier lookup
|
|
4060
4255
|
commandNameToId = /* @__PURE__ */ new Map();
|
|
4061
4256
|
subcommandPathToId = /* @__PURE__ */ new Map();
|
|
@@ -4063,8 +4258,8 @@ var init_AppCommandHandler = __esm({
|
|
|
4063
4258
|
onInteraction = null;
|
|
4064
4259
|
onMessageCreate = null;
|
|
4065
4260
|
commandRunner = new AppCommandRunner(this);
|
|
4066
|
-
externalCommandData = new
|
|
4067
|
-
externalMiddlewareData = new
|
|
4261
|
+
externalCommandData = new import_discord22.Collection();
|
|
4262
|
+
externalMiddlewareData = new import_discord22.Collection();
|
|
4068
4263
|
printBanner() {
|
|
4069
4264
|
const uncategorized = crypto.randomUUID();
|
|
4070
4265
|
const categorizedCommands = this.getCommandsArray().reduce(
|
|
@@ -4182,14 +4377,14 @@ var init_AppCommandHandler = __esm({
|
|
|
4182
4377
|
if (!prepared) return;
|
|
4183
4378
|
return this.commandRunner.runCommand(prepared, message);
|
|
4184
4379
|
};
|
|
4185
|
-
this.commandkit.client.on(
|
|
4186
|
-
this.commandkit.client.on(
|
|
4380
|
+
this.commandkit.client.on(import_discord22.Events.InteractionCreate, this.onInteraction);
|
|
4381
|
+
this.commandkit.client.on(import_discord22.Events.MessageCreate, this.onMessageCreate);
|
|
4187
4382
|
}
|
|
4188
4383
|
async prepareCommandRun(source, cmdName) {
|
|
4189
4384
|
var _a;
|
|
4190
4385
|
let parser;
|
|
4191
4386
|
if (!cmdName) {
|
|
4192
|
-
if (source instanceof
|
|
4387
|
+
if (source instanceof import_discord22.Message) {
|
|
4193
4388
|
if (source.author.bot) return null;
|
|
4194
4389
|
const prefix = await this.commandkit.config.getMessageCommandPrefix(source);
|
|
4195
4390
|
parser = new MessageCommandParser(
|
|
@@ -4235,7 +4430,7 @@ var init_AppCommandHandler = __esm({
|
|
|
4235
4430
|
if (!commandId) return null;
|
|
4236
4431
|
const loadedCommand = this.loadedCommands.get(commandId);
|
|
4237
4432
|
if (!loadedCommand) return null;
|
|
4238
|
-
if ((source instanceof
|
|
4433
|
+
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
4434
|
return null;
|
|
4240
4435
|
}
|
|
4241
4436
|
const middlewares = [];
|
|
@@ -4395,12 +4590,12 @@ var init_AppCommandHandler = __esm({
|
|
|
4395
4590
|
});
|
|
4396
4591
|
|
|
4397
4592
|
// src/app/router/CommandsRouter.ts
|
|
4398
|
-
var
|
|
4593
|
+
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
4594
|
var init_CommandsRouter = __esm({
|
|
4400
4595
|
"src/app/router/CommandsRouter.ts"() {
|
|
4401
4596
|
"use strict";
|
|
4402
4597
|
init_cjs_shims();
|
|
4403
|
-
|
|
4598
|
+
import_discord23 = require("discord.js");
|
|
4404
4599
|
import_node_fs3 = require("fs");
|
|
4405
4600
|
import_promises3 = require("fs/promises");
|
|
4406
4601
|
import_node_path3 = require("path");
|
|
@@ -4413,8 +4608,8 @@ var init_CommandsRouter = __esm({
|
|
|
4413
4608
|
constructor(options) {
|
|
4414
4609
|
this.options = options;
|
|
4415
4610
|
}
|
|
4416
|
-
commands = new
|
|
4417
|
-
middlewares = new
|
|
4611
|
+
commands = new import_discord23.Collection();
|
|
4612
|
+
middlewares = new import_discord23.Collection();
|
|
4418
4613
|
populate(data) {
|
|
4419
4614
|
for (const [id, command] of Object.entries(data.commands)) {
|
|
4420
4615
|
this.commands.set(id, command);
|
|
@@ -4535,12 +4730,12 @@ var init_CommandsRouter = __esm({
|
|
|
4535
4730
|
});
|
|
4536
4731
|
|
|
4537
4732
|
// src/app/router/EventsRouter.ts
|
|
4538
|
-
var
|
|
4733
|
+
var import_discord24, import_node_fs4, import_promises4, import_node_path4, _EventsRouter, EventsRouter;
|
|
4539
4734
|
var init_EventsRouter = __esm({
|
|
4540
4735
|
"src/app/router/EventsRouter.ts"() {
|
|
4541
4736
|
"use strict";
|
|
4542
4737
|
init_cjs_shims();
|
|
4543
|
-
|
|
4738
|
+
import_discord24 = require("discord.js");
|
|
4544
4739
|
import_node_fs4 = require("fs");
|
|
4545
4740
|
import_promises4 = require("fs/promises");
|
|
4546
4741
|
import_node_path4 = require("path");
|
|
@@ -4561,7 +4756,7 @@ var init_EventsRouter = __esm({
|
|
|
4561
4756
|
}
|
|
4562
4757
|
}
|
|
4563
4758
|
/** Internal storage of parsed events */
|
|
4564
|
-
events = new
|
|
4759
|
+
events = new import_discord24.Collection();
|
|
4565
4760
|
/**
|
|
4566
4761
|
* Adds new entrypoints to the router
|
|
4567
4762
|
* @param entrypoints - Array of new entrypoint paths
|
|
@@ -4945,7 +5140,7 @@ async function copyLocaleFiles(_from, _to) {
|
|
|
4945
5140
|
}
|
|
4946
5141
|
}
|
|
4947
5142
|
var import_rimraf, import_node_path5, import_node_fs5, import_node_child_process, ts, packageManager;
|
|
4948
|
-
var
|
|
5143
|
+
var init_common3 = __esm({
|
|
4949
5144
|
"src/cli/common.ts"() {
|
|
4950
5145
|
"use strict";
|
|
4951
5146
|
init_cjs_shims();
|
|
@@ -4997,7 +5192,7 @@ var init_loader = __esm({
|
|
|
4997
5192
|
init_cjs_shims();
|
|
4998
5193
|
import_node_fs6 = require("fs");
|
|
4999
5194
|
import_node_path6 = require("path");
|
|
5000
|
-
|
|
5195
|
+
init_common3();
|
|
5001
5196
|
init_config();
|
|
5002
5197
|
CONFIG_FILE_NAMES = [
|
|
5003
5198
|
"commandkit.config.js",
|
|
@@ -5129,7 +5324,7 @@ function onBootstrap(fn) {
|
|
|
5129
5324
|
function onApplicationBootstrap(fn) {
|
|
5130
5325
|
onApplicationBootstrapHooks.add(fn);
|
|
5131
5326
|
}
|
|
5132
|
-
var import_node_events2,
|
|
5327
|
+
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
5328
|
var init_CommandKit = __esm({
|
|
5134
5329
|
"src/CommandKit.ts"() {
|
|
5135
5330
|
"use strict";
|
|
@@ -5140,7 +5335,7 @@ var init_CommandKit = __esm({
|
|
|
5140
5335
|
init_MemoryCache();
|
|
5141
5336
|
init_components();
|
|
5142
5337
|
init_EventInterceptor();
|
|
5143
|
-
|
|
5338
|
+
import_discord25 = require("discord.js");
|
|
5144
5339
|
init_utilities();
|
|
5145
5340
|
import_node_path7 = require("path");
|
|
5146
5341
|
init_AppCommandHandler();
|
|
@@ -5186,7 +5381,7 @@ var init_CommandKit = __esm({
|
|
|
5186
5381
|
__privateAdd(this, _started, false);
|
|
5187
5382
|
__publicField(this, "eventInterceptor");
|
|
5188
5383
|
__publicField(this, "config", {
|
|
5189
|
-
defaultLocale:
|
|
5384
|
+
defaultLocale: import_discord25.Locale.EnglishUS,
|
|
5190
5385
|
getMessageCommandPrefix: /* @__PURE__ */ __name(() => "!", "getMessageCommandPrefix")
|
|
5191
5386
|
});
|
|
5192
5387
|
__publicField(this, "commandsRouter");
|
|
@@ -5232,7 +5427,7 @@ var init_CommandKit = __esm({
|
|
|
5232
5427
|
this.commandHandler.registerCommandHandler();
|
|
5233
5428
|
this.incrementClientListenersCount();
|
|
5234
5429
|
if (token !== false && !this.options.client.isReady()) {
|
|
5235
|
-
this.client.once(
|
|
5430
|
+
this.client.once(import_discord25.Events.ClientReady, async () => {
|
|
5236
5431
|
await this.commandHandler.registrar.register();
|
|
5237
5432
|
});
|
|
5238
5433
|
await this.plugins.execute((ctx, plugin) => {
|
|
@@ -5444,7 +5639,7 @@ var init_version = __esm({
|
|
|
5444
5639
|
"use strict";
|
|
5445
5640
|
init_cjs_shims();
|
|
5446
5641
|
version = /* @__MACRO__ $version */
|
|
5447
|
-
"0.1.11-dev.
|
|
5642
|
+
"0.1.11-dev.20250426145509";
|
|
5448
5643
|
}
|
|
5449
5644
|
});
|
|
5450
5645
|
|
|
@@ -5520,7 +5715,7 @@ var init_app_process = __esm({
|
|
|
5520
5715
|
init_env();
|
|
5521
5716
|
import_node_path8 = require("path");
|
|
5522
5717
|
import_node_fs8 = require("fs");
|
|
5523
|
-
|
|
5718
|
+
init_common3();
|
|
5524
5719
|
__name(getStdio, "getStdio");
|
|
5525
5720
|
__name(createAppProcess, "createAppProcess");
|
|
5526
5721
|
}
|
|
@@ -5626,7 +5821,7 @@ var init_type_checker = __esm({
|
|
|
5626
5821
|
"use strict";
|
|
5627
5822
|
init_cjs_shims();
|
|
5628
5823
|
import_node_fs9 = require("fs");
|
|
5629
|
-
|
|
5824
|
+
init_common3();
|
|
5630
5825
|
import_node_path9 = require("path");
|
|
5631
5826
|
init_colors();
|
|
5632
5827
|
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 +5935,7 @@ var init_build = __esm({
|
|
|
5740
5935
|
init_env();
|
|
5741
5936
|
import_rimraf2 = require("rimraf");
|
|
5742
5937
|
init_type_checker();
|
|
5743
|
-
|
|
5938
|
+
init_common3();
|
|
5744
5939
|
__name(buildApplication, "buildApplication");
|
|
5745
5940
|
envScript = /* @__PURE__ */ __name((dev) => `// --- Environment Variables Loader ---
|
|
5746
5941
|
const $env = [${(dev ? devEnvFileArgs : prodEnvFileArgs).map((p) => `"${p}"`).join(", ")}];
|
|
@@ -6043,7 +6238,7 @@ var init_production = __esm({
|
|
|
6043
6238
|
init_loader();
|
|
6044
6239
|
init_app_process();
|
|
6045
6240
|
import_fs = require("fs");
|
|
6046
|
-
|
|
6241
|
+
init_common3();
|
|
6047
6242
|
init_build();
|
|
6048
6243
|
init_plugins();
|
|
6049
6244
|
init_utils();
|
|
@@ -6147,7 +6342,7 @@ var init_generators = __esm({
|
|
|
6147
6342
|
init_cjs_shims();
|
|
6148
6343
|
import_promises7 = require("fs/promises");
|
|
6149
6344
|
import_path4 = require("path");
|
|
6150
|
-
|
|
6345
|
+
init_common3();
|
|
6151
6346
|
import_fs2 = require("fs");
|
|
6152
6347
|
init_colors();
|
|
6153
6348
|
BASE_PATH = process.cwd();
|
|
@@ -6335,14 +6530,18 @@ __export(index_exports, {
|
|
|
6335
6530
|
CommandsRouter: () => CommandsRouter,
|
|
6336
6531
|
CompilerPlugin: () => CompilerPlugin,
|
|
6337
6532
|
CompilerPluginRuntime: () => CompilerPluginRuntime,
|
|
6533
|
+
Container: () => Container,
|
|
6338
6534
|
Context: () => Context,
|
|
6339
6535
|
DefaultLogger: () => DefaultLogger,
|
|
6340
6536
|
ElementType: () => ElementType,
|
|
6341
6537
|
EventInterceptor: () => EventInterceptor,
|
|
6342
6538
|
EventsRouter: () => EventsRouter,
|
|
6539
|
+
File: () => File,
|
|
6343
6540
|
Fragment: () => Fragment,
|
|
6344
6541
|
HMREventType: () => HMREventType,
|
|
6345
6542
|
Logger: () => Logger,
|
|
6543
|
+
MediaGallery: () => MediaGallery,
|
|
6544
|
+
MediaGalleryItem: () => MediaGalleryItem,
|
|
6346
6545
|
MemoryCache: () => MemoryCache,
|
|
6347
6546
|
MentionableSelectMenu: () => MentionableSelectMenu,
|
|
6348
6547
|
MentionableSelectMenuKit: () => MentionableSelectMenuKit,
|
|
@@ -6355,11 +6554,15 @@ __export(index_exports, {
|
|
|
6355
6554
|
RoleSelectMenu: () => RoleSelectMenu,
|
|
6356
6555
|
RoleSelectMenuKit: () => RoleSelectMenuKit,
|
|
6357
6556
|
RuntimePlugin: () => RuntimePlugin,
|
|
6557
|
+
Section: () => Section,
|
|
6558
|
+
Separator: () => Separator,
|
|
6358
6559
|
ShortInput: () => ShortInput,
|
|
6359
6560
|
StringSelectMenu: () => StringSelectMenu,
|
|
6360
6561
|
StringSelectMenuKit: () => StringSelectMenuKit,
|
|
6361
6562
|
StringSelectMenuOption: () => StringSelectMenuOption,
|
|
6563
|
+
TextDisplay: () => TextDisplay,
|
|
6362
6564
|
TextInput: () => TextInput,
|
|
6565
|
+
Thumbnail: () => Thumbnail,
|
|
6363
6566
|
UserSelectMenu: () => UserSelectMenu,
|
|
6364
6567
|
UserSelectMenuKit: () => UserSelectMenuKit,
|
|
6365
6568
|
__SECRET_USE_CACHE_INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: () => __SECRET_USE_CACHE_INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
|
@@ -6603,9 +6806,9 @@ init_CommandRegistrar();
|
|
|
6603
6806
|
|
|
6604
6807
|
// src/app/commands/helpers.ts
|
|
6605
6808
|
init_cjs_shims();
|
|
6606
|
-
var
|
|
6809
|
+
var import_discord26 = require("discord.js");
|
|
6607
6810
|
function isMessageSource(source) {
|
|
6608
|
-
return source instanceof
|
|
6811
|
+
return source instanceof import_discord26.Message;
|
|
6609
6812
|
}
|
|
6610
6813
|
__name(isMessageSource, "isMessageSource");
|
|
6611
6814
|
function isInteractionSource(source) {
|
|
@@ -6709,14 +6912,18 @@ var index_default = CommandKit;
|
|
|
6709
6912
|
CommandsRouter,
|
|
6710
6913
|
CompilerPlugin,
|
|
6711
6914
|
CompilerPluginRuntime,
|
|
6915
|
+
Container,
|
|
6712
6916
|
Context,
|
|
6713
6917
|
DefaultLogger,
|
|
6714
6918
|
ElementType,
|
|
6715
6919
|
EventInterceptor,
|
|
6716
6920
|
EventsRouter,
|
|
6921
|
+
File,
|
|
6717
6922
|
Fragment,
|
|
6718
6923
|
HMREventType,
|
|
6719
6924
|
Logger,
|
|
6925
|
+
MediaGallery,
|
|
6926
|
+
MediaGalleryItem,
|
|
6720
6927
|
MemoryCache,
|
|
6721
6928
|
MentionableSelectMenu,
|
|
6722
6929
|
MentionableSelectMenuKit,
|
|
@@ -6729,11 +6936,15 @@ var index_default = CommandKit;
|
|
|
6729
6936
|
RoleSelectMenu,
|
|
6730
6937
|
RoleSelectMenuKit,
|
|
6731
6938
|
RuntimePlugin,
|
|
6939
|
+
Section,
|
|
6940
|
+
Separator,
|
|
6732
6941
|
ShortInput,
|
|
6733
6942
|
StringSelectMenu,
|
|
6734
6943
|
StringSelectMenuKit,
|
|
6735
6944
|
StringSelectMenuOption,
|
|
6945
|
+
TextDisplay,
|
|
6736
6946
|
TextInput,
|
|
6947
|
+
Thumbnail,
|
|
6737
6948
|
UserSelectMenu,
|
|
6738
6949
|
UserSelectMenuKit,
|
|
6739
6950
|
__SECRET_USE_CACHE_INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|