Advertisement
OnlyYoussef

Zylem Help Command

May 17th, 2022
668
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const {Discord, Client, MessageEmbed} = require("discord.js")
  2. const client = new Client()
  3. const disbut = require('discord-buttons')(client);
  4. const { MessageMenuOption , MessageMenu, MessageActionRow, MessageButton} = require('discord-buttons')
  5. client.on("message", async message => {
  6.  
  7.   if(message.content === prefix + "help"){
  8.     if(message.author.bot)
  9.     if(!message.channel.guild)return;
  10.      var blacklist = db.fetch(message.author.id)
  11.         if (blacklist === true) {
  12.             return message.lineReply('__You Have A Black List Pls Contact Bot Owner Or Join Support Server').then(msg => {
  13. msg.delete({timeout: 5000})
  14.             });
  15. }
  16.     let embed = new Discord.MessageEmbed()
  17.     .setColor("#4E00FF")
  18.     .setAuthor(client.user.tag,client.user.avatarURL())
  19.     .setTitle(`**Welcome to my Help commands**`)
  20.     .setDescription(`**Choose Your Option** \n
  21.     :white_check_mark: | **[Server](https://dsc.gg/zylem-server)** \n
  22.     :white_check_mark: | **[Invite!](https://dsc.gg/zylem)** \n
  23.     :white_check_mark: | **[Top.gg!](https://top.gg/bot/970738182616383549)** \n
  24. `)
  25.     .setThumbnail(client.user.avatarURL({dynamic: true}))
  26.     .setTimestamp()
  27.     .setFooter(message.author.tag,message.author.avatarURL())
  28.     let option1 = new MessageMenuOption()
  29.     .setValue('1')
  30.     .setLabel('Memes Section')
  31.     .setDescription('Memes Option')
  32.     .setEmoji("❓")
  33.     let option2 = new MessageMenuOption()
  34.     .setValue('2')
  35.     .setLabel('Games Memes')
  36.     .setDescription('Games  Option')
  37.     .setEmoji("❓")
  38.     let option3 = new MessageMenuOption()
  39.     .setValue('3')
  40.     .setLabel('Moderation Selection')
  41.     .setDescription(' Show Moderation Commands')
  42.     .setEmoji("❓")
  43.  
  44.     const menu = new MessageMenu()
  45.     .setID('menu')
  46.     .setPlaceholder(`Nothing Selected`)
  47.     .addOption(option1)
  48.     .addOption(option2)
  49.     .addOption(option3)
  50.     const button = new MessageButton()
  51.     .setStyle('url')
  52.     .setURL('https://dsc.gg/zylem-server')
  53.     .setLabel('Support !')
  54.       const button2 = new MessageButton()
  55.     .setStyle('url')
  56.     .setURL('https://dsc.gg/zylem')
  57.     .setLabel('Invite me !')
  58.     const row = new MessageActionRow()
  59.      .addComponent(menu)
  60.  
  61.     message.channel.send(`**Processing Your Request...**`).then(msg => {
  62.       msg.delete({timeout: 3000})
  63.     })
  64.     message.channel.send(embed,{component: row, buttons: [button,button2]})
  65.   }
  66. })
  67. client.on("clickMenu", async menu => {
  68.   if(menu.values[0] === "1"){
  69.       const embed = new Discord.MessageEmbed()
  70.         .setColor("WHITE")
  71.         .setTitle("**Memes Commands**")
  72.         .setDescription(`
  73. \`${prefix}dam\` : **__Showing Dirty Arabic Memes__** \n
  74. \`${prefix}dem\` : **__Showing Dirty English Memes__** \n
  75. \`${prefix}am\` : **__Showing  Arabic Memes__** \n
  76. \`${prefix}em\` : **__Showing  English Memes__** \n
  77. `)
  78.          menu.reply.send(embed,{ephemeral: true})
  79.   }
  80.   if(menu.values[0] === "2"){
  81.       const embed = new Discord.MessageEmbed()
  82.         .setColor("WHITE")
  83.         .setTitle("**Games and Fun Commands**")
  84.         .setDescription(`
  85. \`${prefix}youtube\` : **__Watch youtube videos in a voice channel \n
  86. \`${prefix}ttt\` : **__Tic tac toc game__** \n
  87. \`${prefix}choose\` : **__Would Your Rather Game__** \n
  88. \`${prefix}encut\` : **__English Question__** \n
  89. \`${prefix}cut\` : **__Arabic Question__** \n
  90. `)
  91.          menu.reply.send(embed,{ephemeral: true})
  92.   }
  93.   if(menu.values[0] === "3"){
  94.       const embed = new Discord.MessageEmbed()
  95.         .setColor("WHITE")
  96.         .setTitle("**Memes Commands**")
  97.         .setTimestamp()
  98.         .setDescription(`
  99. \`${prefix}ban\`: **__Ban a member from the guild__** \n
  100. \`${prefix}kick\`: **kick a member from the guild__** \n
  101. \`${prefix}mute\`: **mute a member from the guild__** \n
  102. \`${prefix}unmute\`: **__Ban a member from the guild__** \n
  103. \`${prefix}ban\`: **unmute a member from the guild__** \n
  104. \`${prefix}nick\`: **__Change nickname a member from guild__** \n
  105. \`${prefix}sm\`: **__Set a slowmode for a channel__** \n
  106. \`${prefix}hide\`: **__Hide a Channel From The guild from the guild__** \n
  107. \`${prefix}show\`: **__Show a Channel From The guild from the guild__** \n
  108. \`${prefix}lock\`: **__Lock  a channel from the guild__** \n
  109. \`${prefix}unlock\`: **__Unlock a channel from the guild__** \n
  110. \`${prefix}add-emoji\`: **__Adding a emoji to the server__** \n
  111. \`${prefix}limit-bans\`: **__Show how many bans in the guild__** \n
  112. \`${prefix}server\`: **__Show guild information__** \n
  113. \`${prefix}nuke\`: **__Nuke a Channel From The server__** \n
  114. `)
  115.       menu.reply.send(embed,{ephemeral: true})  
  116.   }
  117. })
Advertisement
RAW Paste Data Copied
Advertisement