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
|
@ -7,7 +7,8 @@ const { editOrReply } = require("#utils/message");
|
|||
const { DiscordRegexNames } = require("detritus-client/lib/constants");
|
||||
const { Utils } = require("detritus-client");
|
||||
|
||||
const superagent = require('superagent')
|
||||
const superagent = require('superagent');
|
||||
const { acknowledge } = require("#utils/interactions");
|
||||
|
||||
module.exports = {
|
||||
label: 'code',
|
||||
|
@ -24,7 +25,7 @@ module.exports = {
|
|||
],
|
||||
permissionsClient: [...PERMISSION_GROUPS.baseline],
|
||||
run: async (context, args) => {
|
||||
context.triggerTyping();
|
||||
await acknowledge(context);
|
||||
|
||||
if(!args.code) return editOrReply(context, createEmbed("warning", context, "No code provided."))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue