mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
a lot of thingssss
This commit is contained in:
parent
eb0ba140f3
commit
726861294b
14 changed files with 420 additions and 24 deletions
25
commands/message/info/avatar.js
Normal file
25
commands/message/info/avatar.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
const { createEmbed } = require("../../../labscore/utils/embed");
|
||||
const { editOrReply } = require("../../../labscore/utils/message");
|
||||
const { getUser } = require("../../../labscore/utils/users");
|
||||
|
||||
module.exports = {
|
||||
name: 'avatar',
|
||||
label: 'user',
|
||||
aliases: ['a'],
|
||||
metadata: {
|
||||
description: 'avatar',
|
||||
examples: ['avatar labsCore'],
|
||||
category: 'info',
|
||||
usage: 'avatar [<id|user>]'
|
||||
},
|
||||
run: async (context, args) => {
|
||||
let u;
|
||||
if(!args.user) { u = context.user } else { u = await getUser(context, args.user) }
|
||||
if(!u) return editOrReply(context, { embeds: [createEmbed("warning", context, "No users found.")] })
|
||||
return editOrReply(context, { embeds: [createEmbed("default", context, {
|
||||
image: {
|
||||
url: u.avatarUrl + '?size=4096'
|
||||
}
|
||||
})] })
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue