mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 03:14:35 +02:00
Updates
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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',
|
||||
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);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user