aboutsummaryrefslogtreecommitdiff
path: root/src/listeners
diff options
context:
space:
mode:
Diffstat (limited to 'src/listeners')
-rw-r--r--src/listeners/interaction/button.ts0
-rw-r--r--src/listeners/interaction/interactionCreate.ts (renamed from src/listeners/client/interactionCreate.ts)7
2 files changed, 4 insertions, 3 deletions
diff --git a/src/listeners/interaction/button.ts b/src/listeners/interaction/button.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/listeners/interaction/button.ts
diff --git a/src/listeners/client/interactionCreate.ts b/src/listeners/interaction/interactionCreate.ts
index d123e09..6916134 100644
--- a/src/listeners/client/interactionCreate.ts
+++ b/src/listeners/interaction/interactionCreate.ts
@@ -1,11 +1,12 @@
-import { AutoMod, BushInteractionType, BushListener, type BushButtonInteraction, type BushClientEvents } from '#lib';
+import { AutoMod, BushListener, type BushButtonInteraction, type BushClientEvents } from '#lib';
+import { InteractionType } from 'discord-api-types/v9';
export default class InteractionCreateListener extends BushListener {
public constructor() {
super('interactionCreate', {
emitter: 'client',
event: 'interactionCreate',
- category: 'client'
+ category: 'interaction'
});
}
@@ -14,7 +15,7 @@ export default class InteractionCreateListener extends BushListener {
if ('customId' in interaction && (interaction as any)['customId'].startsWith('test')) return;
void client.console.verbose(
'interactionVerbose',
- `An interaction of type <<${BushInteractionType[interaction.type]}>> was received from <<${interaction.user.tag}>>.`
+ `An interaction of type <<${InteractionType[interaction.type]}>> was received from <<${interaction.user.tag}>>.`
);
if (interaction.isCommand()) {
return;