fix: corregir la referencia del mensaje en sendDisplayReply para cumplir con la nueva API

This commit is contained in:
2025-10-07 11:20:22 -05:00
parent b4737a536f
commit e18caf414d

View File

@@ -516,9 +516,8 @@ export async function promptKeySelection<T>(
export function sendDisplayReply(message: Message, display: any, extraComponents: any[] = []) {
const channel = message.channel as TextBasedChannel & { send: Function };
return (channel.send as any)({
content: null,
flags: 32768,
reply: { messageReference: message.id },
message_reference: { message_id: message.id },
components: [display, ...extraComponents],
});
}