From 06dd6383d7a239817c2a9724465896ef7da70bc2 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 29 Jul 2021 16:00:22 -0400 Subject: Big changes --- commands/invite.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'commands/invite.js') 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 . * * *************************************/ -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'); }; -- cgit v1.2.3