mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -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,3 +1,5 @@
|
|||
const { acknowledge } = require("#utils/interactions");
|
||||
|
||||
module.exports = {
|
||||
label: "text",
|
||||
name: "say",
|
||||
|
@ -11,7 +13,8 @@ module.exports = {
|
|||
onBefore: context => context.user.isClientOwner,
|
||||
onCancel: ()=>{},
|
||||
run: async (context, args) => {
|
||||
await context.triggerTyping();
|
||||
await acknowledge(context);
|
||||
|
||||
if(context.message.canDelete) context.message.delete();
|
||||
await context.reply({
|
||||
content: args.text,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue