aboutsummaryrefslogtreecommitdiff
path: root/commands/invite.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2021-07-29 16:00:22 -0400
committerAndrew Lee <alee14498@protonmail.com>2021-07-29 16:00:22 -0400
commit06dd6383d7a239817c2a9724465896ef7da70bc2 (patch)
tree8c5f63e6adc1a5cd47737d88e44fd7c76f325ea2 /commands/invite.js
parentffc85798c04897d1ddaed61a9be40e5bb0a8792f (diff)
downloadAleeBot-06dd6383d7a239817c2a9724465896ef7da70bc2.tar.gz
AleeBot-06dd6383d7a239817c2a9724465896ef7da70bc2.tar.bz2
AleeBot-06dd6383d7a239817c2a9724465896ef7da70bc2.zip
Big changes
Diffstat (limited to 'commands/invite.js')
-rw-r--r--commands/invite.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/commands/invite.js b/commands/invite.js
index e6f538f..a12cff4 100644
--- a/commands/invite.js
+++ b/commands/invite.js
@@ -1,7 +1,7 @@
/** **************************************
*
* Invite: Command for AleeBot
- * Copyright (C) 2017-2020 Alee Productions
+ * Copyright (C) 2017-2021 Alee Productions
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -17,7 +17,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* *************************************/
-module.exports.run = async (client, message) => {
+module.exports.run = (client, message) => {
+ const disbut = require('discord-buttons')(client);
+ let button = new disbut.MessageButton()
+ .setLabel('My First Button!') //default: NO_LABEL_PROVIDED
+ .setID('click_to_function') //note: if you use the style "url" you must provide url using .setURL('https://example.com')
+ .setDisabled(); //disables the button | default: false
+
message.channel.send({embed: {
color: 2086425,
title: 'Invite Command',
@@ -31,7 +37,7 @@ module.exports.run = async (client, message) => {
},
],
},
- });
+ }, button);
// message.channel.send('Want AleeBot in your server? Here\'s the link: https://discordapp.com/api/oauth2/authorize?client_id=282547024547545109&permissions=2080375863&scope=bot');
};