aboutsummaryrefslogtreecommitdiff
path: root/commands/about.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2021-07-31 16:38:15 -0400
committerAndrew Lee <alee14498@protonmail.com>2021-07-31 16:38:15 -0400
commit60cd96e366487b9a422ecc685b46a2b300c32be1 (patch)
tree6e71adf12473ca438f10d7716a27a3f0ffc44c3d /commands/about.js
parent3aa27777a7bd1a9bff798412382db8aad3cbd19a (diff)
downloadAleeBot-60cd96e366487b9a422ecc685b46a2b300c32be1.tar.gz
AleeBot-60cd96e366487b9a422ecc685b46a2b300c32be1.tar.bz2
AleeBot-60cd96e366487b9a422ecc685b46a2b300c32be1.zip
Cleanup; Upgraded to Discord.JS v13; More buttons
Diffstat (limited to 'commands/about.js')
-rw-r--r--commands/about.js28
1 files changed, 13 insertions, 15 deletions
diff --git a/commands/about.js b/commands/about.js
index fa9231d..81f9bf8 100644
--- a/commands/about.js
+++ b/commands/about.js
@@ -18,8 +18,7 @@
*
* *************************************/
module.exports.run = async (client, message) => {
- const { MessageEmbed } = require('discord.js');
- const { MessageButton, MessageActionRow } = require('discord-buttons');
+ const { MessageEmbed, MessageButton, MessageActionRow } = require('discord.js');
const aboutEmbed = new MessageEmbed()
.setAuthor(`AleeBot ${require('../storage/settings.json').abVersion}`, client.user.avatarURL())
@@ -28,20 +27,19 @@ module.exports.run = async (client, message) => {
.setFooter('© Copyright 2017-2021 Alee Productions, Licensed with GPL-3.0')
.setColor('#1fd619');
- let inviteBot = new MessageButton()
- .setStyle('url')
- .setLabel('Invite AleeBot')
- .setURL('https://top.gg/bot/282547024547545109');
+ let inviteButton = new MessageActionRow()
+ .addComponents(
+ new MessageButton()
+ .setStyle('LINK')
+ .setLabel('Invite AleeBot')
+ .setURL('https://top.gg/bot/282547024547545109'),
+ new MessageButton()
+ .setStyle('LINK')
+ .setLabel('Join Binaryworks Community')
+ .setURL('https://discord.gg/EFhRDqG')
+ );
- let inviteServer = new MessageButton()
- .setStyle('url')
- .setLabel('Join Binaryworks')
- .setURL('https://discord.gg/EFhRDqG');
-
- let buttons = new MessageActionRow()
- .addComponents(inviteBot, inviteServer);
-
- await message.channel.send(aboutEmbed, buttons);
+ await message.channel.send({embeds: [aboutEmbed], components: [inviteButton]});
};
exports.conf = {