#development
1 messages · Page 1561 of 1
but it does have one
yeah just replace, get with find
You shouldn't be doing this anyway. Like Papi suggested, check for a system channel, and if there isn't one just don't send anything
How can I export client in function without passing them in the function?
I am making my own rest api for DIscord therefore I need the token, how can I pass the token to the client?
I don't know what your code structure is
js
That's the programming language...
ik, I want to pass the token to my functions, with rest.login("token"), but then I want to access the token, without passing it on every function
Well you should put all those functions in a class
and store the token in the class
then you won't need to pass it to the functions
but I am working on many files lol
ok? so
so how do I access the token on every file?
I don't think you get what I'm saying
class HttpClient {
constructor(token) {
this.token = token;
}
loginFunction() {
login(this.token);
}
}
That's what I'm talking about. You can now access token in all functions that are inside the HttpClient class. If you don't know how to work with classes then maybe you shouldn't be making your own library
yes , but when login function is in another file, how can I access token?
Maybe you should ask yourself why it's in another file? Do you have a different file for every function?
That's not a great idea
yes lol, for big functions
not a good idea
so I make functions in the main file, which goes to other functions in the file
does not this require super() ?
you're not extending any classes so no
how would i make a ,vote command that when someone votes they get currency
pray to discord gods
lol
oh?
What

