#development
1 messages · Page 1592 of 1
Ah fair enough
answer from 2013:
When the sub domain is created, PLESK places the default index.html file in that folder. I uploaded the sub domain content via FTP but forgot that my default page was index.php (not .html) - this made both index files to be present in the sub domain root folder and PLESK was showing the .html file and not the .php file.
I simply deleted the .html file and it just worked perfectly.
Already tried, I deleted the default files and added my own that outputted the page headers for testing
size is not a function
I know..
The size accessor property returns the number of elements in a Map object.
you clearly dont
So why did you write these ()
lol...
yesterday you were on a whole troll streak
if you're gonna ask for help, at least listen
People who knows about js doesn't use () on properties
one would think after all this time you would at least learn what are functions and how do they work lol
adding () to something means its a function
to call a function
Why did I have to get a secure domain (one of the urls pointed to my url shrinker)
Also, functions uses () for their parameters
though in fairness you dont always need that
why do people think I troll.. I dont even really know what that means..
lmao tons of data
A bot isn't easy to make, first learn and get a solid understanding of the language
you're oblivious to what we are saying here, and most of the time you dont listen to what anyone is saying here
"several people typing"
i've fowarded you the docs to learn js quite a few times by now
and you still stubborn on making a bot without knowing what you're doing
Well I think it's another matter
You missed it
It KIND of is..
xD
Don't just learn js, you have to understand js
Tim are you any good at site analysis?
No.. I do.. I just dont tell I am.
what kind of analysis?
Like vulnerability testing
Damn
its no shame to say i dont know how maps works
don't blame smug
Do you know how to sql inject?
yes
maps? Bruh I havent used novigator for 2 weeks now.
It's not too hard tbh
Just type a '
it also seems you've been blatently copying stuff
And poof
out of my own concerns for my shitty code, will you test my text boxes?
he's not a native english speaker so you can't really blame them if they don't understand something
lol sure
I will send you the link in DMs
thats what I do. @opal plank
theres no excuse if you dont say "i didnt understand"
Who's not a native english speaker?
smug
😐
doesnt change the fact at all snails
#Russia
most people are not native english speakers
Yeah
im not native speaker either

