mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-16 01:53:08 -04:00
adds incognito mode, fixes /emoji
This commit is contained in:
parent
fbdf212151
commit
e61a604b7c
36 changed files with 401 additions and 127 deletions
|
@ -1,7 +1,8 @@
|
|||
const { createEmbed } = require('#utils/embed');
|
||||
const { acknowledge } = require('#utils/interactions');
|
||||
const { editOrReply } = require('#utils/message');
|
||||
|
||||
const { InteractionCallbackTypes, ApplicationCommandOptionTypes } = require("detritus-client/lib/constants");
|
||||
const { ApplicationCommandOptionTypes } = require("detritus-client/lib/constants");
|
||||
|
||||
module.exports = {
|
||||
description: 'Get someones avatar.',
|
||||
|
@ -20,10 +21,17 @@ module.exports = {
|
|||
description: 'User to get the avatar from.',
|
||||
type: ApplicationCommandOptionTypes.USER,
|
||||
required: false
|
||||
},
|
||||
{
|
||||
name: 'incognito',
|
||||
description: 'Makes the response only visible to you.',
|
||||
type: ApplicationCommandOptionTypes.BOOLEAN,
|
||||
required: false,
|
||||
default: false
|
||||
}
|
||||
],
|
||||
run: async (context, args) => {
|
||||
await context.respond({data: {}, type: InteractionCallbackTypes.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE})
|
||||
await acknowledge(context, args.incognito);
|
||||
|
||||
if(!args.user) return editOrReply(context, createEmbed("default", context, {
|
||||
image: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue