#development
1 messages · Page 1482 of 1
Oh alr
let helpingEmbed = new Discord.MessageEmbed()
.setAuthor(client.config.FOOTER_BOT_NAME)
.setTitle(${prefix}${cmd.name})
.setDescription(**Description:** ${cmd.description}\n)
.addFields(
{name:"Usage:", value: \${prefix}${cmd.usage}`, inline:true}, {name:"**Aliases:**", value: `${cmd.aliases}`, inline: true}, {name:"**Cooldown:**", value: `${cmd.cooldown/1000}` seconds`, inline: true}
)
.setColor(client.config.SUCCESS_COLOR)
return message.channel.send(helpingEmbed)
or
how about you make your own method
Thanks
@earnest phoenix wheres the rest?
for finding by ID, and if it doesn't exist, create and return one
Btw is updating to node 14 recommended or no
Anyone knows how to use this ? https://statcord.com/add
it's recommend to upgrade
@earnest phoenix https://hastebin.com/ copy paste the WHOLE thing here, dont put small pieces
How can I do that
and send the link
oh yeah the unhandled promise rejections thing?
it seemed as if that wasn't ever going to happen lmao
yea
DONT
o
i handle pretty much all promises, but i have that just in case
handle ur shit properly
Poggers doggers loggers codders
o
the maximum you can use that for is for logging your errors somewhere. dont use that as an error handler
DM erwin'
well k
I use exception fallback to use my custom logger instead of System.out's default
Using a catch-all can be dangerous
ooooohhh
you mean in promise.all?
if(!message.guild.me.permissions.has("SEND_MESSAGES")) return; what about this
By catch-all I mean a global exception catcher
@earnest phoenix you are using Commando, why not use that instead?
Which makes most errors useless for debugging
no command
@earnest phoenix oh, still though, you have that inside there, why check it before?
i should to that thing
ok
Know what? I like that exceptional table idea
it actually tries to recover from errors
i got mongodb
pretty sure i can just store error objects
along with date and stuff
been using that instead of SENTRY, though SENTRY is a lot better for this sort of stuff as it saves the variables when it error'd
you can assign the prefix to an object/map and check if the prefix exists in that object (you can set the guild id as key). if it is, return the prefix and if not, fetch it from db, set it and return the prefix. next time it happens again, it won't query the database but return it from the object ```js
const prefixes = {};
async function getPrefix(guildID) {
if (prefixes[guildID]) return prefixes[guildID];
prefixes[guildID] = (await findOne() || {}).prefix || "s!";
return prefixes[guildID];
}
// Your handler
const prefix = await getPrefix(message.guild.id);```
i just use this for my panel, so i get real time feedback of the errors
@lyric mountain @mellow kelp you guys probably want this instead, mine has a proper use case to be this janky https://sentry.io/welcome/
still getting err
WOW
Thanks for help
it's not really one
@earnest phoenix show new code
Opens page
Try bla bla bla
Closes page
trust me, its worth it
hmm aight
It's better than pm2
botPermissions: ['SEND_MESSAGES', 'EMBED_LINKS', 'VIEW_CHANNEL', 'READ_MESSAGE_HISTORY'],
whats the whole error?
I'm a java dude, so...
at RequestHandler.execute (E:\OneNaut\node_modules\discord.js\src\rest\RequestHandler.js:154:13)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async RequestHandler.push (E:\OneNaut\node_modules\discord.js\src\rest\RequestHandler.js:39:14) {
method: 'post',
path: '/channels/792743596021121054/messages',
code: 50013,
httpStatus: 403
}
SEND MESSAGE is disabled
Guess I'll make an error factory /s
#792743596021121054 which channel is this @earnest phoenix and what was the last command send?
Br detected
where?
on.help
you should check for channel overwrites, channel.permissionsFor(guild.me).has()
i assumed that too
Hyped boy, "canal inválido" is in portuguese
you should really only check for overrides tbh
same
can you give an example?
i-
guild.me.permissionsIn(channel).has(YOURPERMISSIONS)
ok
Guys you bot will have same error
if you disable higher role perm and give to bot
im starting to think you didnt save your changes or didnt restart your bot
I always do
cuz none of the permissions you asked matter for role hierarchy
that shit happens more times than i want to admit
if (args[0]) return message.channel.send(Math.floor(Math.random() * args[0]))
if (!args[0] || !args[1]) return message.channel.send('Wrong syntax, please enter `nhelp pick` for more details.')
const pickWordlist = args.join(',');
message.channel.send(pickWordlist[Math.floor(Math.random() * pickWordlist.length)]);
why when i using npick 1,2 it respond NaN 😦
how i can change it to respond 1 or 2
You know what i did? I created a role ,, put above my bot role and disabled SEND_MESSAGE. and then gave role to bot. if channel doesnt has permission. I am getting that error.
hmmmm
youa re getting same?
nope
i'd recommend just checking for channel permissions
instead of guild
channel permissions are final
yup
it might be fucked because you are checking for a permission the role has, but not the channel
yes correct
#development message use this instead
Yes 200% I just want to handle this error
who needs sentry
you handle the error by not GETTING the error though
Does anybody knows about this error?
TypeError: Class extends value undefined is not a constructor or null
check if the bot has permission to send, if it does, dont send
use the code i sent you
it works fine bot tells user.
then you shouldnt be getting any error
stucked here
you speak portguese?
nope english
what other language you speak?
unfortunately no
some of the stuff you are saying is hard to understand, so i was checking if your second language was one that i knew so i could give you a hand
Np
F
how do i make that heroku dynos will stop restarting
its restarting the bot every 20h
just handle it ¯\_(ツ)_/¯
yeah u need to use remote database
Heroku isn't meant for file-based storage
Like, even for premium it does that
Not that heroku has premium at all
You'll need to setup a my/postgre/whatever-SQL somewhere out of heroku
or nosql
He uses sqlite, so I'm considering sql-based
how do i use that tho
You'll need a server
which?
There's no which, sqlite is sqlite
okok
so i need to host it by my self?
Yep
yes
Or buy some host
kk
Which will be a lot expensive than a vps
Heroku is not really worth it in the long run, since you'll be capped by slug size, daily restarts (which invalidate caches) and huge latency
Not to say heroku hates bots
url = 'https://randomfox.ca/floof'
response = requests.get(url)
json_data = response.json()
fox = json_data[0]['image']
link = json_data[0]['link']
What has i broken
Lol
No error = no fix
If you have good friend (like I do), (s)he might may sponsor you a vps.
that should be this channel's motto ngl
pretty sure requests is synchronous
Are them? Weird
It's not asynchronous
Like, just save one coffee cup and u have money for a monthly vps plan
I don't get it why people avoid it
Well, except if u live in brazil, dollar is expensive af rlly now
I just homehost
Because, since they don't have a proper db/cc (like me) probably?
Maybe
Ah, I was mistaking with fetch
client.channels.get("config.id1").send("nope")
?
Not work
well because "config.id1" is a string by itself.
Quotation, remember the quotation
Everything inside quotation is a string
Except escape chars
Is issue
client.channels.get(config.id1).send("nope")
client.channels.get("config.id1").send("nope")
First one is right, not better

I dont have eval
you do

Congrats, you just hanged someone's tesla car
it's built-in js feature
Happy flaz?
sure am
It work? Because i dont have eval
please stop
Forget eval
client.channels.get("clientid").send("nope")
I need clientid to load from another file
you should learn basic js first in my opinion.
Hi, I would like to use my num const outside of my forEach function. How can I do that ? :D
exports.run = (client, message, args) => {
var Discord = require("discord.js");
const locale = require("../locales/en.json");
let db = require("./database.json").results
let compteur = 0;
db.forEach(function (element) {
if(element.registration == args[0].toUpperCase()){
const num = compteur;
}else{
compteur++;
}
})
console.log(num)
console.log(db[num])
}```
well you can't use ++ on a const
А я русский 😦
- move the declaration out of it
- change const to let
#general-int for different languages
oh yeah, you're right
Why didnt I thought about that lol
Yup, it's working indeed. Thanks @crimson vapor
any one knows a cheap good host?
Homehosting
Lol
@client.command()
async def fox(ctx):
date = datetime.datetime.now().strftime("%m/%d/%y")
url = 'https://randomfox.ca/floof'
response = requests.get(url)
json_data = response.json()
fox = json_data[0]['image']
link = json_data[0]['link']
print(image)
print(link)
embed = discord.Embed(
title = "🦊 Yip!",
url = f"{link}",
description = "",
colour = discord.Colour.orange()
)
embed.set_image(url=f"{fox}")
embed.set_footer(text="Shibe Bot | " f'{date}')
await ctx.send(embed=embed)
No errors, just not working
oh right
you get what you pay, keep it in mind,
but if you have a small bot with next to no guilds Google Offers a Free VPS. (it wont manage to run the bot if it uses to much ram bcs you get like 250MB) the Paid VPS from them are also fine with the pricing
raspberry pi 
Contabo
sure a Raspberry Pi or banana pi is paid off in 10-12 months but not everyone wants one or is not allowed to have one (lol)
my bot is not small tho
Cheapest plan is 3.99 iirc
Full ssd cheapest is a dollar above
An euro*
It's in euros actually, but iirc dollar is almost the same price as euro
how large is the bot and how much ram does it use currently?
@quartz kindle is there an way to get the guild object with the ready event while using the gateway? (needed to cross check the permissions of users that access my Dashboard)

