Git Product home page Git Product logo

quickcord's People

Stargazers

Kehinde (Kenny) Olawuwo avatar Joseph Harris avatar  avatar RESTful avatar yuta avatar Stephen Rogers avatar

Watchers

 avatar James Cloos avatar Joseph Harris avatar

Forkers

mikan-owo

quickcord's Issues

Question utility processes input as command

v8.0.0

When using the question utility, a user can enter another command as an input e.g. .verify and that command will be processed during the input being taken which causes a lot of unknown issues.

Add custom error for TS

When the framework tries to attempt to extract the rootDir and outDir from the tsconfig.json if they are not in the configuration a confusing error is shown. The idea is to add a custom exception to let the dev know the exact issue.

Typescript command loader cb doesn't allow parameters

import { LoadedCommand } from 'quickcord'

const ping = (e: any) => {
    console.log(e)
}

const pingCommand: LoadedCommand  = {
    aliases: 'ping',
    cb: ping,
    options: {
        autoDelete: true
    }
}

export default pingCommand;

Embed color not hex but int

(node:13536) UnhandledPromiseRejectionWarning: DiscordAPIError: Invalid Form Body
embed.color: Value "#ff1100" is not int.
    at C:\Users\stephen\Documents\VS Code\discordbot\node_modules\discord.js\src\client\rest\RequestHandlers\Sequential.js:85:15
    at C:\Users\stephen\Documents\VS Code\discordbot\node_modules\snekfetch\src\index.js:215:21
    at processTicksAndRejections (internal/process/task_queues.js:94:5)
(node:13536) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originRequestHandlers\Sequential.js:85:15ated either by throwing inside of an async function without a catch block, or by rejecting a 21
promise which was not handled with .catch(). (rejection id: 2)
(node:13536) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In thated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handlede future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

issue

Describe the bug
A clear and concise description of what the bug is.
Images do not load in embeds
To Reproduce
Steps to reproduce the behavior:

 const embed = Quickcord.Embed({
      image: json.url
      });
      res.channel.send(embed);

no error appears but no image will be set in the embed
Expected behavior
A clear and concise description of what you expected to happen.
Image appears in the embed
Screenshots
If applicable, add screenshots to help explain your problem.
https://cdn.discordapp.com/attachments/616750700541640734/677260519274709013/unknown.png
Additional context
Add any other context about the problem here.

Array not working in token

const args = content.slice(prefixResult.length).split(" ");
                                                ^

TypeError: Cannot read property 'length' of undefined
    at Client._messageEvent (C:\Users\stephen\Documents\VS Code\discordbot\node_modules\quickcord\src\client.js:83:49)
    at Client.emit (events.js:228:7)
    at MessageCreateHandler.handle (C:\Users\stephen\Documents\VS Code\discordbot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
    at WebSocketPacketManager.handle (C:\Users\stephen\Documents\VS Code\discordbot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
    at WebSocketConnection.onPacket (C:\Users\stephen\Documents\VS Code\discordbot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
    at WebSocketConnection.onMessage (C:\Users\stephen\Documents\VS Code\discordbot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
    at WebSocket.onMessage (C:\Users\stephen\Documents\VS Code\discordbot\node_modules\ws\lib\event-target.js:120:16)
    at WebSocket.emit (events.js:223:5)
    at Receiver.receiverOnMessage (C:\Users\stephen\Documents\VS Code\discordbot\node_modules\ws\lib\websocket.js:789:20)
    at Receiver.emit (events.js:223:5)

Conditional slash commands for guilds

It would be great to have slash commands conditionally for each guild, for example.

Commands:

/test1
/test2
/test3

Guild 1 has access to
/test1
/test2

Guild 2 has access to
/test3

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.