Giter Site home page Giter Site logo

drakezee / drake-djs-handler Goto Github PK

View Code? Open in Web Editor NEW
65.0 65.0 39.0 33 KB

Ultimate, efficient, easy-to-use and simple-to-setup Command handler for Discord bots. [Beginner Friendly]

Home Page: https://dsc.gg/botsway

JavaScript 100.00%
bot command-handler discord-bot discord-bot-command-handler discord-bot-template discord-bots discord-handler discord-js discord-js-v13 discord-js-v13-command-handler discordjs discordjs-command-handling discordjs-v13 drake-djs-handler event-handler handler javascript node-js slash-command-handler

drake-djs-handler's Introduction

Heya! I'm DrakeZee ๐Ÿ˜€

Hello There! I'm from India. Nice to meet you! ๐Ÿ‘‹

He/Him
๐Ÿ˜ƒ I am a Gamer, Developer, Designer.
๐Ÿ“ท I'm also a Youtuber... Check My Videos.
โฏ๏ธ I love Editing videos and using Photoshop.
โŒจ๏ธ I usually code in NodeJs, learning a few more!
๐ŸŽฎ I play minecraft bedwars, and love developing SMPs and Networks.
๐Ÿค” Iโ€™m currently learning Java, DiscordJs and Databases!
๐Ÿ Aiming to become a Game Developer.

โค๏ธ My Goal is to master everything, and make people happy ;)

Socials:

drake-djs-handler's People

Contributors

drakezee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

drake-djs-handler's Issues

DiscordAPIError: Missing Access on launch

Using your code i always get DiscordAPIError: Missing Access on launch even tough the bot has every permission. The commands work fine.

DiscordAPIError: Missing Access
    at RequestHandler.execute (/node_modules/discord.js/src/rest/RequestHandler.js:350:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RequestHandler.push (/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
    at async GuildApplicationCommandManager.set (/node_modules/discord.js/src/managers/ApplicationCommandManager.js:146:18)
    at async Client.<anonymous> (/Ticket bot/handler/index.js:74:7) {
  method: 'put',
  path: '/applications/927216144702668872/guilds/927224001141538816/commands',
  code: 50001,
  httpStatus: 403,
  requestData: { json: [ [Object] ], files: [] }
} Promise {
  <rejected> DiscordAPIError: Missing Access
      at RequestHandler.execute (/node_modules/discord.js/src/rest/RequestHandler.js:350:13)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at async RequestHandler.push (/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
      at async GuildApplicationCommandManager.set (/node_modules/discord.js/src/managers/ApplicationCommandManager.js:146:18)
      at async Client.<anonymous> (/handler/index.js:74:7) {
    method: 'put',
    path: '/applications/927216144702668872/guilds/927224001141538816/commands',
    code: 50001,
    httpStatus: 403,
    requestData: { json: [Array], files: [] }
  }
}

MessageCreate has fault

   } else if (!message.member.permissions.has(command.userpermissions || [])) {
      let userperms_embed = new MessageEmbed()
         .setTitle(`:x: | You Don't Have Permissions To Use The Command!`)
         .setColor("RED")
         .setFooter(`${clientname}`, `${clientavatar}`)
         .setTimestamp();
      return message.reply({ embeds: userperms_embed });
  the embeds needs to be `({ embeds: [userperms_embed] });`
  
  small change but completely breaks the bot if the user does not have permissions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.