Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Command Guidelines

Matheus Dias edited this page Oct 13, 2019 · 5 revisions

Command Guidelines

Use the SwitchbladeEmbed class for generating embeds.

channel.send( new SwitchbladeEmbed(message.author) .setDescription('This is an embed!') )

Always use the default embed color (automatically provided by SwitchbladeEmbed).


Use async and await instead of .then() whenever possible. Example:

const fetch = require('node-fetch') const { body } = await fetch('https://api.switchblade.xyz/test') channel.send(body.message)