mirror of
https://github.com/DarthKilroy/Spot.git
synced 2025-12-24 04:36:49 +00:00
Added commands, fixed descriptions and titles
This commit is contained in:
parent
8ae81f1cc6
commit
3ef02c33bd
6 changed files with 157 additions and 4 deletions
39
model/command/custom-fields.js
Normal file
39
model/command/custom-fields.js
Normal 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();
|
||||
Loading…
Add table
Add a link
Reference in a new issue