mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
31 lines
962 B
JavaScript
31 lines
962 B
JavaScript
const { Command } = require('discord.js-commando');
|
|
const { MessageEmbed } = require('discord.js');
|
|
const { stripIndents } = require('common-tags');
|
|
|
|
module.exports = class NitroCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'nitro',
|
|
aliases: ['discord-nitro', 'nitro-message', 'nitro-msg'],
|
|
group: 'single-res',
|
|
memberName: 'nitro',
|
|
description: 'Sends the "This message can only be viewed by users with Discord Nitro." message.',
|
|
clientPermissions: ['EMBED_LINKS']
|
|
});
|
|
}
|
|
|
|
run(msg) {
|
|
const embed = new MessageEmbed()
|
|
.setAuthor('Discord Nitro', 'https://i.imgur.com/DKaY8fV.jpg')
|
|
.setURL('https://discordapp.com/nitro')
|
|
.setThumbnail('https://i.imgur.com/DKaY8fV.jpg')
|
|
.setColor(0x8395D3)
|
|
.setTimestamp()
|
|
.setDescription(stripIndents`
|
|
This message can only be viewed by users with Discord Nitro.
|
|
[More Information](https://discordapp.com/nitro)
|
|
`);
|
|
return msg.embed(embed);
|
|
}
|
|
};
|