Added commands, fixed descriptions and titles

This commit is contained in:
Lily Wonhalf 2021-05-04 21:47:26 -04:00
parent 8ae81f1cc6
commit 3ef02c33bd
6 changed files with 157 additions and 4 deletions

View file

@ -0,0 +1,39 @@
const { MessageEmbed } = require('discord.js');
const CommandCategory = require('../command-category');
const CommandPermission = require('../command-permission');
class CustomFields
{
static instance = null;
constructor() {
if (CustomFields.instance !== null) {
return CustomFields.instance;
}
this.aliases = ['custom-fields', 'customfields', 'customfield', 'cfi'];
this.category = CommandCategory.RESOURCE;
this.isAllowedForContext = CommandPermission.yes;
this.description = 'Talks about the "custom fields" feature.';
}
/**
* @param {Message} message
* @param {Array} args
*/
async process(message, args) {
const embed = new MessageEmbed();
embed.setColor(APP_MAIN_COLOUR);
embed.setAuthor('Custom fields', bot.user.displayAvatarURL({ dynamic: true }));
embed.setDescription(
'The ability to change the fields shown on your member lists is planned. This feature will also bring ' +
'the ability to remove and add fields, as well as make fields private, public, or show them to only ' +
'trusted friends.'
);
return message.channel.send(embed);
}
}
module.exports = new CustomFields();