mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-06-07 16:05:01 +00:00
Added slash command deferral to avoid timeouts
This commit is contained in:
parent
ee861bb5e9
commit
408f1b9c30
22 changed files with 32 additions and 3 deletions
|
@ -76,7 +76,7 @@ export const CommonPlugin = zeppelinGuildPlugin<CommonPluginType>()({
|
|||
});
|
||||
}
|
||||
|
||||
const replyMethod = context.replied ? "editReply" : "reply";
|
||||
const replyMethod = context.replied || context.deferred ? "editReply" : "reply";
|
||||
|
||||
return context[replyMethod]({
|
||||
content: formattedBody,
|
||||
|
@ -127,7 +127,7 @@ export const CommonPlugin = zeppelinGuildPlugin<CommonPluginType>()({
|
|||
});
|
||||
}
|
||||
|
||||
const replyMethod = context.replied ? "editReply" : "reply";
|
||||
const replyMethod = context.replied || context.deferred ? "editReply" : "reply";
|
||||
|
||||
return context[replyMethod]({
|
||||
content: formattedBody,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue