galactic-bot/structure/client/components/commands/information/PrivacyPolicy.js

41 lines
1.2 KiB
JavaScript

const { Command } = require('../../../../interfaces/');
class PrivacyPolicyCommand extends Command {
constructor(client) {
super(client, {
name: 'privacyPolicy',
module: 'information',
aliases: ['privacy'],
clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS']
});
}
async execute(message) {
const embed = {
author: {
name: 'Privacy Policy',
icon_url: this.client.user.displayAvatarURL() //eslint-disable-line camelcase
},
description: message.format('C_PRIVACYPOLICY_PRIVACYDESCRIPTION', { invite: this.client._options.bot.invite }),
fields: [
{
name: 'Data We Collect',
value: message.format('C_PRIVACYPOLICY_DATA', { invite: this.client._options.bot.invite }),
inline: true
},
{
name: 'Opt-Out Features',
value: message.format('C_PRIVACYPOLICY_OPTOUT'),
inline: true
}
]
};
return message.embed(embed);
}
}
module.exports = PrivacyPolicyCommand;