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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user