aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/Util.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-05-26 21:36:50 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-05-26 21:36:50 -0400
commit0caccda67d97dd74405aa4ece5d3f07e7c7dfc66 (patch)
treeac124c6c059d96f33fdd3bf1cfec282d8792f16b /src/lib/extensions/Util.ts
parent481a157a177e60f023b59e4e9acffc549760db40 (diff)
downloadtanzanite-0caccda67d97dd74405aa4ece5d3f07e7c7dfc66.tar.gz
tanzanite-0caccda67d97dd74405aa4ece5d3f07e7c7dfc66.tar.bz2
tanzanite-0caccda67d97dd74405aa4ece5d3f07e7c7dfc66.zip
some rebranding
Diffstat (limited to 'src/lib/extensions/Util.ts')
-rw-r--r--src/lib/extensions/Util.ts24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/extensions/Util.ts b/src/lib/extensions/Util.ts
index 54df670..7c1d4b2 100644
--- a/src/lib/extensions/Util.ts
+++ b/src/lib/extensions/Util.ts
@@ -1,5 +1,5 @@
import { ClientUtil } from 'discord-akairo';
-import { BotClient } from './BotClient';
+import { BushClient } from './BushClient';
import { promisify } from 'util';
import { exec } from 'child_process';
import got from 'got';
@@ -57,9 +57,9 @@ export interface SlashCommandOption<T> {
export class Util extends ClientUtil {
/**
* The client of this ClientUtil
- * @type {BotClient}
+ * @type {BushClient}
*/
- public client: BotClient;
+ public client: BushClient;
/**
* The hastebin urls used to post to hastebin, attempts to post in order
* @type {string[]}
@@ -83,7 +83,7 @@ export class Util extends ClientUtil {
* Creates this client util
* @param client The client to initialize with
*/
- constructor(client: BotClient) {
+ constructor(client: BushClient) {
super(client);
}
@@ -273,14 +273,14 @@ export class Util extends ClientUtil {
}
}
- for (const [, botCommand] of this.client.commandHandler.modules) {
- if (botCommand.execSlash) {
- const found = registered.find((i) => i.name == botCommand.id);
+ for (const [, BushCommand] of this.client.commandHandler.modules) {
+ if (BushCommand.execSlash) {
+ const found = registered.find((i) => i.name == BushCommand.id);
const slashdata = {
- name: botCommand.id,
- description: botCommand.description.content,
- options: botCommand.options.slashCommandOptions
+ name: BushCommand.id,
+ description: BushCommand.description.content,
+ options: BushCommand.options.slashCommandOptions
};
if (found?.id && !force) {
@@ -292,7 +292,7 @@ export class Util extends ClientUtil {
)
: fetchedGuild.commands.edit(found.id, slashdata);
this.client.logger.verbose(
- chalk`{yellow Edited slash command ${botCommand.id}${
+ chalk`{yellow Edited slash command ${BushCommand.id}${
guild !== undefined ? ` in guild ${fetchedGuild.name}` : ''
}}`
);
@@ -302,7 +302,7 @@ export class Util extends ClientUtil {
? await this.client.application.commands.create(slashdata)
: fetchedGuild.commands.create(slashdata);
this.client.logger.verbose(
- chalk`{green Created slash command ${botCommand.id}${
+ chalk`{green Created slash command ${BushCommand.id}${
guild !== undefined ? ` in guild ${fetchedGuild.name}` : ''
}}`
);