aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/listeners/client')
-rw-r--r--src/listeners/client/interactionCreate.ts7
-rw-r--r--src/listeners/client/ready.ts12
2 files changed, 5 insertions, 14 deletions
diff --git a/src/listeners/client/interactionCreate.ts b/src/listeners/client/interactionCreate.ts
index 63775dd..7dc20ec 100644
--- a/src/listeners/client/interactionCreate.ts
+++ b/src/listeners/client/interactionCreate.ts
@@ -1,6 +1,5 @@
-import { BushListener, BushMessage } from '@lib';
+import { BushListener } from '@lib';
import { ClientEvents } from 'discord.js';
-import ViewRawCommand from '../../commands/utilities/viewraw';
export default class InteractionCreateListener extends BushListener {
public constructor() {
@@ -37,7 +36,7 @@ export default class InteractionCreateListener extends BushListener {
}.`,
ephemeral: true
});
- } else if (interaction.isContextMenu()) {
+ } /* else if (interaction.isContextMenu()) {
if (interaction.commandName === 'View Raw') {
await interaction.deferReply({ ephemeral: true });
const embed = await ViewRawCommand.getRawData(interaction.options.getMessage('message') as BushMessage, {
@@ -46,6 +45,6 @@ export default class InteractionCreateListener extends BushListener {
});
return await interaction.editReply({ embeds: [embed] });
}
- }
+ } */
}
}
diff --git a/src/listeners/client/ready.ts b/src/listeners/client/ready.ts
index 89c9161..5806f7f 100644
--- a/src/listeners/client/ready.ts
+++ b/src/listeners/client/ready.ts
@@ -5,7 +5,8 @@ export default class ReadyListener extends BushListener {
public constructor() {
super('ready', {
emitter: 'client',
- event: 'ready'
+ event: 'ready',
+ type: 'once'
});
}
@@ -22,14 +23,5 @@ export default class ReadyListener extends BushListener {
}`
)
);
-
- setTimeout(
- // eslint-disable-next-line @typescript-eslint/no-misused-promises
- async () =>
- await client.application?.commands
- .create({ name: 'View Raw', type: 'MESSAGE' })
- .catch((e) => client.console.error(`Ready`, e?.stack ?? e)),
- 2_000
- );
}
}