Discord only sends partial guild data on READY event. Allows clients to prealloc caches and determine which guilds are unavailable
i know. but if you call the REST api to get the guilds you get the Guild object but only the first 100 Guilds. to get around the 100 guilds i want to use the Gateway
Idk if you can get the objects on READY event. GUILD_CREATE is emitted asynchronously * however many guilds your bot is in
yea just need to figure out how to properly listen to events
OP 0 is the dispatch event which is where all the t: "SOME_DISCORD_EVENT" is
receive only
im trying to make a currency system for my bot
and when i do npm i quick.db in terminal i get a bunch of errors
and i dont get quick.db anywhere
what errors
anyone here good w carlbot
one sec
this channel is for bot development
is there a channel for bot help
no
You need to install the latest version of Python
is the PYTHON env variable set?
this is discord.js?
yeah
im trying to use quick.db
that's what i thought
there's this package called sharp which uses c++
can someone help me with intent
Noo
oh lol
wdym is it allowed
Yes
????
You can use QuickDB on djs
did you know how long it can take for the Lazy load with GUILD_CREATE? for now ive only got the READY event.
how do you check
Not sure about python though
Well. All my bots run on quickdb and djs sooo
Look at thr guide or smthn
ok
about 10-20 seconds
hmm thats bad already sended 6 Heartbeats
why is the load lazy
^ depends how many guilds your client is in
currently 274
idk if someone has said this before @silver monolith , but you need nodegyp installed
can someone guide me for intent
Ready event would be too large if not emitted asynchronously
im checking that rn
your guild_creates are being sent very slowly?
yea but all guilds are partials
i havent seen any other event for now exept the Gateway answering to heartbeats
guilds from GUILD_CREATE are full objects
unless your connection is very bad, you should be receiving around 50-100 guilds per second from the gateway
i would not say my connection is bad (120Mbits down) i think ive just fucked something up
i just installed node-gyp
ws.on("message", async function incoming(data) {
msg = JSON.parse(data);
console.log(msg)
})
``` this is how i listen for the events (there is more code below that is executed and work)
oooh raw ws
it has to be sync
also dont assign msg to a global variable
you have concurrent async functions reassigning the value of the same variable
thats why its so fucked up
yea if i dont run it async i get issues with some database stuff
it shouldnt affect any database
i make the DB calls async inside the message event
well dont
wait for all guild_creates before
then run an async loop with await
otherwise you're also starving your database with 50-100 queries per second
that doesn't sound like something you should be doing to a database
nah it can handle this
just fix the global variable
need the Guild object to cross check permissions. i might could use a map instead
yea changed it
you could use a map yea
you can remove your db code from the message event just to see the guild_create influx
then add it back
i know but i need to wait a bit or i get a invalid season
could use resume tho but im to lazy to implement this for now
You shouldn't be getting invalid session
unless you try to reidentify with an invalid session
if i hot reload with nodemon i get a invalid session
yea
the workflow instantly reidentify
does hot reload not shut down the process?
You really should be attempting to resume because Discord closes your connection with 1000 frequently
resumes also dont go towards your 1000 identify limit per day
well i guess its time to make a workflow for resumes.
ws.on("message", function incoming(data) {
const payload = JSON.parse(data);
console.log(payload)
if (payload.op == 10) {
setInterval(() => _heartbeat(), payload.d.heartbeat_interval)
}
if (payload.t == "READY") {
const map = payload.d.guilds.map((guild) => guild.id);
}
if (payload.op == 9) {
console.error("Invalid Session");
ws.close();
}
});
```still no luck with other events than the ready event
only get op 11 messages
suggestion but not an issue: handle OP 0 DISPATCH in another function just for cleanliness.
is this good for a bot that just like has economy cmds, mod cmds, etc and sends web requests
would it exceed the limit or stay at this
200MB is quite small
what db do you use?
350mb won't be enough imo
You'd have to pretty much not cache anything in memory otherwise, scaling would be so incredibly difficult
mongo takes up more
really?
if you do a local install
thats fine
AAAAAAAAAAAA i tried EVERYTHING to get quick.db to work
whats ur issue w/ it?
i reckon the best thing you could do
Mongo stores all keys in RAM. but it should be fine if you dont use to many keys
would be to buy a vps
this is a cheap vps
Are you trying to install on windows?
yes
ill probs update the plan l o l
look at windows-build-tools on npm
there are special install instructions
or 2gb ram and storage

