diff options
| author | Fuwn <[email protected]> | 2025-09-28 00:03:12 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-09-28 00:03:12 -0700 |
| commit | 999ba817c68e3dd2b578b27f5f0f527d04be87c7 (patch) | |
| tree | d84ebf1830fb7b35c04129995512ebda4aed4e74 /packages/gateway/src/commands/react.ts | |
| parent | feat(listeners:roleMentionCooldown): Remove expected behaviour logs (diff) | |
| download | umabotdiscord-999ba817c68e3dd2b578b27f5f0f527d04be87c7.tar.xz umabotdiscord-999ba817c68e3dd2b578b27f5f0f527d04be87c7.zip | |
refactor(gateway): Consolidate event handlers
Diffstat (limited to 'packages/gateway/src/commands/react.ts')
| -rw-r--r-- | packages/gateway/src/commands/react.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/gateway/src/commands/react.ts b/packages/gateway/src/commands/react.ts index ef18d8f..639dec6 100644 --- a/packages/gateway/src/commands/react.ts +++ b/packages/gateway/src/commands/react.ts @@ -1,7 +1,6 @@ -import { Client, Events, Message } from "discord.js"; +import { Message } from "discord.js"; -export const handleReactCommand = (client: Client) => { - client.on(Events.MessageCreate, async (message: Message) => { +export const handleReactCommand = async (message: Message) => { if (message.author.bot) return; if (!message.content.startsWith("uma!react")) return; @@ -35,5 +34,4 @@ export const handleReactCommand = (client: Client) => { await message.reply("Failed to react to the message."); } - }); }; |