40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
|
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;
|