it's a joke because they provided no context and expect a concrete answer
i made my bot in develipere app
developers app
i code my self and everything
why there are telling me i do not have a bot
You'll need to add your bot to top.gg before you can promote it
You can add your bot here: https://top.gg/bot/new
PH my GAWD
so i made a new bot since i didnt have any idea for commands for my other one so i scrapped that one and now making a bot all about finding helpful information on a little game called rust(is pre epic) and i started like 15 mins ago and and im making my first command r:droprate ak which should tell me the droprate from certain boxes and shiz for the assault rifle ( ak ) and it was working before until i used args[0] for the little ak part at the end, its supposed to be a multi use command so i can do like r:droprate mp5a4 to find the drop rate for a mp5 without making a whole new file but i think i did something wrong with the args and im not sure what i did, the other problem is im not getting any output / errors from my console
rusty.js ( my main file ) : https://pastebin.com/gvaixHqM
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
droprate.js : https://pastebin.com/5wtMRf00
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
you leaked your token
what's the point of this if
which
the command name comparison
your showing me three at once
im using module.exports in seperate files so i need them
bruh
that if check is redundant if you're getting the command with the same name
just get(command) instead??
the check is there so when the command r:droprate is typed then it will execute the code in droprate.js
yes but
you're not thinking about what im saying
your command variable already has the same value as the command name
that if check is redundant
just pass the command variable directly into the get method
so remove the if check and keep the client.commands.get line
if you keep the same string
every command is going to execute the same command
client.commands.get(command).execute(message, args); so this
Any tips for creating an economy bot in Python? What I should know, what I should expect?
yes
ok
now get can return undefined
so you should use optional chaining
get(...)?.execute
TypeError: Cannot read property 'execute' of undefined
at Client.<anonymous> (C:\Users\fred\Desktop\Bots\Discord Bots\Rusty\rusty.js:28:33)
at Client.emit (node:events:379:20)
at MessageCreateAction.handle (C:\Users\fred\Desktop\Bots\Discord Bots\Rusty\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (C:\Users\fred\Desktop\Bots\Discord Bots\Rusty\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (C:\Users\fred\Desktop\Bots\Discord Bots\Rusty\node_modules\discord.js\src\client\websocket\WebSocketManager.js:384:31)
at WebSocketShard.onPacket (C:\Users\fred\Desktop\Bots\Discord Bots\Rusty\node_modules\discord.js\src\client\websocket\WebSocketShard.js:444:22)
at WebSocketShard.onMessage (C:\Users\fred\Desktop\Bots\Discord Bots\Rusty\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)
at WebSocket.onMessage (C:\Users\fred\Desktop\Bots\Discord Bots\Rusty\node_modules\ws\lib\event-target.js:132:16)
at WebSocket.emit (node:events:379:20)
at Receiver.receiverOnMessage (C:\Users\fred\Desktop\Bots\Discord Bots\Rusty\node_modules\ws\lib\websocket.js:825:20)
so now im getting an actual error
you didn't do what i told you to do
no i didnt get to see ur message as i was already testing for errors
ah
I wouldn't recommend optional chaining since v14 isn't recommended node ver
last I checked v14 was still under new
ok so i dont know what optional chaining is could you please explain / give me an area to learn what it is
The ?. operator functions similarly to the
. chaining operator, except that instead of causing an error if a
reference is nullish (null or
undefined), the expression short-circuits with a return value of
undefined.
Something to note is that optional chaining shouldn't be an end all solution since logical errors can stack to be a huge issue
are you really coding in mobile ?
...no?
i was taking a shit so i was on my phone

how can you not understand such a simple statement
hey
i need help getting a print message whenever someone votes for my bot
im very confused on how i can make a webhook connection as I use https://pythonanywhere.com
Host, run, and code Python in the cloud: PythonAnywhere
webhooks are basically reverse APIs
message.guild.members.cache.get(args[0]) stopped working all of a sudden
@earnest phoenix
instead of you making requests to the API, the API makes requests to you; you need to have an open HTTP server
how do i make one for my host?
🤷♂️
also hey cry
i'm not even sure you can open a http server there
hmmm is there an alternate way?
renting a vps is the most sensible solution
for example something like this:
def has_voted(user_id: int):
headers = {
'User-Agent': agent,
'Content-Type': 'application/json',
'Authorization': gg_token
}
params = {'userId': user_id}
response = requests.get('https://top.gg/api/bots/{}/check'.format(786482293261729833), params=params, headers=headers)
if response.json()['voted'] > 0:
return True
return False
well, it isn't a webhook
it isnt, but is there any logic i can follow? like to get the information without a webhook
you can't
not in realtime
you'll have to keep doing this
bool(response.json()['voted']) 
Norizon big brain & cute
like i mentioned before, webhooks are reverse APIs
No you
top.gg makes a HTTP request to your ip and that's how you know a vote happened
I have 
Hello, whats a good way to detect duplicate text/words in a message? I'm using js
hm
i'm guessing you want to do something like
hello world -> hello hello world world
something like that
right?
For example if they repeated a word hello like 5 times the bot does something. Its for automod.
well, there's a ton of ways a user can circumvent it
Hmm
The member is probably not cached.
but the gist of the idea should be;
per message checking -> split message content by space, you'll get an array of words. then you need to check if an element repeats n consecutive times in a row (i'd do this with a basic for loop)
and then there's checking for multiple messages where you listen for messages and see if there's any that have the same content and that were sent previously
but like i said
no they are cached
this is heavily bypassable and not the worth the effort in my opinion
because i tell people they're morons and to fuck off lmfao
requirement for being a notable member is to act like you're a disney princess
so what's wrong in here?
it's working from what i can tell?
no
i did it like
message.mentions.members.first() || message.guild.members.cache.get(args[0]) || message.member
it shows the message.member part
ah
well
you should fetch the member instead of getting
get is entirely reliant on cache
is it that easy
fetch first looks up the cache, if not found, makes a request to discord
message.guild.members.fetch(args[0])?
keep in mind fetch is a promise, you need to async/await or promise .then() pattern
the former
aight
w h a t
.then(async voted =>
why are you using then when the run function is already async
just use await tho
hi
I can't install seqeuelize. Here's the error
bin the full stacktrace
const site = require('../config.js')
const axios = require('axios');
module.exports = {
async function send(channelid, message) {
if (!channelid) return { error: "A Channel Id was not provided", status: "fail" }
if(!message) return { error: "A Message was not provided", status: "fail" }
message = JSON.stringify(message);
const url = `${site.discordapi}/channels/${channelid}/messages`
const response = await axios.post(url, message, { headers: site.botHeader })
.then(async response => {
if (response.status === 200) {
return { status: 200 }
} else {
return { error: "Not added", status: "fail" }
}
}).catch(err => {
throw Error({ error: err.message, status: "fail" });
})
return response;
}
}
Error: [object Object]
at C:\Users\shahn\3D Objects\Botcode\rest api bot\djs-restapi\Methods\Message.js:19:19
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Object.send (C:\Users\shahn\3D Objects\Botcode\rest api bot\djs-restapi\Methods\Message.js:11:22)
its giving me this error a Object lol 
I think I didn't understand
go to paste bin and add the err log
what npm version are you using
Is this the correct code for user total servers?
message.member.guilds.cache.size.toLocaleString
run npm -v in console
@formal maple most frameworks get the guild count by counting the amount of guild_creates on identify
since when completing the identify process on the discord websocket you get a guild create event for every guild the bot is in
I solved that but I have a new issue
I'm trying to install sqlite3 this time but that gives me error
okey thanks
hey why is this ```js
const emb = new Discord.MessageEmbed()
.setColor('#0099ff')
.addField(${message.author.username} + killed+ ${target.username}+ with an unindentified weapon!, That must suck, doesn't it?)
.addField(${target.username}, Imagine getting killed.... you fucking dumbass. Go back to the gym and get some gains you fucking loser.)
.setImage('https://media.giphy.com/media/3orieP83jvphEiTgeQ/giphy.gif')
i actually want to display the username only
like the tests#...
that's not the same embed you have in your code (at least in the snippet you shared)
@fair axle lol it’s because its message.author.tag
as cry said you aren't showing the same embed as what your code has
array.countItems();
np
what lang is that lmao
if(newMember.roles.cache.some("805646765180452888"))
this went wrong
fn is not a function
what's wrong here?
it used to work sometime
@quartz kindle is that you on the pfp?
ye
The some() method tests whether
at least one element in the array passes the test implemented by the provided
function. It returns a Boolean value.
noice
that tells me nearly nothing as that link you sent me is the actual meaning of what i gave
.some(element => do something with element)
so
you have .some(element)

if you want to check if one of the roles has that id, yes
alright thank you very much
but if you're gonna check the id, better use .has()
lmao
query params
Ok, thx
lmao
got em
uh oh
NOO
unfortunately flaz you're at the mercy of the discord client being shit
lmfao
fuck me
per usual
ye
Install build-tools?
show the rest of the error, there should be more information up
player1 is not defined
Use members.fetch() instead
why are you using await on cache.get() 
Or if you're just going to use the ID, just pass it directly to the PermissionOverwrite data
You don't need a member/user object for that
I'm still debating whether I should write my own parser for a programming language or use a parser generator like antlr4
What does this mean
Converting circular structure to JSON
Im trying to store a voiceChannel on quick.db
You cannot convert an object that references itself in a json string
Okay so what should I do then
I didnt stringify it
You're definitely calling JSON.stringify to be getting that error
How to make any command redirectable to a specific channel in different server
😞
@cinder patio well I got past that point but voiceChannel.voice.setSelfDeaf isnt working
Show how you're storing the voiceChannel in the database
you shouldn't be storing the entire voice channel, only it's id. When you need the object, you get it via the id you stored
const { channel } = message.member.voice;
no, how you store it
queueConst.connection = await channel ;
db.set(`queue_${id}`, queueConst)
Like I said, only store the channel's id to the database, and when you need the object, fetch it:
db.set(`queue_${id}`, queueConst.id) // Assuming queueConst is a channel
const channelId = await db.get(...);
const fetchedChannel = guild.channels.cache.get(channelId);
// You can now use fetchedChannel
which lang?
Okay
How should I get the guild bcs im sending the info to my util
should I do client.guilds.cache
If you only have the guild's id then yes
sure
If I want any user to set welcome message to specific channel what I need to code
I'm confused with it
😓
okay now im getting
const voiceChannel = client.guilds.cache.get(id).channels.cache.get(queue.connection)
await voiceChannel.voice.setSelfDeaf(true);
Cannot read property 'setSelfDeaf' of undefined
ah ok
we won't spoonfeed you
I got it
I knew the response will be :
That was for Saumil
Lol 😂
its against the rules to spoonfeed here, you will have to learn how to do it
Ok I'll try doing myself
i didnt even understand what you want to do
Telling me ?
ye
Ya
I'm not able to understand 😓
which language are you using
I googled it too
okay
voiceChannel.play is not a function
Python
const voiceChannel = client.guilds.cache.get(id).channels.cache.get(queue.connection)
do you have a database?
Ya
which one are you using?
Json
BRUH
Yes ?
JSON is not a database.
Oh sorry 😂
Console log queue.connection, debug your code
{
connection: '804945992214511625',
songs: [ 'https://youtube.com/watch?v=YQHsXMglC9A' ]
}
@cinder patio
I would always recommend postgresql and using asyncpg
oh yea
whitelist lib discord links 
anyways if you use asyncpg there are tons of gists in .gg/dpy
And connection is an id of a channel?
explaining how to use it for whatever you want
Ok
ok now im getting Unknown stream type
I forgot to connect to the voice
High Quality Explain Man
How to setup like whenever someone votes he/she gets the server voter role for few hours only
And gets it again if he/she votes again
@gilded olive bro is mangodb ok ?
Mangodb is not a database ?
mongodb is a nosql db
Ok
How do I disconnect my bot from a voice channel
voiceChannel.leave() for discord.js
@mellow kelp didnt disconnect or error
Okay fixed
you got any idea why my bot randomly stops playing the song?
nope
do you know if ytdl works?
i mean, you haven't provided code or anything else
const ytdl = require("youtube-dl")
connection.play(ytdl(queue.songs[0], ['-x', '--audio-format', 'mp3'])).on("finish", function () {})
im almost sure you should be using ytdl-core
um ok
yeah
the bot lights up
but it isnt playing anything
file
Tahts how I transfer js to lua
?
just do a loop in python checking for changes in data.txt
have C write to data.txt
okay that's a horrible way of doing it please use named pipes
and they were probably asking for translation
compile?
I got an error when I switched to the new version of discord.js. What is the problem here?
The problem is you can't go from v11 to v12 wihtout a lot of code changes
You aren't showing the full error, but it's probably because bot.guilds (and similar properties) no longer extend the Collection class
You have to do bot.guilds.cache in order to access the collection
Discord.js v12 introduces the most breaking of all breaking changes: Caches
Almost every single collection you could directly access methods from have now been moved to their respective "cache" sub-property, so if you want to do things like get() and find() and filter() collections, you now have the joy of adding .cache to everything - almost everything. For example:
message.guild.members.cache.get(userId);
guild.roles.cache.find(r => r.name === "Super Awesome Role");
client.users.cache.get("210246661446959104");
I say almost all, because some things here and there have remained collections, and they're scattered all over so you can't just globally replace everything. Here's a page describing all the v12 changes: https://discordjs.guide/additional-info/changes-in-v12.html
Good hunting, and remember kids, everything is hidden in the cache (it's a french pun!)
caches djscache v12
Cython makes it pretty easy
Thanks, I'll search
can someone look in #topgg-api
i legit just answered your question
👀 Thats... a pretty shit idea most of the time
thanks it worked
@cinder patio How can I send my connection bcs I need my connection in other places so I can do a pause and resume
well save my collection
to another question, how did my bot send a private message to people who enter their server?
either you made it do that or you leaked your token somewhere
i think they meant how do they
what I'm saying is that when someone enters my bot to a server I want me to send a message to the private one, how does he do it?
So you are logging when someone joins a server
as I understood you well no?
What programming language and bot library are you writing your bot in?
Evie
Aki
How should I save the connection to a voice channel js
evielang™️™️
I've no idea
you can't save it
why you do need it though
So I can use the stream to pause and resume the audio
you can re-fetch the users in the voice channel when your bot restarts/resumes
ah
in that case you only need to know which channel (id) your bot is in, what song/queue is active for that channel, and then continue it
I have all that
yeah?
but to pause I need the stream
I created my bot from a cell phone a Google play application but I do not know how to make that when someone puts my bot on their server I send a message to the private
what do you mean by "pause"?
tell me how to do it?
what why
you mean using a command?
?
im about to try something absolutely retarded
ono
like, this has to be peak stupid stuff anyone can do on discord

How illegal is to use gifs and setup a Tv bot for discord streaming TV channels/Twitch streams using real time gif converstion and editing the messages tuned to it using gifs chunked?
@opal plank you developed the libary too, #topgg-api message Do you know if I should have to pass the whole count?
no idea
try it

bots cant stream tho
let me see rq
the idea is to use gifs as chunk data
???
it will probably be clunky and slow af
convert real time Stream into gifs, and then simply edit messages on that "Tv channel" as new content comes
try it
name it "50s TV"
@tired panther yess, ALL server counts
Boot leg streaming for bots 
that should be mentioned in the read me lol
this has to be within the top 5 stupidest ideas for Discord bots
do it
its fairly clear, dunno if theres much need, it simply says total server count
let me start piping some random ass server stream rq
converting it real time will be a pain
also CDN issues
will likely need a good local storage

cant rely on imgur or anything due to ratelimit and daily quotas
can i send gif directly as buffer?
you cant edit buffers so you need urls
unless you want to keep sending new messages
hmmm fair
thats the thing, that'd be constantly uploading new data or editing it
imgur has fairly large rates, but at this point its bound to hit almost within minutes
every 10 seconds of stream
convert stream to gif
create endpoint in express or whatever
edit message to new url
oh, you right, i could use my own thing
hmmmmm
imma need a shitty domain tho
to mask my ip
why not use 50s.tv
lol
:v
get a shitty free domain
my website is all free
,
github pages
like .tk or one of those .co.something
or that
lmaoo
any free domain thing yall know of?
they're all gonna be shit, but oh well, might have something decent
wdym?
it will return the cloudflare IP ?
hmmm
you can use cloudflare yeah i guess
lmao
or just make ur server unddosable
just do a test run with your own ip
domain, local storage, api, probably ruby or rust to gen the gifs, its a lot of annoyance
he has a 128gb ram server

ye
24 cores :0
u rich
well u can't hear
:^)
u can only read it =))
im broke as hell my dud
132GB of ram total
i think theres a second one for this too, but i think its 16gb
I don't even know how many cores or ram my server has
cuz im using Github pages ;))
wait ur linux?
hold up
nah, im windows, but the servers are running linux
imagine using windows in prod
winserver2020 :^)
Windows in prod wouldnt last 4 days up due to the shitty windows updates

before you say it
Window server is shit
even after you disable updates, they still pass through
and even microsoft knows it
Im wondering does those 24/7 music on Youtube are streamed on a MS server?
even after you disable updates, they still pass through
nope, if so you didn't edit the right group policy settings
hold on
im holding on
lmfao

ew Tim is blueish... looks ugly
lmao
im lowkey amazed that my processes arent the ones abusing the dedi
it matches my pfp tho
, he is a good dev
a god dev
lmao

@opal plank https://img.pyrocdn.com/TqNdV_Fo
lol
xD
right is the dedi I share with marco and tonkku, middle is my home server and left is pyrocdn.com's hosting solution


it pissess me off that im not ontop
elk is ontop
actually
no, some random ass minecraft server
how dare minecraft use more ram than my bot?
I was wondering "tf this guy knows java and he use vps for a java app"
thats swap
my internet is 
smol boi
oh wait
lmao
imagine writing optimized code
I forgot to include my main pc
shame on u tim
minimalistic, marx would like to have you as best friend
I wanna buy a Internet booster that boost my mbs to 200gb/s
when they will exist inform me lol
they are existing?
no?
200 GB?
200 GIGABYTES per second?
cuz its still in storage
not in speed
mbps != mb/s
mb/s infers to disk write/read speed
which is usually a lot higher than internet speed
mb/s = mbps = megabyte per second
actually no
bit and byte ...
MB/s = megaBYTES
mbps = megaBITS
Mbps : Megabit per second (Mbit/s or Mb/s)
MB/s : Megabyte per second
1 byte = 8 bits
1 bit = (1/8) bytes
1 bit = 0.125 bytes
1 megabyte = 10002 bytes
1 megabit = 10002 bits
1 megabit = 0.125 megabytes
1 megabit/second = 0.125 megabytes/second
1 Mbps = 0.125 MB/s```
handy cheat sheet
mbps is used for measuring internet speeds because its about how many signals can the line transmit per seconds, hence bits
MB/s is used in storage because most systems use bytes as a unit of storage, ie each character in a string takes 1 byte (if encoded in utf8)
you'd need 750,000 MBPS to match a 90gb/s speed
thats 750 gigabit internet
discord media proxy fucking up again
amazing
oh, NOW it sent

downloads are measured in MB/s because its about how much data you're storing
stop harass discord just bc ur surfing with 64 kbit/s
lol
56k modem
lmao
fek news
you're fake news
huh abusing my name hurts 
How much do you pay ?
he steals it
i pay this much ^^
yeah, gigabit port
both my local pc and the dedi have gigabit internet
what?
no unlimited bandwidth smh
though the dedi has a shit ton of available IP's for me to rotate
Is this a joke lol?
no, im serious
it says only 5 usable IPs tho
i event sent the screenshot of it above
no unlimited bandwidth smh
well never saw somebody offering this for dedicated servers
I can get 500/500 for like an extra £3 (3.81$)~
simmilar to what I have but I have 1tb instead of 2tb and more cpu speed
lol
in practice, not quite
i think theres actually 19 ips i can rotate with
cool
and where do you get it
?
OneProvider does
hey...wazzup...can someone help me? I have problem-Im from Czech Republick and I want to have my bot help command in czech...everything is fine but I cant figure out how to make the Type .help command for more info on a command.
You can also type .help category for more info on a category. transtale..any idea?(Python)
stealing from a friend
lol and he pays lol?
she uses it for herself, but she doesnt put any heavy load on it, so she suggested i try to even DENT It, which i managed to do, with my 100% optimised code
4h uptime and i managed to do this
using the twitch doss project

I do not I have a dedi
, I belong to the wall of shame
Well make sure to read the ToS... read "unlimted traffic" quite a lot, but it will be throttled reaching XX TB
It doesnt considering we uh
yes

I wont go into what we do
but we use a fuck ton
how much ram lol?
I meant on my home network
ah lol
for £63 a month
my friend where host my thing has, 1,6 gbs up and down lol
i think in canada we had 10 gbps, but i cant recall exactly
though we all shared the cost, it was 6 people in the house
i think i was paying $80 for it
fucking http
getting 403 errors

ridiculous... how much money u have to pay in some 1st world countries
compared to that I'm paying ~ $70 for 500/50 which is ridiculous
HUEHUE land
i've been on both sides of the coin
1st world overpriced, 3rd world dirt cheap
all wars that humanity has had were all based
I forgot I was in development oof
lol
hey...wazzup...can someone help me? I have problem-Im from Czech Republick and I want to have my bot help command in czech...everything is fine but I cant figure out how to make the Type .help command for more info on a command. You can also type .help category for more info on a category. transtale..any idea?
http.cat is based
Are you proxypassing it?
If you are that 503 is coming from nginx/apache
if not
I have no fucking squibbley squobble

When you realised
that almost 50% of all my queries are blocked https://img.pyrocdn.com/Y3xcddBg
wtf where
oof
brazil
i mean which ISP
NET using both discount from employee and 10 years bonus from sticking with them
then go to them
yikes, OI is shit
How much times can you change the bot status in a minute? for a test bot lol
they are not available where i lived
TIM is nice for mobile data, CLARO is besst but a bit overpriced, but has quality, NET is by far the best when it comes to home internet
also
what
the
fuck
i thought we already been trhough this
lmao
I read this wrong
lmao
my brazilian phone number is from TIM

Tim using TIM
non of them Ik, Europe Internet is very expensive, 300 mbits download are 50$ for just 20 mb upload
usually the combos are 10% of the down
so, if you get 1000 down, you get 100 up. 20 down? 2 up
Europe Internet is very expensive
still depends on the country but yes, it is
aka asynchronous connections, ADSL style
middle Europe, translate my name on google lol
here in portugal im paying 27 eur for 100/100MB
just finished writing an abusive amount of javadocs
best internet i've ever had in my life
now come write my jsdocs with erwin
We both are 💶 Euro xD
dont worry kuuhaku, tim is doing all the work
i just sit here and watch him do everything
imagine, you lived there for internet

tru
here in portugal
traveling to portugal now, meeting u just to fuck u up
wtf
he told me to do it like 5 days ago, and i've yet to write anything, cuz he dont let me

HMMMMMMMMMMMMMMM https://img.pyrocdn.com/dG3V0CFH
#exposed
cool
wow amazon want my data
damn, mission aborting - looks like the targets enjoys it
free corona 
you can start writing, check my latest changes and continue that style
will do sire
although there are many things that require insider knowledge
so you can focus on the typings and let me write the doc
Do you use the JSON stringify function or does another lib do it
the lib
actually
back in the ☮️ age xD
well trace back the error and see where exactly it happens
now look for getArtifactsSets calls.
are u making a rest api?
i already made a rest api
mmm, can you show with what args you're calling it?
this is for Genshin impact
lmao idk if it still has that issue
havent tried replicating in the latest versions
The error cannot be coming from there then, there's no circular references in that object 
thats what im confused about, but this is the only thing i can think of
let me remove that line rq
hmmm
fuck hell, im still getting 503's and 500's
though i've yet to come by with the circular error
that is such a bad diagram shame of that tooling
this is working everywhere else lol
it's literally the only thing I could find that was free lmfao
Yea
oh
you dont have a update constraint
UPDATE will apply the action to every row matching the constraint
👀
yeah... SQL can do that to you
@cinder patio
this is where the request errors are coming from
not sure about the circular one though
havent had that one happen again while debugging
though somehow thats returning undefined
which makes no sense whatsoever
weird
by anychance, does guilds contain no foreign keys?
for discord.js
?
id is defo UNIQUE correct?
yea
wdym for discord.js?
they are rest apis for send requests to the discord api
I think its cuz you look like you got a really fucky layout
you're confusing fingers with thumbs Meister
unless your diagram is just really really bad and not showing foreign key columns
Nah i just realised id isnt a prim key in the econ table
Discord uses REST API, it doesnt mean REST API is discord, much less discord.js which is a library
not every finger is a thumb
I made one for my own usage, but its a peace of sheet lol
every thumb is a finger
MMM yeah didnt think it was
can be PK or UNIQUE, i think either should work
I meant DIscord api + Js + rest api ==> discord.js rest api lol 
Ik I speak very complicated
but also
pog
that made no sense
still dont entirely get why you have https://img.pyrocdn.com/d503B5K3
when it looks like each row in economy is only tied to one user
good promise resolve 
i'll be to dms
yeah but thats like.... A really bad thing todo with SQL
JOINs are expensive operations
how stupid would it be to create a dedicated table for each user?
Yea, I know
and I only use them where I have to
mysql lol
I hate tables lol
tables are nice tho
hmmm very
really stupid
like, REALLY REALLY stupid
Where can I find a example of slash commands in js?
d.js doesnt have support for slash commands iirc
you can send manual requests, but thats about it i think
d.js will support slash commands in v13
can't wait... I'm currently rewriting my bot with slash commands
xD
/ Slashcommands
• will release with or after v13.0.0 (requires v8 api/gateway)
• being worked on in https://github.com/discordjs/discord.js/pull/5106
• typings in https://github.com/discordjs/discord-api-types/pull/44
If you need support for Discord API usage, see #slash-commands channel in discord.gg/discord-developers
when will it support it? after 2 months?
In v13
The release date for discord.js v13 is "When it's ready"
Why in the world is it saying unexpected input in line 39, 38
You're literally doing Promise.prototype.catch() on an embed
You didn't close the .then() before doing so
hi, someone knows how to send messages to the DM but for all the members of the server
Mass Direct Messaging is considered API Abuse and is prohibited in most if not all servers
when discord.js light would have it lol
when discord.js does probably
discord.js-light just customizes the caching behaviour of discord.js
Might aswell make a folder for each user, then have a folder for each value.
Like filesystem folder database
New meme database package for nodejs?
now this looks like a job for me
Pog do it
does anyone know any cool bots\
Does anyone know what's the keyword enum even used for in JavaScript? When used it just says Unexpected reserved word
It's an actual keyword
weird










