mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-14 00:08:06 +02:00
Destructuring is Nice
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const commando = require('discord.js-commando');
|
||||
const Discord = require('discord.js');
|
||||
const { Command } = require('discord.js-commando');
|
||||
const { RichEmbed } = require('discord.js');
|
||||
|
||||
module.exports = class NitroCommand extends commando.Command {
|
||||
module.exports = class NitroCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'nitro',
|
||||
@@ -17,7 +17,7 @@ module.exports = class NitroCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
||||
}
|
||||
const embed = new Discord.RichEmbed()
|
||||
const embed = new RichEmbed()
|
||||
.setAuthor('Discord Nitro')
|
||||
.setThumbnail('https://pbs.twimg.com/profile_images/814184180649197568/y2eZcVMq.jpg')
|
||||
.setColor(0x748BD9)
|
||||
|
||||
Reference in New Issue
Block a user