Version 1.1.0 - Refactor + Intergration Backend
This commit is contained in:
20
src/discord/Commands/Invite.js
Normal file
20
src/discord/Commands/Invite.js
Normal file
@@ -0,0 +1,20 @@
|
||||
const {Command } = require("../Command")
|
||||
const {Embed, EmbedError} = require("../Embed")
|
||||
const {Button} = require("../Button")
|
||||
|
||||
const command = new Command("invite", "Invite moi sur d'autres serveurs", (client, interaction) => {
|
||||
const embed = new Embed(interaction)
|
||||
embed.setColor(0xFF007F)
|
||||
embed.setTitle('**Inviter le bot sur d\'autres serveurs**')
|
||||
embed.setDescription('Vous pouvez m\'inviter sur d\'autres serveurs en cliquant sur le bouton ci-dessous.')
|
||||
embed.addBotPicture(client)
|
||||
|
||||
|
||||
const linkButton = new Button("Invite", null, 5, "https://discord.com/oauth2/authorize?client_id=" + client.user.id + "&scope=bot+applications.commands&permissions=8")
|
||||
embed.addButton(linkButton)
|
||||
|
||||
embed.send()
|
||||
|
||||
})
|
||||
|
||||
module.exports = {command}
|
Reference in New Issue
Block a user