unify typing logic for a more consistent experience

This commit is contained in:
bignutty 2024-12-08 15:00:18 +01:00
parent d2aeecf70d
commit 1ca74d3c2c
67 changed files with 240 additions and 109 deletions

View file

@ -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,