with 1 GB ram i where able to run 6 Small bots without any issues
2GB is clearly the better option if you want to scale. If you plan to stay small, you can get away with a smaller container size
anywho ill get the platinum plan
i hate the gateway now. still no GUILD_CREATE event. idk why tho.
thats overpriced
GUILD_CREATE is from OP 0
i know
theres stuff cheaper than this??
i handle OP 0
i get 64gb storage, 4gb ram and free backups for a bit more than that
but the only thing i get are OP11
what vps?
You can get similar pricing for more from Contabo @sterile lantern 4 cores 8GB of ram + SSD
???
someone had like
36 servers on it
and then their bots started randomly crashing
contabo have unlimited servers
right
this sounds like inefficent code
mine was on for 3 months on contabo...
hi
i mean like is there a limit
to how many servers
you can create
also, is the GB/Ram per account or per server
you can create 100 and you will get them
they provision VPS on larger servers where are easy 100-1000 VPS on a single server
Brain. I'd only suggest looking at other libs for reference. Only lib I know of which is pretty bare bones and supports gateway v8 is my fork of CloudStorm; https://github.com/AmandaDiscord/CloudStorm
What you might want to look at is src/connector/DiscordConnector.ts
yea
so do they charge GB/Ram per server
or is it just your account
i mean storage not gb
The whole instance (x GB RAM, storage) is already included in the bill, they won't bill for more unless you upgrade. Unless I am misreading.
That is correct
Yeah I think my vps uses 2gb
Anyone in here use commando?
any emitter on client obj to check whether bot is joined a server or left?
on what lib
guildCreate and guildRemove i guess?
tnx
<3
I have not used Commando, but what are you trying to do?
Restructure the whole lib 

I figured it out already
lmao
Yeah. It does provide some helpful utilities, but if you're getting to the point of rewriting, I'd try to reimplement those features into a more lightweight lib than Discord.js

I was just changing some stuff to basically create a very dumpster fire version of v13 message replies and slash commands

yea
Yeah a lot more cuz v13 will be a bit
It can be useful
how hard is it to make a command handler
Depends on what features you're trying to implement. Automatic client message editing on command message update, reaction menus, etc
those are pretty advanced
yea ig
iirc, yes
Yeah
It is really nice to use
Switched recently just giving it my own lil touch
Only real problem I have with Commando is that it's based off Discord.js which does not scale well. It caches way too much for it's own good
YIKES
gg
jank dev is my bread and butter
how about recursively registering all commands in a folder
const Command = require('../../node_modules/discord.js-commando/src/commands/base');
LMAO
@mellow kelp That is what I am about to do
I am rewriting the like default thing
oh aight
Because it auto does it but you gotta be careful with what you move
or you kill your console with startup errors
hmm maybe
i just import everything in the commands folder and check if the default import has an 'execute' function
Hold up
These were source files
LMAO
Why am I not just importing the lib instead of the source


ITS THE DEFAULT EVAL
Hi
Hi
Hi
Imagine luca had a docs cmd for dpy djs and eris 
Hi
ayo
jank.js
A big thing about commando is that it's using sqllite by default
and I am trying to transfer to mongo
so
sql is good
fair enough. Could make a PR allowing users to create their own database connectors
there probably is
sounds good enough
But I don't wanna rewrite 4000 lines of code to change from sqlite to mongo
Not Working
v12?
heroku
ye
discord.js v12
you use V11 code
i use v12

channel.messages.fetch is for fetchMessages
Update ur code
...
idk what bulk is in v12 
That is v11 code on the v12 lib
whats the code for v12?
bulkDelete()

Just look at the docs...
...
^
can i get link to docs...
...
...
bruh
i dont trust this crap

ill use guide
LMAO
wtf
then don't ask
...
then use the guide
no one gives a fucking shit

are u k?
if u didn't trust it in the first place why did u ask
Yes I am
lmao
Dude click on the documentation button on the top right of that one
it will redirect to the other one
2 domauins
domains*
tf is a website gonna do, hack you? i dont trust https://google.com
Spooky site
yes maybe
whats the point of cursing?
Emphasis
oh fuck i just swore
i forgot to laugh
i forgot to make a joke
https://aeon.js.org indeed
doesnt make sense
my phone is almost dead
Rip phone
quit it
lol im not trying to be but ok
pinged me 5 times in the last 10 minutes
who cares...??
Let's get back on topic
are u a 6 year old or something?
you retard or smth?
Looks nice
Chill
mb
i hate the gateway. idk why but it wont send me the full Guild object... i guess i take a break from it until tomorrow
i just need the stupid guild object for cross checking permissions.
well atleast ive cleaned up the entire code a bit
Are you at least getting GUILD_CREATE?
ws.on("message", function incoming(data) {
const payload = JSON.parse(data);
switch (payload.op) {
case OP.DISPATCH:
handleDispatch(payload);
break;
case OP.HEARTBEAT:
console.log("Recived Heartbeat");
break;
case OP.HELLO:
setInterval(() => _heartbeat(), payload.d.heartbeat_interval);
break;
case OP.RECONNECT:
console.log("Reconnecting");
break;
case OP.INVALID_SESSION:
console.error("Invalid Session");
ws.close();
break;
case OP.HEARTBEAT_ACK:
lastACKAt = Date.now();
latency = lastACKAt - lastHeartbeatSend;
console.log(`Latency Heartbeat: ${latency}ms`);
break;
default:
console.log(payload);
}
});
``` cleanest code ive wrote in a while
nope only the Ready Event and heartbeat
OP.HELLO or OP.HEARTBEAT?
Hello is OP 10
Yes
Also, are you shadow declaring global variables within case OP.HEARTBEAT_ACK?
yea
best hosting for music bot???
got a small file where i refer the OP codes to Variables
also i know what my issue is
wrong intends
i send 0 but i guess i want something else
what do you use, lavalink or ffmpeg?
1 << 0
- GUILD_CREATE
- GUILD_UPDATE
- GUILD_DELETE
- GUILD_ROLE_CREATE
- GUILD_ROLE_UPDATE
- GUILD_ROLE_DELETE
- CHANNEL_CREATE
- CHANNEL_UPDATE
- CHANNEL_DELETE
- CHANNEL_PINS_UPDATE```
yea
ahh man i could have made so much more progress but no i sit here for 3 or so hours bcs ive send a 0 instead of 1
yep console goes Bananas with reciving Guilds
Hey man. Shit happens. It's alright. I spent a good day or so asking people why Discord closes my connection with code 1000 regularly and the response was just "they just do"
Outside of the possibility that I wasn't sending heart beats
because I was
yea where at this point earlyer this day.
my function where shite for sending the heartbeat
Once you understand Discord's gateway implementation, other gateway structures just make sense which is good
I have that same case 
poggers bro
Guild.permissions || Guild.permissions_new
if you want to calc client permissions, you will have to use roles and channel overrides if applicable
ffmpeg
i just need the hex code or whatever format they are.
hmm im not sure, i only know specs for lavalink that is required
Guild.permissions does provide the bitfield for permissions
I use flexianode but ihave some lag with music
well thats annoying
the REST API does and it made it pretty easy to cross check if a User is in a Guild where the Bot is in and got Manage Guild permissions
i used to have lag with ffmpeg but i switched to lavalink and it wasn't laggy
(BotGuild) => BotGuild === guild.id && (guild.permissions & 0x20) === 0x20
``` this made it super easy. but without proper permissions saved i guess i need to work around it
yea
yeah it should be that
The same can be done with data received from the gateway
the function above is on demand running as a Endpoint in a small Backend Express API, still need to figure out how to use the gateway instead of the previously used REST API
nobody ever explained the reason? lmao
Caching, here we go
yea i guess i just export a Map out of my Websocket Handler and import it into the Endpoint
bu hata caba ne
No lol
All they told me was I wasn't heart beating which I am. I validated I always sent a heartbeat every heartbeat_interval
Hi, how do I dispute a decline? I tried DMing Lyss but I have gotten no response.
contact the mod responsible
that would be lyss
what was the reason?
im running my bot in cmd, written in js. Sometimes cmd freezes until i press ctrl+c, if i dont press ctrl+c for a long time after it freezes, app stops. Any idea what causes this?
I Need help
my bot tracks bumps from Disboard, and I got declined for
Your bot promotes or operates a service that competes with top.gg on your bot page.
I don't promote it at all, literally all it was was a bullet point on a list withDisboard bump trackingas one of the points. it isn't promoting it, its just support for it
check its cpu usage when it freezes
ok, thanks
How to make it so when a user does a comamnd, it replys in the embed with the ping
its really low, almost all cpu is unused
low like 0-1%?
y
found this on stackoverflow
i dunno whether it works or not
cuz it happens rarely
How do you make it so when a user does a comamnd, it replys With a ping in the embed?
https://media.discordapp.net/attachments/272764566411149314/792868103426932776/unknown.png?width=1405&height=676
yes try that
This "Randomly" hang issue is causing by CMD when you trying to highlight inside of CMD. To resolve this issue:
right click title bar
select Defaults
unselect Quick Edit Mode from the Options tab
reopen CMD
user is not defined
Yeah How do i fix that
which user do you want?
The Person That Types The Command
message.author
<@${message.author.id}>
Ok Ill Try that
i dont think it works on titles tho
If It Dont Work On The Title, Where Does It Work On The Embed
How do i set url in feild
liek the one above
that's just hyperlink markdown
[text](url)
do i have to put '' in ()
nope
it's a regular string
just like this [Text](https://google.com)
I have a question, how can I create avatar type commands?
what does that even mean
you mean that prints users avatar?
yes
use author.displayAvatarURL()
épico B)
like, you gotta put it inside the string
i dont understand man
just put it inside the value string
wdym...
client.on("message", message =>{
if(message.content ===("r!avatar")){
const embed = new MessageEmbed()
.setTitle("avatar de", message.member.displayName)
.setImage(message.author.displayAvatarURL())
message.channel.send(embed);
}
});
so?
...
someone needs to learn the basics of JS it seems 
?
its me right....?
but i think it does anyways
AYYY IT WORKS

Following a YT guide probably. It can work but I do suggest usin something like codecademy to learnsome basics
Un canal de spañol
Idk if this is the best place for this but other than auctions is there a good way to advertise my bot?
im not sure
people just aren't interested in your bot
Nah
if it's generic don't expect much traffic either
It’s in 137 and growing slowly
same here
not true..
But I want to explore other ways to get faster growth
come up with an original idea
how many memebers you got until now?
My bot is original
132 guilds
originally fake
idk about members, i don't have the intents
137 guilty
also try branching out to other bot lists
What?
ignore him
Ok lol
the guy just wants to contradict anything 
Ok lol
they're a whitename with little to no braincells
I’ll try other lists
i should do that too
So are you?
they're not supposed to know that 👀
Does anybody know how to make a module reloader? Where you can reload an entire folder so new commands will be loaded?
omg same
rip bot
you can delete the require cache and re-require everything in the folder
With the above method though ^ you'd have to hold references to Objects and then on new file state update, you'd have to Object.assign the new state to old objects which required the file to receive new changes. These changes will only take effect if the file exports an Object as Object.assign works in mysterious ways
And how would I do that?
I made an example at https://github.com/AmandaDiscord/Reloader which you can reference if you'd like. I wouldn't really suggest using it though since it was a proprietary solution and a "public" version is in the works.
I appreciate it. I’ll take a look!
I only kept it so I could send messages.
I didn't have 2FA at the time.

didnt both cry and lite have bots ?
@quartz kindle re #development message
What is the real reason?
have a command for economy for my bot?
i need the command work and bal pls
:c
sorry my english is very bad :c
cry is a server 😮
ohhh
correct me if im wrong, but that would be because of opcode 9
xd you use xd rigth?
from dapi
momento latino
claro p B)
xd
I do receive OP 7 sometimes but Discord asks you to terminate the WS connection which I do. This is when Discord closes my connection with code 1000 and no reason. I also am not sure if it's for invalid session either since voice connections stay active. I know I properly manage the sessionID as well.
I do not expect anyone to read through this entire implementation, but https://github.com/AmandaDiscord/CloudStorm/blob/master/src/connector/DiscordConnector.ts
otro latino awebo

hi hi
Anyone here decent with CSS?
i guess i can count

xD
Could you help me with something small
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
Im trying to get the 3 divs to align directly behind eachother, but they're creating a stairway


sry im on mobile. can't even see your stairway on fiddle
pretty sure you gotta mess around with right and top
what I can tell when I read your description
put em absolute
and if you want to center them
go with left 50 and top 50
and add transform translate -50 -50
Hi do you guys take VR Chat World commissions?
If i'm on the wrong server which one do i go to to ask this question?
Yeah wrong server
which one do I go to?
message.channel.send(confirmation).then(msg => {
message.react('👍').then(() => message.react('👎'));
const filter = (reaction, user) => {
return ['👍', '👎'].includes(reaction.emoji.name) && user.id === message.author.id;
};
message.awaitReactions(filter, { max: 1, time: 60000, errors: ['time'] })
.then(collected => {
const reaction = collected.first();
if (reaction.emoji.name === '👍') {
message.reply('you reacted with a thumbs up.');
} else {
message.reply('you reacted with a thumbs down.');
}
})
.catch(collected => {
message.reply('you reacted with neither a thumbs up, nor a thumbs down.');
});
})```
rateLimit{"timeout":747,"limit":1,"method":"put","path":"/channels/718234815765413931/messages/792920613030461500/reactions/%F0%9F%91%8E/@me","route":"/channels/718234815765413931/messages/:id/reactions"} ```
i got this directly from the djs guide but I still hit ratelimit
i did it with a different method of my own and i hit ratelimit so i switched to this
but even so :/
.then should do it after right 
yes
okk
I did the cmd which sent the confirmation embed and then it reacted those emojis but i hit rate limit :/
ok idk
yeah i am confused as well
im not that good
its ok
this is what i had originally https://hastebin.com/jiwosipadi.js
same issue
need to wait 1 sec before reacting again if you want get rid of that msg tho
yeah ik i did await but same issue
not await
had same issue like u xD
YAY
setTimeout(function(){msg.react('👎')}, 2000)
i added that and it worked ty so much 
setTimeout(msg.react('👎'), 2000)
should work aswell
oh i see ty
That doesnt work
You have to pass a function
rly?
.react() is a function, didnt test it tho :3
what i mean is
.react IS a function
.react() is NOT a function (Its return value is not a function)
oh okee
yeah u right, this one works :3








