aboutsummaryrefslogtreecommitdiff
path: root/src/listeners
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-03-08 19:37:57 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-03-08 19:37:57 -0500
commitb86a05f4b21c62e18bf669e00646b715a409bdb0 (patch)
tree6d3623c45fd321ade5f8bbf6de37385f43123759 /src/listeners
parent57e47b8b84dee001c65c1ab43833c09fef056a4b (diff)
downloadtanzanite-b86a05f4b21c62e18bf669e00646b715a409bdb0.tar.gz
tanzanite-b86a05f4b21c62e18bf669e00646b715a409bdb0.tar.bz2
tanzanite-b86a05f4b21c62e18bf669e00646b715a409bdb0.zip
feat: misc changes for extentions
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;