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,5 +1,6 @@
|
|||
const { PERMISSION_GROUPS } = require('#constants');
|
||||
const { createEmbed } = require('#utils/embed')
|
||||
const { createEmbed } = require('#utils/embed');
|
||||
const { acknowledge } = require('#utils/interactions');
|
||||
const { editOrReply } = require('#utils/message')
|
||||
|
||||
module.exports = {
|
||||
|
@ -13,7 +14,8 @@ module.exports = {
|
|||
},
|
||||
permissionsClient: [...PERMISSION_GROUPS.baseline],
|
||||
run: async (context) => {
|
||||
context.triggerTyping();
|
||||
await acknowledge(context);
|
||||
|
||||
if (!context.guild.iconUrl) return editOrReply(context, createEmbed("warning", context, "Server doesn't have an icon."))
|
||||
return editOrReply(context, createEmbed("default", context, {
|
||||
image: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue