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

40 lines
1.1 KiB
JavaScript
Raw Normal View History

const { Command } = require('../../../../interfaces/');
class PrivacyPolicyCommand extends Command {
constructor(client) {
super(client, {
name: 'privacyPolicy',
module: 'information',
aliases: ['privacy']
});
}
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;