this code sends an embed with server rules. It's set up as a slash command, but you can use it in code for prefix commands and more!
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
await lib.discord.channels['@0.1.1'].messages.create({
"channel_id": `${context.params.event.channel_id}`,
"content": "Hey! π before you chat with anybody from this server please follow out **GUIDELINES** & **RULES** so you can be appropiate, proper, and also kind to others...",
"tts": false,
"embed": {
"type": "rich",
"title": "Just Some Rules - ",
"description": "",
"color": 0x00FFFF,
"fields": [
{
"name": "#1",
"value": "Please be very nice to others and not **MEAN** &\nsuper **UNKIND** :angry:"
},
{
"name": "#2",
"value": "Follow the **RULES** & **GUIDELINES**, also please show respect and **KINDNESS** to other fellow members :thumbs_up:"
},
{
"name": "#3",
"value": "Whatever you do, please dont spam so much in our server, it really **DISRESPECTS** us and it show's us your not following the rules **CORRECTLY**"
}
],
"image": {
"url": "https://cdn.discordapp.com/splashes/831185301900230696/818f87cce53eede749fcc39c5b9473dc.jpg?size=1536",
"height": 0,
"width": 0
}
}
});