mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
unify typing logic for a more consistent experience
This commit is contained in:
parent
d2aeecf70d
commit
1ca74d3c2c
67 changed files with 240 additions and 109 deletions
|
@ -1,4 +1,5 @@
|
|||
const { createEmbed } = require("#utils/embed");
|
||||
const { acknowledge } = require("#utils/interactions");
|
||||
const { editOrReply } = require("#utils/message");
|
||||
const { getTestConfig } = require("#utils/testing");
|
||||
|
||||
|
@ -14,7 +15,8 @@ module.exports = {
|
|||
onBefore: context => context.user.isClientOwner,
|
||||
onCancel: ()=>{},
|
||||
run: async (context, args) => {
|
||||
await context.triggerTyping();
|
||||
await acknowledge(context);
|
||||
|
||||
let c = await getTestConfig();
|
||||
return await editOrReply(context, createEmbed("success", context, "Refreshed configs (v"+c.revision+")."));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue