Changes your nickname with !nick <nickname> (Note: It doesn't work for the server owner)
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let nick = context.params.event.content.split(' ').slice(1).join(' ')
if (context.params.event.content.startsWith('!nick')) {
await lib.discord.guilds['@0.1.0'].members.update({
user_id: `${context.params.event.author.id}`,
guild_id: `${context.params.event.guild_id}`,
nick: `${nick}`
});
}