Version 1.1.0 - Refactor + Intergration Backend
This commit is contained in:
20
src/discord/Commands/Web.js
Normal file
20
src/discord/Commands/Web.js
Normal file
@@ -0,0 +1,20 @@
|
||||
const { Command } = require('../Command');
|
||||
const { Button } = require('../Button');
|
||||
const { Embed } = require('../Embed');
|
||||
const config = require('../../utils/Database/Configuration')
|
||||
|
||||
const command = new Command("web", "Affiche le lien vers le site web pour contrôler le bot", (client, interaction) => {
|
||||
const embed = new Embed(interaction)
|
||||
embed.setColor(0xffffff)
|
||||
embed.setTitle('Subsonics - Chopin')
|
||||
embed.addBotPicture(client)
|
||||
|
||||
embed.setDescription('Vous pouvez contrôler le bot depuis le site web ! \n Nécéssite une connexion avec votre compte Discord.')
|
||||
|
||||
const linkButton = new Button("Site web", null, 5, config.getWebsiteLink())
|
||||
embed.addButton(linkButton)
|
||||
embed.send()
|
||||
|
||||
})
|
||||
|
||||
module.exports = {command}
|
Reference in New Issue
Block a user