Same
Same
I'm just tryna be on smugs side lmao
how are we even suppose to know you didnt understand something if you dont say it? we dont read minds snails
@quaint wasp if you don't understand something just say "i don't understand" don't make some stupid excuses
alr.
well..
Then all you gonna do is spam me with https://discord.js.com/ or smth.
And I mean I do read those..
but still doesnt really help.
Yep
then don't spam him with https://discord.js.org/ as it's not gonna help them understand the lang
this is because we know you are new to javascript, you need to create good habits:
- do your own research
- dont come here the moment you get an error, try to fix it yourself first, if you cant, then come here
- debug, see WHY its error'ing
- reading docs
And it uses advanced JS concepts so you must have a solid understanding of JS
"debug"?
thats precisely why i said you should NOT start with a bot
What does that do?
debug means going thourhg the code to see why errors are happening
It just gives you like 500 random errors..
thats exactly what debug means
De-bugging
find WHY and WHERE errors are happening
Removing bugs
It's telling you where the errors are
Happens in index.js file line 40..
yes..
it points you where the error is
then go check line 40
So check that line and try to fix the error
and see what you got there
go on the file, at line 40
and then check what the error says about it
thats debugging
fixing bugs
find bugs and fix them
thats called debugging
I did. I tryed memeber and members before tim told me to try again and I even tryed to add and remove some stuff.. And still didnt work so I came here.
idk if you are translating, but bugs = errors
on debugging console.log(); will be your best friend
or unintended behaviour
if so then I do that all the time..
then you are already debugging
doesn't the error literally say "size isn't a function"
you know that functions are
something()
you coul've googled 'x thing is not a function, javascript'
it says its not a function
I dont understand what function is now that I got that..
thats why i sent you the docs before
that's like the most basic thing, even my sister can do it
you NEED to know the BASICS of js
and she's like 5
That's where the repetitiveness of "Learn JS" keeps popping up.
functions is some of the most basic features of js
Properties vs functions 
a function is like a compressed block of code that you can call everywhere in your code
you're gonna confuse them
thats what I thught all the time.. but how can size not be part of that?
cuz size is a property of map
(Also I know that from um.. that thing called "Scratch")
cause size is a cache propertie, not a function.
console.log(guild.member.cache)
What will that do?
it will log all the members in your cache
also that ^^
On big bots that probably will crash the console
lol I got a feeling it will grab there ids and then there users and tags and then somehow tokens or smth.
^
Tokens?
I recommend giving up on your bot and learning the language first, the you may come back
if tokens were that easy to access everyone would get hacked with people login in their accounts
Most decent terminals also have a max size to stop 5he whole crashing issue
I usually set it at 500 lines
Yep
true... Also says guild is undefined.
Oh baby
did you just copy the code
you didnt show what appears before, so thats as far as i can show you
He just restored the chat's health lmao
Trust me, if I wasn't on a good mood I would've dropped everything I got on this guy already
We must be patients
do it. Im fine with it.
He's trying to make something that he likes
what do you mean by that?
Lmao
Can I have some popcorn
🍿
I mean you're trying to make something that you like
what are you even playing omg
Im eating bread lol
Thanks 🍿
Yes...
pls help me i how to start php on node.js
Im trying to make a simple bot for fun... and idk.. help others moderate there servers?
how
We'll not stop you of making a bot, we are suggesting you to first learn and understand the lnaguage before going ahead with your bot
go to terminal.
oh btw, how old are you smug
You don't use node to start php
Pretty sure he's been told that at least 5 times.
oh okay
i how to open php :d
and then if you want to compile the kernel you run node sys32_kernel.cpp
You can download xampp to start a php server I think
@quaint wasp stop, they asked that as a joke
20*
how are you supposed to run php on node?
did you caunt or something @glossy spoke
i make it glitch project on php https://fluoridated-twisty-bonobo.glitch.me/ but its not working
node php.js 👍
?
count
npm i php
I'm leaving this place now
ok
oh thx
No, i just said a random number based on the SO MANY times we told you that
"Oye"
Spanish intensifies
Lol
can i make cf dns redirect to ip:port
Erwin what have you done
@mellow kelp Wanna help me to teach @opal plank spanish?
Are we allowed to swear in spanish tho
bad things lmao

i already know spanish
#development...
don't mess up with the whitenames like that smh
We're joking about development
the spanish well.... ya
callao
callao 
Oh he totally did the php i
what have you done @opal plank
Hello
oh man php is so hard
@opal plank 
Pudocho, I'm sorry to break it for you, but that's not how php works
@toxic jolt No offence but did you copy past?
I swear I'm loosing braincells
Don't lie. This chat is
Wait there's a php view engine?
you're not the one to be talking about copying & pasting

@copper cradle @craggy pine oopsie

What have you done
.. uh... dont talk about the stuff that happened in past...
😳
chim pum callao 
como la lacra que es e.e
Okno
I hope he will not understand
a
gonna get bonked with a -noes if you keep talking spanish in #development
k im out
muy atrevido suponer que no hablo español
aigh back to english
i forgot i hit 1 billion presences parsed in a couple days
kinda
presences received ig
@solemn latch its how mane presences has been parsed
in the past couple days
its 430k users
actually, 441K
so they are emit presences
that shows how many presences have been parsed from all those users in the instance of the bot
logging gateway messages be like
for example, i started an hour ago, and its at 2.5 million presences parsed
each presence recived adds 1 to the counter
I meant messages as in responses
No, I meant literally discord gateway responses

