@spatulox/simplediscordbot 1.6.8 → 1.7.1
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/CHANGELOG.md +8 -0
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +13893 -703
- package/dist/index.mjs +13939 -721
- package/package.json +5 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
Date format : dd/mm/yyy
|
|
3
|
+
|
|
4
|
+
### 08/04/2026 - 1.7.1
|
|
5
|
+
- WebHook Manager now don't crash when another bot with the same Webhook manager and webhook name try to access to the same webhook with the same name
|
|
6
|
+
|
|
7
|
+
### 08/04/2026 - 1.7.0
|
|
8
|
+
- SelectMenu can now be directly put inside Bot.log.xxx() and Bot.message.send(). no more need for SelectMenuManager.rows()
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EmbedBuilder, ContainerBuilder, ActionRowBuilder, MessageActionRowComponentBuilder, Message, TextChannel, DMChannel, ThreadChannel, MessageCreateOptions, User, GuildMember, BaseInteraction, InteractionResponse, Client, ActivityType, InteractionDeferReplyOptions, InteractionReplyOptions, InteractionEditReplyOptions, WebhookMessageCreateOptions, EmojiResolvable, Guild, BanOptions, Snowflake, GuildBasedChannel, GuildChannelCreateOptions, ForumChannel, NewsChannel, StageChannel, StartThreadOptions, VoiceChannel, Invite, Channel, Collection, GuildBan, ModalBuilder, StringSelectMenuBuilder, UserSelectMenuBuilder, RoleSelectMenuBuilder, MentionableSelectMenuBuilder, ChannelSelectMenuBuilder, ChannelType, SeparatorSpacingSize, ButtonBuilder, AttachmentBuilder, ButtonStyle } from 'discord.js';
|
|
2
|
+
import { BaseSelectMenuBuilder } from '@discordjs/builders';
|
|
2
3
|
|
|
3
|
-
type SendableComponent = EmbedBuilder | ContainerBuilder | ActionRowBuilder<MessageActionRowComponentBuilder>;
|
|
4
|
+
type SendableComponent = EmbedBuilder | ContainerBuilder | BaseSelectMenuBuilder<any> | ActionRowBuilder<MessageActionRowComponentBuilder>;
|
|
4
5
|
|
|
5
6
|
type ConfigLog = {
|
|
6
7
|
logChannelId: string;
|
|
@@ -171,7 +172,7 @@ declare class FileManager {
|
|
|
171
172
|
* @param filePath Full path to the JSON file
|
|
172
173
|
* @returns Parsed JSON object or 'Error' string on failure
|
|
173
174
|
*/
|
|
174
|
-
static readJsonFile(filePath: string): Promise<
|
|
175
|
+
static readJsonFile<T = any>(filePath: string): Promise<T | false>;
|
|
175
176
|
/**
|
|
176
177
|
* Lists all directories in a given path.
|
|
177
178
|
* @param directoryPath Path to scan for directories
|
|
@@ -622,6 +623,7 @@ type SelectMenuCreateOption = {
|
|
|
622
623
|
};
|
|
623
624
|
type SelectMenuList = StringSelectMenuBuilder | UserSelectMenuBuilder | RoleSelectMenuBuilder | MentionableSelectMenuBuilder | ChannelSelectMenuBuilder;
|
|
624
625
|
declare class SelectMenuManager {
|
|
626
|
+
static isSelectMenuList(comp: any): comp is SelectMenuList;
|
|
625
627
|
/**
|
|
626
628
|
* Creates base StringSelectMenu - SIMPLE API !
|
|
627
629
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EmbedBuilder, ContainerBuilder, ActionRowBuilder, MessageActionRowComponentBuilder, Message, TextChannel, DMChannel, ThreadChannel, MessageCreateOptions, User, GuildMember, BaseInteraction, InteractionResponse, Client, ActivityType, InteractionDeferReplyOptions, InteractionReplyOptions, InteractionEditReplyOptions, WebhookMessageCreateOptions, EmojiResolvable, Guild, BanOptions, Snowflake, GuildBasedChannel, GuildChannelCreateOptions, ForumChannel, NewsChannel, StageChannel, StartThreadOptions, VoiceChannel, Invite, Channel, Collection, GuildBan, ModalBuilder, StringSelectMenuBuilder, UserSelectMenuBuilder, RoleSelectMenuBuilder, MentionableSelectMenuBuilder, ChannelSelectMenuBuilder, ChannelType, SeparatorSpacingSize, ButtonBuilder, AttachmentBuilder, ButtonStyle } from 'discord.js';
|
|
2
|
+
import { BaseSelectMenuBuilder } from '@discordjs/builders';
|
|
2
3
|
|
|
3
|
-
type SendableComponent = EmbedBuilder | ContainerBuilder | ActionRowBuilder<MessageActionRowComponentBuilder>;
|
|
4
|
+
type SendableComponent = EmbedBuilder | ContainerBuilder | BaseSelectMenuBuilder<any> | ActionRowBuilder<MessageActionRowComponentBuilder>;
|
|
4
5
|
|
|
5
6
|
type ConfigLog = {
|
|
6
7
|
logChannelId: string;
|
|
@@ -171,7 +172,7 @@ declare class FileManager {
|
|
|
171
172
|
* @param filePath Full path to the JSON file
|
|
172
173
|
* @returns Parsed JSON object or 'Error' string on failure
|
|
173
174
|
*/
|
|
174
|
-
static readJsonFile(filePath: string): Promise<
|
|
175
|
+
static readJsonFile<T = any>(filePath: string): Promise<T | false>;
|
|
175
176
|
/**
|
|
176
177
|
* Lists all directories in a given path.
|
|
177
178
|
* @param directoryPath Path to scan for directories
|
|
@@ -622,6 +623,7 @@ type SelectMenuCreateOption = {
|
|
|
622
623
|
};
|
|
623
624
|
type SelectMenuList = StringSelectMenuBuilder | UserSelectMenuBuilder | RoleSelectMenuBuilder | MentionableSelectMenuBuilder | ChannelSelectMenuBuilder;
|
|
624
625
|
declare class SelectMenuManager {
|
|
626
|
+
static isSelectMenuList(comp: any): comp is SelectMenuList;
|
|
625
627
|
/**
|
|
626
628
|
* Creates base StringSelectMenu - SIMPLE API !
|
|
627
629
|
*/
|