aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/commands/dev/eval.ts21
-rw-r--r--src/lib/extensions/discord-akairo/BushCommandUtil.ts4
-rw-r--r--src/lib/extensions/discord.js/BushMessage.ts7
3 files changed, 5 insertions, 27 deletions
diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts
index f1509aa..a7e5de6 100644
--- a/src/commands/dev/eval.ts
+++ b/src/commands/dev/eval.ts
@@ -204,28 +204,7 @@ export default class EvalCommand extends BushCommand {
output = 21;
} else {
output = eval(code.js);
- //// const menuRow = new MessageActionRow().addComponents(
- //// new MessageSelectMenu({
- //// customID: 'test',
- //// options: [
- //// { label: '1', value: '1', default: false },
- //// { label: '2', value: '2', default: false },
- //// { label: '3', value: '3', default: false },
- //// { label: '4', value: '4', default: false },
- //// { label: '5', value: '5', default: false },
- //// { label: '6', value: '6', default: false },
- //// { label: '7', value: '7', default: false },
- //// { label: '8', value: '8', default: false },
- //// { label: '9', value: '9', default: false }
- //// ]
- //// })
- //// );
- //// message.channel.send({
- //// content: 'test',
- //// components: [menuRow]
- //// });
output = await output;
- //// this.client.console.debug(inspect(message, { depth: 0, colors: true }));
}
let proto, outputProto;
if (args.show_proto) {
diff --git a/src/lib/extensions/discord-akairo/BushCommandUtil.ts b/src/lib/extensions/discord-akairo/BushCommandUtil.ts
index a1c8036..1e86401 100644
--- a/src/lib/extensions/discord-akairo/BushCommandUtil.ts
+++ b/src/lib/extensions/discord-akairo/BushCommandUtil.ts
@@ -13,10 +13,10 @@ export class BushCommandUtil extends CommandUtil {
public declare handler: BushCommandHandler;
public declare message: BushMessage;
public declare messages?: Collection<Snowflake, BushMessage>;
- public test: string;
+ // public test: string;
public constructor(handler: BushCommandHandler, message: BushMessage) {
super(handler, message);
- this.test = 'abc';
+ // this.test = 'abc';
}
}
diff --git a/src/lib/extensions/discord.js/BushMessage.ts b/src/lib/extensions/discord.js/BushMessage.ts
index db68a19..f7e8cd0 100644
--- a/src/lib/extensions/discord.js/BushMessage.ts
+++ b/src/lib/extensions/discord.js/BushMessage.ts
@@ -1,6 +1,6 @@
import { Message } from 'discord.js';
import { BushClient } from '../discord-akairo/BushClient';
-import { BushCommandUtil } from '../discord-akairo/BushCommandUtil';
+// import { BushCommandUtil } from '../discord-akairo/BushCommandUtil';
import { BushDMChannel } from './BushDMChannel';
import { BushGuild } from './BushGuild';
import { BushGuildMember } from './BushGuildMember';
@@ -11,7 +11,7 @@ import { BushUser } from './BushUser';
export class BushMessage extends Message {
public declare readonly client: BushClient;
- public util: BushCommandUtil;
+ // public util: BushCommandUtil;
public declare readonly guild: BushGuild;
public declare readonly member: BushGuildMember;
public declare author: BushUser;
@@ -22,7 +22,6 @@ export class BushMessage extends Message {
channel: BushTextChannel | BushDMChannel | BushNewsChannel | BushThreadChannel
) {
super(client, data, channel);
- this.util = new BushCommandUtil(this.client.commandHandler, this);
- this.client.console.debug(this.util);
+ // this.util = new BushCommandUtil(this.client.commandHandler, this);
}
}