kandi X-RAY | discordie Summary
kandi X-RAY | discordie Summary
A Node.js module providing a set of interfaces to interact with Discord API. Join #node_discordie in Discord API.
Top functions reviewed by kandi - BETA
discordie Key Features
discordie Examples and Code Snippets
Trending Discussions on discordie
i wanna wait between each for loop for 3 seconds, i have tried lots of algorithms but none of them worked, can anyone help?...
ANSWERAnswered 2018-Nov-20 at 14:27
You can do it like this.
so I'm trying to catch UnhandledPromiseRejectionWarning in my promise, but for some reason it's not working. It ignores my code and just outputs the error to console.
UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Forbidden (Cannot send messages to this user)
ANSWERAnswered 2018-Mar-27 at 20:45
You forgot the
return statement inside the
message.sendMessage('test') returns a promise
I am using the
ZendDb database adapter which doesn't bring all the tweaks
SQL can do. For example if I want to do a
REPLACE INTO I would have to code it like this:
ANSWERAnswered 2018-Jan-08 at 12:34
\%\w+ pattern to
Settings/Preferences | Tools | Database | User Parameters -- it will tell IDE to treat such
%s as dynamic/external part of the code instead of actual SQL.
P.S. One day such pattern will be provided by default in PhpStorm.
https://youtrack.jetbrains.com/issue/WI-39271 -- watch this ticket (star/vote/comment) to get notified on any progress.
If you need an actual suppression .. then the most effective way is to treat the string as Plain Text instead of autodetected SQL.
For this, just place
/** @lang text*/ just before the string, e.g.
I'm trying to create a swear filter for a Discord bot (using the Discordie library), and I've tried two scripts (both which don't work properly)...
ANSWERAnswered 2017-Aug-07 at 14:22
I can't say I'm familiar with vendors with discordie, but a combination of your two approaches might work.
In the first, you're comparing an array to a string, so that'll probably give you problems at the outset. In the second, you use a loop to traverse an array, but the array isn't the right one.
Whenever I try to make my bot connect to two voice connections, it disconnects from the previous one. Is there a way to connect to multiple voice sockets using Discordie? If so, how?
Here is my code:...
ANSWERAnswered 2017-Jul-24 at 19:36
Check out this section from the discord documentation regarding "sharding": https://discordapp.com/developers/docs/topics/gateway#sharding
As bots grow and are added to an increasing number of guilds, some developers may find it necessary to break or split portions of their bots operations into separate logical processes. As such, Discord gateways implement a method of user-controlled guild-sharding which allows for splitting events across a number of gateway connections. Guild sharding is entirely user controlled, and requires no state-sharing between separate connections to operate.
That's referring to gateway connections, but according to this section: https://discordapp.com/developers/docs/topics/voice-connections#voice
Voice connections operate in a similar fashion to the Gateway connection, however they operate on a different set of payloads, and utilize a separate UDP-based connection for voice data transmission.
So, you can infer that if multiple gateway connections are possible and voice connections are similar, then yes it is possible. Whether it's possible using discordie, I was not able to find anything in the documentation that said whether you can or not.
For more help, post a code example of what you're trying to do, someone might be able to spot an issue in your code.
No vulnerabilities reported
Reuse Trending Solutions
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page