Resource icon

Source Advanced Buttons | Corebot Addon 1.1.9

Changes
  • Created A custom Event for Listening For Buttons.
    • Event: ADVANCED_BUTTON_BUTTON_CLICK
    • Returns
      • type (channel type)
      • guild
      • member
      • channel
      • interaction
      • custom_id (button id)
    • Automatically finds guild & member data if button is clicked in DMS
JavaScript:
eventHandler.set("ADVANCED_BUTTON_BUTTON_CLICK", async (bot, data) => {   
    console.log(`${data.member.tag} (${data.member.id}) clicked the button ${data.custom_id}.`)
    return DButtons.sendPing(interaction) // AdvancedButtons API Call You must require AdvancedButtons as a package.
})

  • Fixed issues with Buttons in DMS
  • Added more support for Buttons in DMS
  • Fixed Bug with .Roles of undefined
  • Improved code for DMing users
  • Improved Webhook API functions
Fixed config looking weird due to comments. Nothing else changed

© 2021 COREBOTADDONS.COM INC. ALL RIGHTS RESERVED.
Major thank you to "Dragon" from Insurgence Network for helping setting up Paid Resources!

Top