you could say literally anything and erwin's probably logging it 
"how about # of times a 12 year old got banned from a server with 65,152 members" "yeah, right here"
@opal plank do you log how many times people go to the bathroom?
yes
and how many times the bot blinks too
😳
blinks per second
let bresponse = await axios.get(`https://api.blox.link/v1/user/${id}`)
let bdata = JSON.stringify(bresponse.data)
console.log(bdata.primaryAccount)```
tried this
```js
let bresponse = await axios.get(`https://api.blox.link/v1/user/${id}`)
console.log(bresponse.primaryAccount)```
and this
-- neither work, both print undefined
once the request it sent it prints this
{"status":"ok","primaryAccount":"496986320"}
axios returns a response object, not the data itself
o
you have to get bresponse.data.primaryAccount
also
you're using it wrong
JSON.stringify returns a string
string.primaryAccount will error
cuz, well, strings
also, in the second case
its bresponse.data.primaryAccount
both snippets are incorrect
np
yeah, it's really useful to catch errors ahead of time
also it provides a lot of auto completion
100%
let me get you a video
lazy 2minute video: https://www.youtube.com/watch?v=zQnBQ4tB3ZA&t=4s
full video 12 minutes: https://www.youtube.com/watch?v=ahCwqrYpIuM&t=177s
@outer perch
if you going to do a rewrite, i recommend using detritus, its a pure ts lib
and from what im seeing, a LOT better than d.js's
🤔
lazy 2minute video: https://www.youtube.com/watch?v=zQnBQ4tB3ZA&t=4s
so good so far
goin' on to the next one
aight
fireship yes
😩 👌🏻 🔥 💯 💵
only complain i got is that his website is a bit too big
it's a must in everything I know, but I already have the main file as 'bot.js'
o
well, yeah time to swap things up
it works cuz of package.json telling the main file is bot.js
yeah package.json is cool
he's a bro
@outer perch take the considaration from what i said before
ditch d.js, ascend with us
😮
use detritus
not sponsored
if you plan on using ts, might as well use a full fledged ts library
no preblomo, its unironically an amazing lib
this is the devs discord for detritus https://discord.gg/a89v9vSX
if you plan to switch, theres a good chance you'll wind up having some questions
aight thanks
no preblomo
I see the popularity
thats the thing, its an amazing lib but not well known
really popular server
the moment you look into their code you'll see the difference
bad thing is discord.js gets a lot of free advertising with shitty youtube tutorials
i still am ashamed i started learning js with discord.js tutorials 😔
hmm yeah, popular server it must be
detritus has been on discord api for quite a couple months now
why am i reading your messages with yoda's voice
do i need help
i just realized every DDoS attack ever is basically
"I used the api to destroy the api"
funfact theres quite a few devs there with anti-raid tools
there hasnt been raids in quite some time
?
wait a min. it's possible to use d.js with TS right?
i'm using an ssh github action, but it's not running .bashrc, or .bash_profile
it is, but i wouldnt recommend
so i can't use yarn global commands
no clue
well when i say yarn just imagine it's npm
the thing is about the ssh thing not running .bashrc on login
guess i'll continue my search online
prob better off google than me there
I love how this gives you info before running into stupid errors
what the fuck
just by using :
why would you do this?
to test ts
SSD?
Screenshotted, ok
xD
SSed
sssssssssssD
Incredible, it's been a year since I started programming by myself
basically, 17th It'll be my bot's anniversary
before detritus, if I just change every file extension to .ts the code will still run like nothing happened right?
depends on your tsconfig.json
since it's just a superset
That attack still will not be stronger
I was jk
if you have noImplicitAny enabled (which you should btw) you won't get errors i guess
The windows ping is for a velocity testing, to eval the reponse time
but you should enable noImplicitAny
it will force you to type function arguments that don't have a type
yeah, to strict the values to it's type
yea
another option i would recommend is strictNullChecks
it will treat null as another type entirely
so you'll have to explicitly say that a variable may be null or undefined
you need to transpile stuff, but yeah, make sure you allowJs in ur configs
and allowImplicityAny
cuz i think thats off by default
no no, I really want to rewrite what I need to
yeah noImplicitAny is disabled by default
i'll give you my configs if you want, though mine are on the strict side
eventually I'll learn Angular or React later, since i saw ppl use TS to work with those, I wanna learn TS too
oh yeah angular uses ts
React doesn't?
it's not necessary
I still don't know which should I stick to, Angular vs React
but it's really useful
{
"compilerOptions": {
"target": "ESNext",
"module": "commonjs",
"moduleResolution": "node",
"outDir": "out",
"sourceMap": true,
"strict": true,
"allowJs": true,
"esModuleInterop": true,
"importHelpers": true,
"strictNullChecks": true,
"experimentalDecorators": true,
"noImplicitReturns": true,
"noImplicitAny": true,
"lib": ["ES2019", "DOM"],
"declaration": true,
"watch": true,
"baseUrl": ".",
},
"include": ["src/**/*.ts", "commands", "globals"],
"exclude": ["node_modules", ".vscode", "emotes"]
}```
i can hear ben awad approaching
I saw some discussions about that
angular works amazing with ts btw
@opal plank do you run your bot with source maps on prod?
isn't there a 2020 already?
kinda curious if it brings performance issues
yup
shouldnt be much of a hit, cuz sometimes i do debugging in prod
oh alright
@outer perch there is, but i use 2019
which is the difference?
Help me fix with that $mentionedname thing i need to hide that
check the target
i cant tell you since i dont remember, but i recall needing a specific version
i thinnk it was related to bigInt
holy crap i just used cat on the node executable
Is that bdfd?
ew
linux command
i think i was checking that just a couple hours ago
shows a file's contents
oh, right
got lots of question mark boxes
the youtube binge loop is sucking me in!!
https://youtu.be/fsVL_xrYO0w
Learn how object-oriented 🎁 and functional ❄️ programming are awesome in their own ways. Also, get infallible answers answers to questions like "composition over inheritance?", "GIF over JIF?", "Is a hotdog a sandwich?" and more!
Special Thanks to Patrick Mullot - you rock!
Functional Cake Recipe https://probablydance.com/2016/02/27/functio...
I � unicode
oop ftw
he said that's wrong
but functional is the wrong answer wrong too
opinions are all trash
just do you
export default class Main {
public static main(args: string[]): void {
console.log('Hello, world!');
}
}
i have created typescript java
wai- whaaaaaaat?
export abstract class _Main {}
export default Main extends _Main {
constructor() {
super()
public readonly hello: 'Hello, World!'
}
run:((this) => {console.log(this.hello)})()
}
@mellow kelp beat mine
Why do You need to call super or there is no constructor?
Yes i guess
...
Ok so we don't know about bdfd's language
Try looking for someone that uses that app
shhh
cuz bad code
i improved it
export abstract class _Main {}
export default class Main extends _Main {
public readonly hello!: string
run!:() => void;
constructor() {
super()
this.hello = 'Hello, World!'
//@ts-ignore
this.run = (():void => {
return console.log(this.hello);
})()
}
}```
there we go
thats a functional console.log('hello world')
you still need to run new Main() no?
yeah
:S
@quartz kindle
thats the most retarded hello world i can think of, with shitty advanced code
wait shouldn't line 8-9 throw a type error
you're assigning void to a function that returns void
oh fuck yeah i need some of the basic help again because im a fucking retarded
well
someone know how to host a domain with a express app?
wrong, i added ts-ignore there
like a chad
using ts-ignore in ts is like using if-else in a command handler
"oh no! anyways-"
@green echo see you later
nono, its like saying to the compiler : i know the next line is wrong, dont bother
stuff like remote eval with puppeteer require it btw
you cant have document.getClass for example inside ts
since it gets evaled inside a browser
stuff like this is valid syntax
Well it has some java scripts called $eval
Ummmm
:void :any
shhh, no tears, only dreams
Java script be like
Car pet
What is $eval and how to use it?
where are you from
It is what you made it be
I made my bot from mobile
I'm sorry for you
you bot ?
NO
where are you from
Botghost, dbd or dbm?
To hide that mentionedname shit when i dont mention anyone
Botghost, dbd or dbm?
türkmüsün
Ah, bdfd
türk varmı burda
Other langs in #general-int
ı from turkey
Im from India'
One message removed from a suspended account.
you just got dad'd
FINALLY
No, not finally
....
I just wanted to know which maker was
You'll probably not find a single maker dev here
You'll now become times new roman
nooo
really ?
But i heard someone is coding in mobile here...
Coding in mobile != bdfd
IK
Wdym
Get serifed
No
Ok
lmao
I will show u the screenshot then
But anyway, what's the issue?
To hide the $mentionedname when i dont mention someone
If it was raw js, all you'd need was a simple if-else clause
See if bdfd has some kind of logical decision
hey umm
😭🔫
discord oauth isnt returning access_token but it returns the user object wtf
it used to work until last night
what
yeah
like wtf
i get the code
i send it to /oauth2/token
it returns the user obj without access token wth
are you sure you're in the /api route?
👀
i feel dumb yow tf bruh
message.guild.roles.cache.get(role id).id is this a good way to make sure the role id user inputs is actually a role in the server?
wait what 
can you tell me if that's the right way?
I want to make sure that the role id they give me is actually a role in the server
yeah, i was being dumb, yeah i dont see why that wouldnt work
probably a cleaner way, but i dont know it
what if the role isn't in cache?
it should be in cache right?
okay I am just gonna go with that if it gives an error they can always ping the role or i can fix it later
ty
def get_prefix(client, message): ##first we define get_prefix with open('prefixes.json', 'r') as f: ##we open and read the prefixes.json, assuming it's in the same file prefixes = json.load(f) #load the json as prefixes return prefixes[str(message.guild.id)] #recieve the prefix for the guild id given
got a key error for line
return prefixes[str(message.guild.id)] #recieve the prefix for the guild id given
probably not a good idea to use a json db
Don't do this
k
no
I told you beforehand to use postgresql

Or sqlite
i dont know how to
MySQL/MariaDB?

👀
mongo is fine too, pretty simple
async or no
!?

Just maybe 2 weeks ago you told me you'll stop with this JSON as a DB thing and learn sql, guess not
yea i agree
Json db can be used but ONLY for a few quantity of data,
Sql is still better
For everything
Nah, json is only for read-only data AT MOST
Aka read-only files
Imagine adding economy for a bot with 2.5k+ guilds with a json db
No problem if you make a backup every minute

Every write you mean
Don't let users hear that
For big bots a minute of data loss is a big data loss
I have a command Called Play But when I run It I expect to have the bot play music ||ofc lmao|| But when I run it I get this error:
at Object.run (/home/runner/Music-Canary/commands/music/play.js:25:43)
at module.exports (/home/runner/Music-Canary/events/message.js:46:17)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:89) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:89) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.```
everything else works even changing prefixes but I just can't get the commands working
Play command:https://sourceb.in/vA8nknkTzd
Queue command if it is the problem: https://sourceb.in/QIx5Imxxa6
it shouldn't be that hard
https://i.imgur.com/LgGCD6K.png message.client.queue is undefined
client does not have a property queue @earnest phoenix
client exists
client.queue doesnt
whats so hard about that?
i've seen that code on so many fucking websites
its 10000000% guaranteed they copy pasted it
I can tell you one place where most people copy it from
i can tell you 5
I know know a github it's on
here, stackoverflow, discord.js guide, some github repo, "my friend dm'd me"
5 best sources
this guide actually explains some really basic stuff 👀
I don't understand why people copy and paste code especially that code its not even that good
actually nvm, it explains nothing
nothings commented
best guide na
oh wait, one section is commented, woah
amazing for that one section
not using comments 🤢
especially in a guide
what might be the cause of this error?
//luego creamos el mensaje embed
const welcome = new Discord.MessageEmbed()
.setAuthor(member.user.tag, member.user.displayAvatarURL())
.setTitle(`Bienvenido a ${message.guild.name}`)
.setDescription(`Hola ${member.user}, disfruta del server`)
.setColor("RANDOM")
.addField(`Ahora somos ${message.guild.members.cache.size} usuarios`)
.setThumbnail(client.user.displayAvatarURL());
//y hacemos que el bot mande el mensaje embed al MD del usuario
message.author.send(welcome);
})```
what is wrong?
pd: the embed has send in md user sorry for my bad english
do you have the guild members intent?
in that way?
tu no eras español?
ohh
the command has to send the person who entered the private, that's why the guildmemberadd
yeah, but you need the guild members intent to receive the guildMemberAdd event
i'm asking you
do you have the guild members intent?
if not, you need to enable it on the developer portal
as so intention?
um no
Go to https://discord.com/developers/applications and select your bot
ok
Make sure that "Server members intent" is turned on
is turned on
You need the guild members intent to receive guild members chunk depending on what kind of query you make in Guild.fetchMembers
Without it, you can only fetch up to 100 I believe?
Try specifying the intent under your ClientOptions too
Thanks flaze 
what do you mean by specifying ClientOptions?
hrm, wait
Did you receive an error?
no, it just doesn't send the embed
Actually, you tried using message.author but message was never defined...
Either it somehow swallowed the error or the event didn't trigger at all
uhmmm the event never turned on
Go to https://ziad87.net/intents/ and select all the intents/events you need and provide the number generated to your ClientOptions (new Discord.Client({ ws: { intents: <here> } }))
So in d.js verison 12.5.1
Embed.setThumbnail can not be null
To fix this ...
Can we fetch the results and see if the result == null and set it to a default image?
You can use setThumbnail(result || "default URL")
oh
Yes, and that is falsey, which will fallback to the default image
oh i delete the thumbnail
I mean i get it as "null"
ok i try
I guess you can use ternary
result === "null" ? "default URL" : result
I'd prob go a step further and do
(!result || result === "null") ? "default URL" : result
XD
So ...
let NP_StationIcon = (!StationInfo.amgArtworkURL || StationInfo.amgArtworkURL === "null") ? "https://cdn.discordapp.com/attachments/701169235526680696/811104671527600128/Unknown_Stream.png" : StationInfo.amgArtworkURL;
the guild integrations is guildmemberadd??
GUILD_MEMBERS is
Make sure you select GUILDS too
ok
You don't need the first part of the expression StationInfo.amgArtworkURL ||
That's the fallback in the ternary for if it's not falsy or strictly equal to "null"
What I highlighted, you could remove
#development message so like this
Thank you
After it's done, how do I confirm it?
Do you have the number?
this?
2?!
You need GUILDS, GUILD_MESSAGES and probably more
Check again
Check the ones you need
If you don't see an event that you need, you need to select the correct intent
If you need to fetch guild bans, make sure you select GUILD_BANS, if you need emojis, select GUILD_EMOJIS, etc.
GUILD_MESSAGE_REACTIONS for reactions
ok
You definitely need GUILDS or your bot won't get its guilds
I fail to understand the necessity for OP 0
ok i need this itents
ok
If you need to get members' presences (like their status, online, idle, etc.) you need GUILD_PRESENCES too
Once you get the number, provide it to your Client constructor
constructor client?
Yes
new Discord.Client({ ws: { intents: <intents> } })
uhmm
So if I want to do the event I have to put the client.constructor at the beginning?
Do you have new Discord.Client() somewhere in your code?
yeah
Just add { ws: { intents: <intents> } } as the first parameter I guess
With <intents> being the number
you dont add <>
ok
i wonder what would happen if i were to tell them to use detritus instead of discord.js
🤔
Come on
look, just for science
The docs are way harder to navigate through than Discord.js
they arent reading the docs anyway
fair lmao
You'd have to look in the source for types
If you had trouble trying to upload a file, I don't know how they can manage to use the lib itself
ok how do I relate intents to events?
relate?
Restart your bot and try to trigger the event
oh
ok
but since you're new, it'll likely confuse the fuck out of you to have it named that
member guild where would i go
?
sorry its much message.guild
Change it to member.guild
That's the equivalent
After that, try testing it, join a server that your bot is in using your alt, etc.
ok, but i replace all message.guild with member.guild?
Yes
ok
By the way, some users have their DMs disabled. Make sure to catch your send method member.send(welcome).catch(() => handle);
oh
thanks
the event not turned on
//luego creamos el mensaje embed
const welcome = new Discord.MessageEmbed()
.setAuthor(member.user.tag, member.user.displayAvatarURL())
.setTitle(`Bienvenido a ${member.guild.name}`)
.setDescription(`Hola ${member.user}, disfruta del server`)
.setColor("RANDOM")
.addField(`Ahora somos ${member.guild.members.cache.size} usuarios`)
//y hacemos que el bot mande el mensaje embed al MD del usuario
member.send(welcome).catch(() => handle);
})```
:c
whats wrong?
its on
aha
How do I relate the intentions to the event?
ehh ok
so?
yes
uhmm what it?
i am frustated
const intents = new Discord.Client({ ws: { intents: 4895 } })
How do I put this in the event?
:c
how?
i am triying a welcome event but send embed in md user
ok
Which IP would I have to use? Link Local IPv6, IPv6 address, IPv6 DNS servers, IPv4 address, or IPv4 DNS servers?
Lol, i thought that was your real IP.
I wish ipconfig showed your forward facing ip
wait
I forget if it shows your gateway's IP
I know, but I check ipconfig when I'm setting up a web server anyways
I think the problem with my event is how it should be sent to the user's md. I think there is the problem if not, please tell me how I set the intention in the event if it is with const or with let me tell.

