zumito-framework 1.1.65 → 1.1.66
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.
|
@@ -7,7 +7,7 @@ export declare class MessageCreate extends FrameworkEvent {
|
|
|
7
7
|
autocorrect(str: string, words: string[]): any;
|
|
8
8
|
getErrorEmbed(error: any, parse: any): {
|
|
9
9
|
embeds: EmbedBuilder[];
|
|
10
|
-
components: ActionRowBuilder<import("
|
|
10
|
+
components: ActionRowBuilder<import("@discordjs/builders").AnyComponentBuilder>[];
|
|
11
11
|
allowedMentions: {
|
|
12
12
|
repliedUser: boolean;
|
|
13
13
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as url from 'url';
|
|
2
|
-
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder, PermissionsBitField, } from 'discord.js';
|
|
2
|
+
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ChannelType, EmbedBuilder, PermissionsBitField, } from 'discord.js';
|
|
3
3
|
import ErrorStackParser from 'error-stack-parser';
|
|
4
4
|
import { FrameworkEvent } from '../../../types/FrameworkEvent.js';
|
|
5
5
|
import { ZumitoFramework } from '../../../ZumitoFramework.js';
|
|
@@ -141,7 +141,9 @@ export class MessageCreate extends FrameworkEvent {
|
|
|
141
141
|
message.reply(content);
|
|
142
142
|
}
|
|
143
143
|
catch (e) {
|
|
144
|
-
channel.
|
|
144
|
+
if (channel.type !== ChannelType.GuildStageVoice) {
|
|
145
|
+
channel.send(content);
|
|
146
|
+
}
|
|
145
147
|
}
|
|
146
148
|
}
|
|
147
149
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -19,4 +19,5 @@ import { TextFormatter } from './utils/TextFormatter.js';
|
|
|
19
19
|
import { Translation } from './types/Translation.js';
|
|
20
20
|
import { TranslationManager } from './TranslationManager.js';
|
|
21
21
|
import { ZumitoFramework } from './ZumitoFramework.js';
|
|
22
|
-
|
|
22
|
+
import * as discord from 'discord.js';
|
|
23
|
+
export { ZumitoFramework, FrameworkSettings, Command, Module, CommandParameters, CommandArguments, FrameworkEvent, Translation, TranslationManager, ApiResponse, SelectMenuParameters, CommandType, CommandArgDefinition, CommandChoiceDefinition, ButtonPressed, ButtonPressedParams, TextFormatter, EmojiFallback, DatabaseConfigLoader, DatabaseModel, PresenceDataRule, RuledPresenceData, StatusManagerOptions, discord, };
|
package/dist/index.js
CHANGED
|
@@ -12,4 +12,5 @@ import { TextFormatter } from './utils/TextFormatter.js';
|
|
|
12
12
|
import { Translation } from './types/Translation.js';
|
|
13
13
|
import { TranslationManager } from './TranslationManager.js';
|
|
14
14
|
import { ZumitoFramework } from './ZumitoFramework.js';
|
|
15
|
-
|
|
15
|
+
import * as discord from 'discord.js';
|
|
16
|
+
export { ZumitoFramework, Command, Module, CommandArguments, FrameworkEvent, Translation, TranslationManager, ApiResponse, CommandType, ButtonPressed, TextFormatter, EmojiFallback, DatabaseConfigLoader, DatabaseModel, discord, };
|
package/dist/types/Module.js
CHANGED
|
@@ -3,7 +3,7 @@ import chalk from 'chalk';
|
|
|
3
3
|
import boxen from 'boxen';
|
|
4
4
|
import * as fs from 'fs';
|
|
5
5
|
import path from 'path';
|
|
6
|
-
import { ButtonInteraction, CommandInteraction,
|
|
6
|
+
import { ButtonInteraction, CommandInteraction, StringSelectMenuInteraction, } from 'discord.js';
|
|
7
7
|
export class Module {
|
|
8
8
|
path;
|
|
9
9
|
framework;
|
|
@@ -135,7 +135,7 @@ export class Module {
|
|
|
135
135
|
args.forEach((arg) => {
|
|
136
136
|
finalArgs[arg.constructor.name.toLowerCase()] = arg;
|
|
137
137
|
});
|
|
138
|
-
const interaction = args.find((arg) => arg instanceof
|
|
138
|
+
const interaction = args.find((arg) => arg instanceof StringSelectMenuInteraction ||
|
|
139
139
|
arg instanceof CommandInteraction ||
|
|
140
140
|
arg instanceof ButtonInteraction);
|
|
141
141
|
if (interaction) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zumito-framework",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.66",
|
|
4
4
|
"description": "Discord.js bot framework",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"chokidar": "^3.5.3",
|
|
30
30
|
"cookie-parser": "^1.4.6",
|
|
31
31
|
"cors": "^2.8.5",
|
|
32
|
-
"discord.js": "^14.
|
|
32
|
+
"discord.js": "^14.9.0",
|
|
33
33
|
"error-stack-parser": "^2.1.4",
|
|
34
34
|
"express": "^4.18.1",
|
|
35
35
|
"leven": "^4.0.0",
|