Retrieve your information with this prefix command. Type *myinfo in any channel.
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
await lib.discord.channels['@0.2.0'].messages.create({
"channel_id": `${context.params.event.channel_id}`,
"content": "",
"tts": false,
"embeds": [
{
"type": "rich",
"title": `User information`,
"description": `Get some informations about you below!`,
"color": 0xFffff,
"fields": [
{
"name": `User name`,
"value": `${context.params.event.author.username}`
},
{
"name": `User discriminator`,
"value": `${context.params.event.author.discriminator}`
},
{
"name": `User ID`,
"value": `${context.params.event.author.id}`
},
{
"name": `Public flags`,
"value": `${context.params.event.author.public_flags}`
}
],
"thumbnail": {
"url": `https://cdn.discordapp.com/avatars/${context.params.event.author.id}/${context.params.event.author.avatar}.png?size=1024`,
"height": 0,
"width": 0
},
"footer": {
"text": `Autocode β’οΈ`,
"icon_url": `https://cdn.discordapp.com/emojis/831239843027615835.png?v=1&size=40`
}
}
]
});