mirror of
https://github.com/DarthKilroy/Spot.git
synced 2025-12-23 20:26:49 +00:00
Added definitions
This commit is contained in:
parent
53fb1a7169
commit
774c66eb83
7 changed files with 327 additions and 0 deletions
40
model/command/add-friend.js
Normal file
40
model/command/add-friend.js
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
const { MessageEmbed } = require('discord.js');
|
||||
const CommandCategory = require('../command-category');
|
||||
const CommandPermission = require('../command-permission');
|
||||
|
||||
class AddFriend
|
||||
{
|
||||
static instance = null;
|
||||
|
||||
constructor() {
|
||||
if (AddFriend.instance !== null) {
|
||||
return AddFriend.instance;
|
||||
}
|
||||
|
||||
this.aliases = ['add-friends', 'addfriends', 'addfriend', 'af'];
|
||||
this.category = CommandCategory.RESOURCE;
|
||||
this.isAllowedForContext = CommandPermission.yes;
|
||||
this.description = 'Explains how to troubleshoot not being able to add a friend.';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Message} message
|
||||
* @param {Array} args
|
||||
*/
|
||||
async process(message, args) {
|
||||
const embed = new MessageEmbed();
|
||||
|
||||
embed.setColor(APP_MAIN_COLOUR);
|
||||
embed.setAuthor('Add friend', bot.user.displayAvatarURL({ dynamic: true }));
|
||||
embed.setDescription(
|
||||
'If you and your friends are unable to add each other as friends, or can\'t find each other as friends, ' +
|
||||
'make sure that you are using a case sensitive username when adding each other. Additionally, it is ' +
|
||||
'currently not possible to add people by their user ID, so if you are using a user id to add them as ' +
|
||||
'friend this currently does not work but will in the future.'
|
||||
);
|
||||
|
||||
return message.channel.send(embed);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = new AddFriend();
|
||||
Loading…
Add table
Add a link
Reference in a new issue