3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-06-07 16:05:01 +00:00

Various fixes

This commit is contained in:
Lily Bergonzat 2024-02-17 18:16:53 +01:00
parent 2c0e4b37ca
commit cafcc2839e
15 changed files with 45 additions and 68 deletions

View file

@ -36,11 +36,11 @@ export async function waitForButtonConfirm(
const sendMethod = () => {
return contextIsInteraction
? context.replied
? context.followUp
: context.reply
? context.followUp.bind(context)
: context.reply.bind(context)
: "send" in context
? context.send
: context.channel.send;
? context.send.bind(context)
: context.channel.send.bind(context.channel);
};
const extraParameters = contextIsInteraction ? { fetchReply: true } : {};
const message = await sendMethod()({ ...toPost, components: [row], ...extraParameters });