diff --git a/bot.ts b/bot.ts index f4aeb3c90..c42682cdf 100644 --- a/bot.ts +++ b/bot.ts @@ -483,6 +483,7 @@ export interface EventHandlers { messageId: bigint; guildId?: bigint; member?: Member; + user?: User; emoji: Emoji; }, ) => any; diff --git a/handlers/messages/MESSAGE_REACTION_ADD.ts b/handlers/messages/MESSAGE_REACTION_ADD.ts index ff4f3bef8..9d14b2a1a 100644 --- a/handlers/messages/MESSAGE_REACTION_ADD.ts +++ b/handlers/messages/MESSAGE_REACTION_ADD.ts @@ -12,6 +12,7 @@ export async function handleMessageReactionAdd(bot: Bot, data: DiscordGatewayPay messageId: bot.transformers.snowflake(payload.message_id), guildId, member: payload.member && guildId ? bot.transformers.member(bot, payload.member, guildId, userId) : undefined, + user: payload.member ? bot.transformers.user(bot, payload.member.user) : undefined, emoji: bot.transformers.emoji(bot, payload.emoji), }); } diff --git a/util/constants.ts b/util/constants.ts index 0f3f8c2e8..453ff2f52 100644 --- a/util/constants.ts +++ b/util/constants.ts @@ -9,7 +9,7 @@ export const GATEWAY_VERSION = 10; // TODO: update this version /** https://github.com/discordeno/discordeno/releases */ -export const DISCORDENO_VERSION = "13.0.0-rc23"; +export const DISCORDENO_VERSION = "13.0.0-rc24"; /** https://discord.com/developers/docs/reference#user-agent */ export const USER_AGENT = `DiscordBot (https://github.com/discordeno/discordeno, v${DISCORDENO_VERSION})`;