@opaque fern fuck, that presence
F
better tomorrow I try another command but the event command does not come out
It keeps saying error: 401 Uneuthorized whenever I try to use the webhooks.
is the token correct
Yes.
are you sure
Yes.
Can you debug what method call is triggering the error
How to send nitro emoji by bot without having Nitro on user
How do i prevent my bot getting errors called "Missing Permissions" when it tries to SEND A MESSAGE and it CLEARLY has send message permissions in the bot invite link?
@vernal moth can you send me test server link
on dms?
Yes
Anyone know how to dissect a Rider profiling to see which parts of a command's code are taking the longest?
Why isn't the status changing of my bot ?
Discord.js or python
discord.js
hmmm
I forgot how to do this type of things lol, let me search
i have one bot with the same code wait
Oh sht lost my data
well i can't help you, sorry
this is worked for me
it used to work for me too but it's now messed up
maybe this? sorry i’m on mobile rn client.user.setActivity('insert status here', { type: 'LISTENING' });
like all on the same line?
It doesnt matter if its on the same line or not lol
It could be 1000 lines down and it would work
o sorry, i tried it with my bot before and it only worked if it was on the same line
hey umm
"name":"FetchError","code":500,"method":"post","path":"/channels/806445805791477820/messages","level":"error"}
what error is even this
i keep getting this
Can anyone help me create shards? my bot is growing and i want to add new features to improve the communication of each command to each server if anyone can help me can call me in pv or even in chat
Can anyone help me to add my own icon to my bot?
its discord bot TT
How can I put my google css font in the bot description? I know it is html but it doesn't work
How did you add it?
puff i can acces to the bot description of my team the top.gg web page is changing
<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="preconnect" href="https://fonts.gstatic.com"> <link href="https://fonts.googleapis.com/css2?family=Lobster&display=swap" rel="stylesheet"> <style> body { font-family: 'Lobster', cursive; } </style> <title></title> </head>
What does Inspect Element show?
sorry im from spain ¿Inspect Element? the preview?
Try specifying the presence directly to ClientOptions, since your presence isn't dynamic anyway e.g. js new Client({ presence: { status: "idle" } });
guys please hellppp
Quick.db data has been deleted! I was uploading with one drive, I realized it was gone. The data is currently in the bot, but if I restart it will be completely deleted! How can I recover? There is an eval command.
Try exporting all the data to JSON through eval
Use the bot's cache system and save all the data via eval
how please help
I'm dying of fear
I've never used quick.db, but you can check their docs on how to get data
how please
omg
Well how do you store your data
im using quick.db
Try evaling that
im trying db.all() for console
If it returns what you've saved, use fs and JSON.stringify() to store it
oof
omg
its so hard
if there is an error, econnreset or internet goes i'm done.
Just save it to JSON first




