aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/client
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-26 18:47:13 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-26 18:47:13 -0400
commit80d5b5b11ae261945dc725a0a80115922003afcf (patch)
tree16c9f251b4d53456b4b5340c0203d35fd5870859 /src/listeners/client
parentcca0b7a03bcd61af12b7f9bff51276f6c70beeb3 (diff)
downloadtanzanite-80d5b5b11ae261945dc725a0a80115922003afcf.tar.gz
tanzanite-80d5b5b11ae261945dc725a0a80115922003afcf.tar.bz2
tanzanite-80d5b5b11ae261945dc725a0a80115922003afcf.zip
refactor: this.client -> client
Diffstat (limited to 'src/listeners/client')
-rw-r--r--src/listeners/client/interactionCreate.ts2
-rw-r--r--src/listeners/client/ready.ts10
2 files changed, 6 insertions, 6 deletions
diff --git a/src/listeners/client/interactionCreate.ts b/src/listeners/client/interactionCreate.ts
index 77912d6..41905f7 100644
--- a/src/listeners/client/interactionCreate.ts
+++ b/src/listeners/client/interactionCreate.ts
@@ -13,7 +13,7 @@ export default class InteractionCreateListener extends BushListener {
async exec(...[interaction]: ClientEvents['interactionCreate']): Promise<unknown> {
if (!interaction) return;
if (interaction.isCommand()) {
- this.client.console.info(
+ client.console.info(
'SlashCommand',
`The <<${interaction.commandName}>> command was used by <<${interaction.user.tag}>> in <<${
interaction.channel.type == 'DM' ? interaction.channel.recipient + 's DMs' : interaction.channel.name
diff --git a/src/listeners/client/ready.ts b/src/listeners/client/ready.ts
index b5d0e25..9c04aea 100644
--- a/src/listeners/client/ready.ts
+++ b/src/listeners/client/ready.ts
@@ -10,15 +10,15 @@ export default class ReadyListener extends BushListener {
}
public async exec(): Promise<void> {
- const tag = `<<${this.client.user.tag}>>`,
- guildCount = `<<${this.client.guilds.cache.size.toLocaleString()}>>`,
- userCount = `<<${this.client.users.cache.size.toLocaleString()}>>`;
+ const tag = `<<${client.user.tag}>>`,
+ guildCount = `<<${client.guilds.cache.size.toLocaleString()}>>`,
+ userCount = `<<${client.users.cache.size.toLocaleString()}>>`;
- this.client.logger.success('Ready', `Logged in to ${tag} serving ${guildCount} guilds and ${userCount} users.`);
+ client.logger.success('Ready', `Logged in to ${tag} serving ${guildCount} guilds and ${userCount} users.`);
console.log(
chalk.blue(
`------------------------------------------------------------------------------${
- this.client.config.isDevelopment ? '---' : this.client.config.isBeta ? '----' : ''
+ client.config.isDevelopment ? '---' : client.config.isBeta ? '----' : ''
}`
)
);