lntel / quickcord Goto Github PK
View Code? Open in Web Editor NEWQuickcord is a Discord.js wrapper which integrates express frameworks simplicity to enable you to quickly and easily set up a Discord bot with minimal effort.
License: MIT License
Quickcord is a Discord.js wrapper which integrates express frameworks simplicity to enable you to quickly and easily set up a Discord bot with minimal effort.
License: MIT License
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.
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.
import { LoadedCommand } from 'quickcord'
const ping = (e: any) => {
console.log(e)
}
const pingCommand: LoadedCommand = {
aliases: 'ping',
cb: ping,
options: {
autoDelete: true
}
}
export default pingCommand;
autoDelete LoadCommand parameter causes an error when a command has been sent through a DM channel.
(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.
having your .vscode folder in your main branch is not a good idea
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.
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)
The autoDelete
feature is trying to delete commands invoked through DM's.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.