mirror of
https://github.com/DarthKilroy/Spot.git
synced 2025-12-24 12:46:48 +00:00
Added definitions
This commit is contained in:
parent
53fb1a7169
commit
774c66eb83
7 changed files with 327 additions and 0 deletions
52
model/command/add-set-front.js
Normal file
52
model/command/add-set-front.js
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
const { MessageEmbed } = require('discord.js');
|
||||
const CommandCategory = require('../command-category');
|
||||
const CommandPermission = require('../command-permission');
|
||||
|
||||
class AddSetFront
|
||||
{
|
||||
static instance = null;
|
||||
|
||||
constructor() {
|
||||
if (AddSetFront.instance !== null) {
|
||||
return AddSetFront.instance;
|
||||
}
|
||||
|
||||
this.aliases = [
|
||||
'addsetfront',
|
||||
'addset-front',
|
||||
'add-setfront',
|
||||
'add-set',
|
||||
'addset',
|
||||
'add-front',
|
||||
'addfront',
|
||||
'set-front',
|
||||
'setfront',
|
||||
'asf',
|
||||
];
|
||||
this.category = CommandCategory.RESOURCE;
|
||||
this.isAllowedForContext = CommandPermission.yes;
|
||||
this.description = 'Talks about how to set who is fronting in the application.';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Message} message
|
||||
* @param {Array} args
|
||||
*/
|
||||
async process(message, args) {
|
||||
const embed = new MessageEmbed();
|
||||
|
||||
embed.setColor(APP_MAIN_COLOUR);
|
||||
embed.setAuthor('Add / set front', bot.user.displayAvatarURL({ dynamic: true }));
|
||||
embed.setDescription(
|
||||
'There are two ways in-app to show a member as fronting. Set as front, and add to front.\n' +
|
||||
'\n' +
|
||||
'Using set as front will clear all members from your front list, and then add that member. Add to front ' +
|
||||
'won\'t remove anyone from the list, but it will add the member whose add icon you tapped. You can ' +
|
||||
'individually remove members by tapping the downward facing arrow next to their name.'
|
||||
);
|
||||
|
||||
return message.channel.send(embed);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = new AddSetFront();
|
||||
Loading…
Add table
Add a link
Reference in a new issue