seyfert 2.1.1-dev-11711415950.0 → 2.1.1-dev-11727465603.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.
|
@@ -4,7 +4,7 @@ import { BaseHandler } from '../common';
|
|
|
4
4
|
import { type APIApplicationCommandOption, type LocalizationMap } from '../types';
|
|
5
5
|
import { Command, type CommandOption, SubCommand } from './applications/chat';
|
|
6
6
|
import { ContextMenuCommand } from './applications/menu';
|
|
7
|
-
import type
|
|
7
|
+
import { type UsingClient } from './applications/shared';
|
|
8
8
|
export declare class CommandHandler extends BaseHandler {
|
|
9
9
|
protected logger: Logger;
|
|
10
10
|
protected client: UsingClient;
|
package/lib/commands/handler.js
CHANGED
|
@@ -8,6 +8,7 @@ const Permissions_1 = require("../structures/extra/Permissions");
|
|
|
8
8
|
const types_1 = require("../types");
|
|
9
9
|
const chat_1 = require("./applications/chat");
|
|
10
10
|
const menu_1 = require("./applications/menu");
|
|
11
|
+
const shared_1 = require("./applications/shared");
|
|
11
12
|
class CommandHandler extends common_1.BaseHandler {
|
|
12
13
|
logger;
|
|
13
14
|
client;
|
|
@@ -143,6 +144,8 @@ class CommandHandler extends common_1.BaseHandler {
|
|
|
143
144
|
}
|
|
144
145
|
async shouldUpload(file, guildId) {
|
|
145
146
|
const values = this.values.filter(x => {
|
|
147
|
+
if ('ignore' in x && x.ignore === shared_1.IgnoreCommand.Slash)
|
|
148
|
+
return false;
|
|
146
149
|
if (!guildId)
|
|
147
150
|
return !x.guildId;
|
|
148
151
|
return x.guildId?.includes(guildId);
|