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,7 +1,8 @@
|
|||
const { PERMISSION_GROUPS } = require('#constants');
|
||||
const { webAsk } = require('#obelisk');
|
||||
|
||||
const { createEmbed } = require('#utils/embed')
|
||||
const { createEmbed } = require('#utils/embed');
|
||||
const { acknowledge } = require('#utils/interactions');
|
||||
const { iconPill, smallIconPill } = require('#utils/markdown')
|
||||
const { editOrReply } = require('#utils/message')
|
||||
const { STATIC_ICONS } = require('#utils/statics');
|
||||
|
@ -23,7 +24,7 @@ module.exports = {
|
|||
permissionsClient: [...PERMISSION_GROUPS.baseline],
|
||||
run: async (context, args) => {
|
||||
if(!await hasFeature(context, "flamingo/summary")) return;
|
||||
context.triggerTyping();
|
||||
await acknowledge(context);
|
||||
|
||||
if(!args.text) return editOrReply(context, createEmbed("warning", context, "You need to ask a question."))
|
||||
if(!context.message.messageReference) return editOrReply(context, createEmbed("warning", context, "You need to reply to a message containing a link."))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue