mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-06-07 16:05:01 +00:00
Various fixes
This commit is contained in:
parent
2c0e4b37ca
commit
cafcc2839e
15 changed files with 45 additions and 68 deletions
|
@ -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 });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue