let members introduce yourself in your server by adding this snippet to your project! create a command in the command builder with 2 strings of your choice! you can change the channel id to send the introductions to in line 25, it also has random embed colors! enjoy! :D
//snippet made by LukeBot144#3364
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
//avatar
let ID = context.params.event.member.user.id;
let avatar = context.params.event.member.user.avatar;
//info
let s1 = context.params.event.data.options[0].value;
let s2 = context.params.event.data.options[1].value;
//colors
const color = [
//you may add color hex's here!
0x222020, 0x2424b3, 0xceced9, 0x5cd92a, 0xe30e0e,
];
const randomColor = color[Math.floor(Math.random() * color.length)];
//the message
await lib.discord.channels['@0.3.0'].messages.create({
channel_id: `${context.params.event.channel_id}`, //you may change this to the channel of your choice by pasting the id here!
content: '',
tts: false,
embeds: [
{
type: 'rich',
title: `New Introduction!`,
description: `introducing: **${context.params.event.member.user.username}#${context.params.event.member.user.discriminator}**`,
color: randomColor,
fields: [
{
name: `About Them:`, //you can edit this if you have different strings in the command builder!
value: `${s1}`,
},
{
name: `Their Socials:`, //you can edit this if you have different strings in the command builder!
value: `${s2}`,
},
],
thumbnail: {
url: `https://cdn.discordapp.com/avatars/${ID}/${avatar}`,
height: 0,
width: 0,
},
footer: {
text: `Give them a warm welcome! :D`,
},
},
],
});