An example prefix command to "-report" a user. The bot will send a DM alerting a admin you just have to put their recipient_id so it will send it to whoever ID you put.
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
if (context.params.event.content.startsWith('-report')) {
let user = context.params.event.mentions[0].id;
if (context.params.event.mentions.length === 1) {
let reason =
context.params.event.content.split(' ').slice(2).join(' ') ||
'Reason for reporting him/her not provided';
await lib.discord.users['@0.1.5'].dms.create({
recipient_id: ``, //Please provide
content: `<@!${user}>` + reason,
});
}
}
//if you wish to add more people to DM for this just copy the command//