mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
30 lines
No EOL
722 B
JavaScript
30 lines
No EOL
722 B
JavaScript
const { createEmbed } = require('#utils/embed');
|
|
const { editOrReply } = require('#utils/message');
|
|
|
|
const { InteractionCallbackTypes, ApplicationCommandTypes } = require('detritus-client/lib/constants');
|
|
|
|
module.exports = {
|
|
name: 'View 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)
|
|
}
|
|
},
|
|
}; |