Refactor reaction handling and tag response types for improved type safety

- Updated the event handler for message reaction removal to enhance type safety by specifying user types.
- Changed the return type of the buildTagReply function from MessageReplyOptions to InteractionReplyOptions for better compatibility with interaction responses.
- Adjusted embed handling in tag creation and update functions to use undefined instead of null for consistency.
This commit is contained in:
smueller
2026-07-22 13:08:58 +02:00
parent a583db7a15
commit 8ec9b94879
2 changed files with 4 additions and 4 deletions

View File

@@ -104,7 +104,7 @@ export function registerSelfRoleEvents(client: Client, context: BotContext): voi
}
});
client.on(Events.MessageReactionRemove, async (reaction: PartialMessageReaction, user: PartialUser) => {
client.on(Events.MessageReactionRemove, async (reaction, user: User | PartialUser) => {
try {
if (user.bot || !reaction.message.guildId) {
return;