const { Constants } = require('detritus-client'); const { InteractionCallbackTypes, ApplicationCommandTypes } = Constants; const { createEmbed } = require('../../../labscore/utils/embed'); const { editOrReply } = require('../../../labscore/utils/message'); module.exports = { name: 'Get User Avatar', type: ApplicationCommandTypes.USER, contexts: [ 0, 1, 2 ], integrationTypes: [ 1 ], run: async (context, args) => { try{ await context.respond({ data: {}, type: InteractionCallbackTypes.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE }) return editOrReply(context, createEmbed("default", context, { image: { url: args.user.avatarUrl + '?size=4096' } })) }catch(e){ console.log(e) } }, };