aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info
diff options
context:
space:
mode:
authorTymanWasTaken <tyman@tyman.tech>2021-05-16 22:03:18 -0400
committerTymanWasTaken <tyman@tyman.tech>2021-05-16 22:03:18 -0400
commit759e93bec4e9e2eb86db7434007345c24b0a0252 (patch)
tree193c47e5dfc6bcce0f4923ea0d2f8f7ce2e5894a /src/commands/info
parent284e1d1d693486f6c50cdb8b38f01cdf74eb63d2 (diff)
downloadtanzanite-759e93bec4e9e2eb86db7434007345c24b0a0252.tar.gz
tanzanite-759e93bec4e9e2eb86db7434007345c24b0a0252.tar.bz2
tanzanite-759e93bec4e9e2eb86db7434007345c24b0a0252.zip
fix logging for slash command syncing v2, delete BotMessage and BotGuild because useless, add prefix slash command
Diffstat (limited to 'src/commands/info')
-rw-r--r--src/commands/info/botinfo.ts5
-rw-r--r--src/commands/info/help.ts3
-rw-r--r--src/commands/info/ping.ts3
3 files changed, 4 insertions, 7 deletions
diff --git a/src/commands/info/botinfo.ts b/src/commands/info/botinfo.ts
index 27e14c4..306c142 100644
--- a/src/commands/info/botinfo.ts
+++ b/src/commands/info/botinfo.ts
@@ -1,7 +1,6 @@
-import { MessageEmbed } from 'discord.js';
+import { MessageEmbed, Message } from 'discord.js';
import { BotCommand } from '../../lib/extensions/BotCommand';
import { duration } from 'moment';
-import { BotMessage } from '../../lib/extensions/BotMessage';
export default class BotInfoCommand extends BotCommand {
constructor() {
@@ -15,7 +14,7 @@ export default class BotInfoCommand extends BotCommand {
});
}
- public async exec(message: BotMessage): Promise<void> {
+ public async exec(message: Message): Promise<void> {
const owners = (await this.client.util.mapIDs(this.client.ownerID))
.map((u) => u.tag)
.join('\n');
diff --git a/src/commands/info/help.ts b/src/commands/info/help.ts
index 4aa45e0..73dcdbb 100644
--- a/src/commands/info/help.ts
+++ b/src/commands/info/help.ts
@@ -1,7 +1,6 @@
import { Message, MessageEmbed } from 'discord.js';
import { BotCommand } from '../../lib/extensions/BotCommand';
import { stripIndent } from 'common-tags';
-import { BotMessage } from '../../lib/extensions/BotMessage';
export default class HelpCommand extends BotCommand {
constructor() {
@@ -23,7 +22,7 @@ export default class HelpCommand extends BotCommand {
}
public async exec(
- message: BotMessage,
+ message: Message,
{ command }: { command: BotCommand }
): Promise<Message> {
const prefix = this.handler.prefix;
diff --git a/src/commands/info/ping.ts b/src/commands/info/ping.ts
index 7f8ab6b..e51867f 100644
--- a/src/commands/info/ping.ts
+++ b/src/commands/info/ping.ts
@@ -2,7 +2,6 @@ import { CommandInteraction } from 'discord.js';
import { Message } from 'discord.js';
import { MessageEmbed } from 'discord.js';
import { BotCommand } from '../../lib/extensions/BotCommand';
-import { BotMessage } from '../../lib/extensions/BotMessage';
export default class PingCommand extends BotCommand {
constructor() {
@@ -16,7 +15,7 @@ export default class PingCommand extends BotCommand {
});
}
- public async exec(message: BotMessage): Promise<void> {
+ public async exec(message: Message): Promise<void> {
const sentMessage = await message.util.send('Pong!');
const timestamp: number = message.editedTimestamp
? message.editedTimestamp