Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { Discord, Client , MessageEmbed} = require('discord.js')
- const client = new Client()
- const prefix = "!"
- const disbut = require('discord-buttons')(client);
- const chalk = require('chalk')
- const { MessageButton } = require('discord-buttons')
- client.login(process.env.TOKEN).catch(err => {
- console.log('token is invaild')
- })
- client.on("ready", () => {
- console.log(
- chalk.magentaBright(`logged in as ${client.user.tag}`)
- )
- client.user.setActivity(`${prefix}help`, {
- type: "WATCHING"
- })
- })
- client.on("message", msg => {
- if(msg.content.startsWith(prefix + "help")){
- let embed = new MessageEmbed()
- .setColor("BLUE")
- .setFooter(msg.author.username,msg.author.avatarURL())
- .setTimestamp()
- .setTitle(`${msg.author.tag}'s Help Menu`)
- .setDescription("Your Commands Here")
- const button = new MessageButton()
- .setStyle("url")
- .setURL(`https://replit.com/@0nlyYoussef/FirebrickGrizzledMenus#index.js`)
- .setLabel(`Link !`)
- msg.channel.send(embed, {buttons: [button]})
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement