#development
1 messages · Page 1271 of 1
What license should i get
- no private use
- give credit
Idk what license, too hard to search ig
would be hard to license or hold as your own when disputed.
im searching for one rn, i need one of 'no copy unless expressively permitted'
- i dont even know how to search for a license
The GNU GPLv3 also lets people do almost anything they want with your project, except distributing closed source versions.
That's all I want tbh
APIs and web services dont count as distributing
Enjoy
hence you can make apis with gpl libs
ty cosmos
without sharing source
NP
wait what?:
I default on most projects not adding such license category
This is a comparison of free and open-source software licences. The comparison only covers software licences with a linked article for details, approved by at least one expert group at the FSF, the OSI, the Debian project or the Fedora project. For a list of licences not speci...
oh
There
I hit an extra-key
@unique patio heyo, you have so much knowledge on license
there is also https://choosealicense.com/
Non-judgmental guidance on choosing a license for your open source project
You should DMCA yandere sim
@quartz kindle HELL YEAH THANKS
there is also https://choosealicense.com/
@quartz kindle that's what I was using
what is copy lefted?
copy left = opposite from copy right
Makes it free
GNU General Public License v3.0
Is mine now
yeet
Hmmm i still need one that is copyrighted without modifications
its a private repo, it shouldnt get out of there
no distribution /modification
Does copying script from mee6 count as copyright stRIke
if you want to prevent people from using your code in webservers and other non-distributed applications, you need to use AGPL
I see
AGPL?
the lib my api relies on has a licencing fee of about 1k usd
but they are gpl v2, so i can use it server side for free
because i dont distribute it
Not leave it blank
🙂
License: "blank"
For private
You can put Copyright @ not erwin
But yeah nothing major needed if you want to lock it off
AGPL prevents also non-distributed things from being done without a licence agreement
you permit the rights then
the only concearn is leaks
Leaks can happen
anything on the private repo needs to stay there
You would just find the source and request it be taken down
@quartz kindle what api
Oof
EZPZ
But applying these licenses at times allow or permit use and that's what we don't want persay
ruling is at your discretion.
Thus your own copyright/license
🙂
GG no re
Applies for north america/USA
how to get user by id djs? message.client.users.fetch(args[0]) isnt working
@earnest phoenix astrologico api
hmmm i see
What does it do
ohh ok
I haven't touched that part of the discord API fully but they have a "has" function to check fast.
Also too cache is used.
@earnest phoenix astronomy/astrology
So it'd be users.cache?
planetary positions and coordinates at any given point in time
I am interested
idk why u fetching it though, unless you disabled caching
You can reference the ID from received message or on a call to client you initiated.
Both require a diff approach
They have FeatchUser I think?
.get at the end? nope
For recieved messages, you can parse them like this.
receivedMessage.author.id === "id"
message.client.users.fetch() is the correct way of getting a user in discord.js
no need to use the private api methods
or that
fetch() should get it from api iirc
users.cache .get() should grab it cached
fetch does both, gets from cache if it exists and fallsback to the api if it doesnt
oh, even better then
Oh yeah derp
I forgot that with my XHR run throughs
If cache exists
DERP
Generally go for the more direct solid approach for processing in the values, so I am not relying on a nested feature.
I*
how do i check if a user sent a channel in a message? like if they sent ,announce #announcements some random text
idk if i explained properly
on('message', func);
sent a channel?
oh
that
@west agate type n.tag regex in #265156322012561408
i got a whole bunch of handy regexes there
There's an emitter event for the discord client that will emit when a message is sent and ready.
you can use message.mentions.channels
wait really?
If you're looking to ready discord history then that's done differently, and on ready event.
mentions has channels?
yes
mentions has all possible mentions lol
it even has built in regexes
Haha
Regex is very powerful don't get that twisted.
Neat wasn't sure how adv'd the api was
Good to know, regex is the true promise land
to unhackable.
regex is slow af tho
^^
Noooo!
If done right
it's fast and can't be hacked.
Safest way to pass through strings.
"hacked" how
what do i do with the regex?
and it can't be done.
what kind of regex checks
why tho
Security
watch me try to use it properly and accidently break regex on a whole scale. My code is notorious for doing fucked up shit

ima good dev
nobody uses regex in security tho?
Good regex use is promising
if('string'.match(token)) => user.login
Woah it's used lots 😮
ezpz
Regex matching^
i havent seen any example of a situation where regex is actually the better solution
You rarely see it yes, but it's used at the core of processing machines
matching leaked tokens
for sensitive data to categorize it properly.
say the user sends a message like this:
Server-end
,announce #announcements something testing
Discord would definitely be using regex to turn this message to whatever it needs final conversion. Finding and inserting links.
how would i get #announcements in the message and send the message in that channel
i still fail to see how regex would be applied there but whatever lul
You may not use it at all then
i cant see either, that example is all i can think of tbh
i still fail to see how regex would be applied there but whatever lul
@quartz kindle me too
sensitive info in chat or something like that
Okay, so this message could be plain-text; it doesn't know www.google.com is a-href already.
It still doesn't
thats my only use-case, though if you are back end you have access to said token. using any other method is also valid(startsWith for example)
regex is good for finding instances of a pattern in a string, yes, but nobody types a password in a string for example, no program needs to extract a username or a password from a large string
no but for password checking
unless you're trying to do something shady
regex is used to keep you in bounds
on a client log-in page if you can't type `; you're not to be typing it error throws back
i guess its good to escape multiplle chars at once?
that isnt solved with regex, thats solved with sanitization and prepared statements in a database for example
using regex for sanitization is considered bad practice afaik
You're to decode/encode how you would and strip slashes yes, and that's low-key regex.
🙂
for example, you have a template in your code
Postgres.query('INSERT {args} INTO SOMETHING'); If you provide args as DELETE DATABASE' you might get some shady shit, i guess its better to use regex for that sort of sanitization might not be that bad
It all goes hand in hand exactly
thats bad design overall though, but i guess
🙂
low key maybe, but they probably have many under the hood improvements tailored specifically for these kind of situations when you're processing passwords in a database
so they usually advise against using regex yourself
You want to always confirm input to an extent and you can't do it any other way
properly or as fast.
how do i convert @ mentions to text in discord.js?
toString()
You don't want them to mention?
@errant perch when sending or when receiving?
Don't use the <> around them.
sending
<@ example> mentions
warp it around <@ >
bot lingo
.send("some mention here", { disableMentions:"all" })
Oh I like that extra param tim
yes
Lol not sure erwin
i dont want the mention
OOOH
Oh so don't wrap it or use that option tim gave
oh
i misinterpreted the question
{ disableMentions:"all" } worked
I like the paramater approach a lot.
i thought they HAD a mention and wanted to convert to text
^
thats why i asked, when sending or when receiving
😄
welp, getting l8
hmmm i should add a webhook to this test repo tbh
gnight
Enjoy tim
I've been meaning to get my web-hook on; running a cluster atm and can't be bothered to take it offline.
Learned recently I can actually change username and avatar of the web-hook
my bot tells it what to do?
Nice to see discord sets it up very nicely with their API
im still wondering if i should cluster my twitch bot
Not till it's stable
only for testing purposes only(otherwise it'd be data mining)
You have crash-handle and auto-reboot on connection lost
Is anybody TS expert here?
so each node can act independently.
Expert? no, but i use TS a lot Curios
Typescript i assume
i do
lmao
Honesty best policy lol
agreed
i might end up branching my repo into a master-slave version tbh
so i can cluster it
maybe IPC to communicated between them
Listen, I've two folders on root directory name, src and dist. Every time to test my commands, I've to compile src code and it produces the js files in dist folder, and then I start the bot to test it. How can I do it more quickly/efficiently??
This is all you gotta do if you want fast
require("./HorizonLookup/server");
require ("./HorizonQueue/server");
use ts-node/register
I got like 20 in the list 😄
or use npx
how to use ts-node
Isn't that package manager stuff/terminal?
you can use ts-node with node
Should be a way to launch terminal tasks via batch file.
node ts-node/register file
Oh cool
or you can use npx
Can you globally use it in a command prompt?
If so you could just run executables/batch files to run the process
short-cut it.
yeah
This is my example
start nodemon --exitcrash server.js
nodemon reboots my app if crashes,
i dislike nodemon
not sure the lingo you'd need if it was cmd based.
as it restarts on every change
Yeah I don't use it.
i prefer forever for a reboot module
Oh I like that feature in early develop
It's a life-saver and keeps you logging errors
forever > nodemon imo
But release, hell naw if you can't get it stable GG
what's forever do?
I don't necessarily need reboot modules I build them in to the code
i got 2 instances, a recover and a reboot
on fatal i got a script trying to restart/recover the process, if it doesnt work, it kills it, that trigger forever to restart it with a limit
it tries 5 continiously times with at minimum 1 minute uptime. if that fails, it sends me a notification
That's cool, I didn't know this may exist and wrote a handler for each bot.
it's a simple copy/pasta but I can have 1/20 go down and reboot in my cmd.
theres some really advanced things you can do with those tools
nodemon is bad imo since it will reboot if it detects a change
both @earnest phoenix and LeviathanTwitch are running on forever
Ty for that heads up if I embark

nice
I store my data via clouds, it's a bit fancy so I can't have sudden crashes before it unloads.
or it reverts to back-up; no recent blobs.
i backup non static data every 10 minutes, for static i use on the command itself to add it to memory along with the database
say prefixes for example
!add prefix
=> prefix dumped into database
=> prefix added onto memory
// crash
startup => fetch all database prefixes
=> map them all
=> we back up and running with no loss of data
thats one example of how i run my things
others for example non static data(metrics, logs, errors) are all backed up every 10 minutes
So how we render it is with a black-hole method.
so worst case scenario its a short roll-back
you could use redis to cluster all processes tbh
as long as master keeps online(make sure it doesnt carash) all other processes will have access to it
The setup I use uses no hard-drives.
or DBs
All setups are strictly CPU/RAM machines
but then you cannot recover data
you could run redis as i said
uhm, is there anyone here knows about voiceStateUpdate in discord.js@12.3.1?
i need help
I get about 0.2% drop-rate on servers from odd reconnects/etc
i'd do a master-slave method tbh and cluster them even more
bruh
Like rn rn
Not sure of the voice channel much on js
What's up
erwin if you wanna see blazing fast, these clouds on their local can transfer a peta-byte in an hour.
They use atoms for processes and 1GB each node.
LOL
Main storage/process
local redis backup Local redis backup
Master 1 Master 2
Slave 1 Slave 2 Slave 3 slave 4 slave 5 slave 6
bruh
master and slave
@unique patio can I dm u for a sec? I wanna ask something related to oauth
git with the times
Keep it here I get too many PMs
something like this cosmos
as long as master's are online, you dont lose any data
the slaves do all the processes like you are running
but you have a main process to keep a local backup
handling the RAID
when it leaves cloud
That process is very slow though
My network is at 1.2GB/s right now upload
instead of one Main/master with 100's pointing into one, doing it the way i showed would make it almost 0 loss on a outtage(except if the whole master cluster fail)
Nope but the latency to get it there
I do use such on a daily interval well similar
you'd be seinding it to two different sources
but it takes an hour to complete.
its not master =>redis => main
its master => redis
=> main
you only pull from redis on a fail
then there isnt much need to backup the drives with redis as im suggesting
i mean, fair
My ISP only gives me so much and can't ping like that
rate-limit
One bot I'm hosting, not sure whose it is, they're in 6,000 servers
and one of them is peaking 600K users abusing the shit out of it.
They crashed it several times till this solution came in.
Good thing buddy is paying a preem for it.
speaking of master/slave, github is changing the default naming for a lot of stuff, such as master to main
holdup gotta patch something rq
They should have done that a while ago
@unique patio so what I am gonna ask is illegal maybe but it is for educational purposes
The question is
I'm fine with the name master but I think it causes a lot of inconsistency
When I have access token of someone
atm they say they're developing tools to make it as painless as possible to change it
How can I make them join server using their access token
Easy.
If you can hijack their auth or cookies you can do a lot and these bots can assist lol
It's not illegal persay, for teaching purposes.
is there any code to pass university?
That part will rate-limit you
Discord will sniff you right out the arse and boot you
possibly call the new naws on you
im fairly certain it checks for ip along with cookies
Discord will poop on you
Uh
Depends on how you do it.
The cookie calls your session and can retrieve the token to gain accesses
That token is your "encrypted" cookie
in temp form
@unique patio so there isn't any way I can make people join servers with access tokens?
With a auth token or their cookies, you can get the token and in you go.
IP is checked on join only, and during auth checks.
Discord does do huge filtering on the IPs and phone #'s to keep abuse minimal
You can do it wraith
Can't or can?
There's no how-to cause it's simple discord bot stuff
Learn basics and it'll be obvious.
With any cookie, you can send post to the server and get auth
this is too shady for me to give any advice
That in exchange can get you the WS addr to connect (gateway perms)
Yeah I know
Why
U showing it to me pratically
@opal plank
Yeah dude, not happening
You enjoy doing shady stuff on discord
I could care-less...
you should cease that Wraith
You just send HTTP requests with the user's bearer token you get from their access token
I just wanna know how to make peesp join servers xddddd coz Many server owners do it for there benefir
Why
Yeah explained that shivaco D:
I just wanna know how to make peesp join servers xddddd coz Many server owners do it for there benefir
@indigo burrow why
You just send HTTP requests with the user's bearer token you get from their access token
@slender thistle I have I already made half of my thingy thing
It's in python
I can easily get access token
The problem is
Of using it
i can think of 10 different scenarios of what you are trying to do, not a single one of them is for legit purposes
Let's say hypothetically speaking, I was this hacker, I could help you. What makes you think I won't fuck you over?
you said 'user tokens'
🙂
not bot tokens
Some vicious cats out there
Hi OAuth and guilds.join scope
Ya'll ever play with catz lol you know.
'how to make peeps join serveres' requires user tokens, as bots cant join servers without invites. What you are doing is at minimum, SHADY
Ehh
If you got your hands on other users tokens, i dont wanna have anything to do with it
just in case
Are you talking about literal user tokens or the ones received with Discord OAuth
Hi OAuth and guilds.join scope
I'd suggesting reading more into Discord OAuth2. There might be a few articles on Google
Guild.join scope ah I see
But then
The questio comes
What shall I fing code in python using guilds.join
Even without an example
Even am new
To
0auth
Gonna yt it now
This whole time I was talking about 0auth token

They're temporary as well so eh
yeah lol
Hey, Erwin I've set up the ts-node but still my commands are not working
@rocky hearth you'd have more luck pinging me btw
im in way too many servers, you'll likely not get my attention without a mention
what exactly are you running?
my commands are working when I compile the src folder and run the bot through dist folder.
rathen that doing tsc to transpile, use npx to run it in one go
make sure you got your tsconfig running as well
Typescript 4?
yes
nah, im using ts4 aswell
And I'm using discord commando too
run this command
my bot.ts file
did you not install npx?
MODULE_NOT_FOUND
then you dont have ts-node installed
I followed a tutorial
dev in package names equals better coder
its targeting my root forlder
ownly-one-typescript is my project folder

ok then
you installing ts-node on Discord.js arent you?
not on ownly-one-typescript
ooooh
i forgot a flag
node -r ts-node/register bot.ts
though ts-node should find it fine
nvm
Hmm, it seems to be working but .env file is not get read I think
It is showing INVALID_TOKEN provided
But I also need to host the bot later
I tried set NODE_ENV=development&&node -r ts-node/register bot.ts
Depending on how you host it
If locally, sure config.json it. If through github; have it handle the platforms system environment
variables
or other hosts use the system environments they provide for your token.
This is my config.ts
I don't do type-script.
i use program args for my c# bot it works really well
so like dotnet DLL TOKEN
and it works
But if you wanted that in JSON:
{
"BOT_TOKEN":"KEY HERE",
"BOT_PREFIX":"!",
"YOUTUBE_API_KEY": "KEY",
"OWNER_ID": "ID",
"SERVER_INVITE_LINK": "",
"MONGO_URL": "Location"
}
Nah, I didn't wanted that. Erwin just suggested to do so
really its up to how u do it
if its a private bot thats closed source u should probally just hard code it
100% or use global variables if used multiple times 😄
But yeah bad practice if code gets hi-jacked;
yeah ig
But if shell hacked, or some you losing it all anyways so
not if you smart enough
Eh nah
If I run execution on it
or SSH it
Depends on your protocol/SSL setup/etc.
if ur at the point where ur pc / host is hacked u should probally be worrying about more sensitive stuff then a bot token that can be regened in a second
You got it games, DB
Just keep encrypted or be able to change the key fast.
well stay encrypted
T.T
Keep hashing in check.
cries in java Dumpster
😛
Doing "set NODE_ENV=development&&node -r ts-node/register bot.ts" is not setting the env variable NODE_ENV
aight, imma go code
gotta somehow deal with this BS
discord member ban/kick is one hell of a bs
?
Odd.
I just select user, and run user.ban({reason: "noob"});
or kick
I run FlagEventHandler to determine people's status in spam
A custom class that I set to monitor how many times you message in a second/etc; fun stuff.
If the flag.kick > 20 I run the warn
if it flag.kick > 50 I kick them 5 minutes, when it goes to 100 it's an auto-ban
ive got a rough idea of how i'll do it
just gonna get some snacks, music and get to coding
need to grab a couple alts to test it with
im gonna do it differently
There's a few cool ways; safelist-method is a nice one too.
Well gl! I'm currently botting my bots to crash them/test them.
You may like a project like that, BotTesters, make a cluster bot for testing units to enter server and type your requests out and complete tasks with the bot you need testing main-scale.
😄
Umm hello
I have a question
Im doing the node . or node main.js
And it says Error Cannot Find Module
In command prompt
How to fix this?
You need to give more information if you want people to help.
You need to go into your project folder
Done
npm start at the main folder
In terminal
but run an npm init first
I did
Ok
or do an npm start project.js
or if you create a package, aka npm init
You can tell other services/or your compiler/etc
which is main/etc; gives package details(instructions so others know how to run it as well)
It tells me to presd ^c
When you NPM init, you need to set up your stuff
confirm it, then save. it creates a new package.json
This will forever tell whoever is running the bot it's nodejs and file.js is what you want to run.
Oh i already have package.json
Good, you can just npm start and it should launch its designated js file.
or whatever you're working with! 🙂
or F5 in studio either or
It says sorry name can only contain url friendly characters
Did i just broke my bot because im following a tutorial and this is the last step to do the node . or node main.js
Not necessarily
When you run it in studio the bot runs, correct?
It just returns error?
See at which point it returns that error, you can use console.log("I made it here 1") to see where you make it before the error
if you're new and get lost. 🙂
In visual studio?
yeah
I have console.log already
The console.log("message"); is a way to report back to console. It's for troubleshooting.
You insert them in your code to follow where it's going, values all sorts.
So what's y our co nsole outputting?
how do i get the position of a certain channel discord.py?
I did const Discord = require ('discord.js')
Const client = new Discord.Client ();
Client.once('ready', () => {
});
Then my token
how do i get the position of a certain channel discord.py?
Position in array @modest smelt
?
My console outputting is ('SwordBot is online!')
That's okay sword
how should i do that
Not red-text following sword?
Pascal hater
Oh ok
lol
camelCase then
That's only for making reading classes/objects/functions easier
in summary
doesn't really matter
Caps lock everything
Ahhh I don't reherse the cases
laughs in SQL
Wait is all client needs to be Client?
Discord = require('discord.js'),
DiscordClient = new Discord.Client(),
if you called it like that
SELECT EVERYTHING WHERE EVERYTHING IS CASE SENSIVITE SORT BY SENSITIVENESS @slender thistle
Oh ok
So you defined the const and never used it
fair
const Discord = require ('discord.js')
Const Client= new Discord.Client ();
Client.once('ready', () => {
});
Change case to match Client like above @slender zenith
I'd maybe change once to on, you may get many ready's
client is just variable in this case
lowercase the client
rather than uppercasing it
?

Uppercase for constructors
client there is just a variable
Discord is the constructor, therefore it should eb uppercase
Ok
Ok
lol
do bots need to be verified to use animated emoji?
CONST DISCORD = REQUIRE ('DISCORD.JS')
CONST CLIENT= NEW DISCORD.CLIENT ();
CLIENT.ONCE('READY', () => {
});
there
fuck it all
Well that'd be wrong
shhhh
lol
no tears, just dreams
do bots need to be verified to use animated emoji?
@white vapor no, all bots can use animated emojis
I cant run the node . or node main.js code in command prompt
In command prompt you need to CD
to the directory
Or run a batch file in the folder
cd main.js?
to your project
just upper case everything
😛 @opal plank
it'll be fine
Soo i make a shortcut to main.js run cd
you on windows?
Yes
Try this sword
go to the bot folder
@white vapor no, all bots can use animated emojis
@slender thistle my bot was unable to, even though I entered the ID, Name, and put the <> symbols
shift + right click anywhere that isnt selecting a file
start node server.js
open powershell window here <=
in run.bat file
in the folder of your script
and just make a short-cut to it.
GG
How exactly did you enter it
Ok i close my visual studio rn
A bat, made in folder will CD right to it.
otherwise you can CMD and CD right to your project folder and run it.
Many options with node, but if nodejs is not CMD installed it won't work.
Thanks! :D

🙂
the node still isnt workin in my command prompt im tired after coding for 3 hours 2 hours waiting for visual studio code finish downloading 1 hour coding i need to rest my back is hurting
node .
@unique patio not you , you dork
@slender thistle how can i get the position of a certain channel?
outside the project folder.
I just need to rest thanks for the help everyone
channelobject.position

ok
P.S. I have zero fucking idea how that positioning works
You could keyword indexof in python
im also fucking with roles position rn, not fun
I've tried comprehending whether it's relative to categories or absolute and it made zero sense to me
not sure how they write that.
Oh yeah
where is the documentation for that?
guild.channels.index(channelobject)
link?
not sure if it's a good idea
Perfect
link to what
lol
owo
ngl i wanna work on the twitch branch
but i havent given enough attention to the discord branch recently
so the TODO has been stacking up
I got a bit of that atm, need to verify ice candidates
kinda forced to do it
and broad-cast them to the video section of discord.
I've been combining services lol
does Firebase Cloud Functions NEED Firebase Hosting too or can it work without Hosting (it obviously won't have a website without Hosting)
huh
How do i add the custom status to the bot
How do i add the custom status to the bot
@earnest phoenix discord.js?
yes
it's Client#User#setPresence
hold up lemme fetch the docs
ok
Client.user returns a User object
https://discord.js.org/#/docs/main/stable/class/User?scrollto=setPresence this should tell you how to change the status of a user
for example
where do i put the script?
where do i put the script?
@earnest phoenix probably after your bot is online
oh so in the ready event
changing the status of a user while he's offline is pointless
and bots don't retain their status after going down and coming back up again
why?
because discord is gay
lol
but can you just give me the full script bc i am not very good at codeing
Hey I need help making a nuke command. My current one just clones and deletes, but it moves the channel to the bottom of the category
also i want to send a message in the cloned channel
hmm
i want it to stay in the same position
I dont think anyone will help you with a nuke command because they're most likely abusing API ratelimits/will hit API ratelimits
Have you heard of ratelimits?
no
You can only do X actions per Y seconds
idk
then how come many bots have it
like better antispam
which nukes channels
they probably use the clone functionality
Or I understand your feature wrong, what exactly do you want to do with your nuke command again
but can you just give me the full script bc i am not very good at codeing
@earnest phoenix that's spoonfeeding we won't just give you code else you're pretty much useless and we're the guys who are doing your stuff
also it's against rules to spoonfeed
delete your post pls
i meant reddit lmfao
oh lol
How do I add my server count to top.gg website
@supple oriole #topgg-api there should be someone who can help (idk dblapi tbh)
;/
Yoooo
Thats me again lol

const args = message.content.slice(matchedPrefix.length).trim().split(/ +/); const commandName = args.shift().toLowerCase();
Why in toLowerCase have error?
You're trying to run function on undefined.
If it's python isn't it just .lower()
if matched prefix is the index
If it's python isn't it just .lower()
@earnest phoenix js
Try splice(indexval, 1)
https://top.gg/api/docs
@slender thistle Ty surrr
K
Yeah the reason it's not working is somewhere with your values it's undefined.
If it's python isn't it just .lower()
Correct, but I can't see Python around here
@silent cloud so try so you can learn, to run console.log on all the values there so console.log(args);
right below defining it, see if it's there 🙂
Then piece by piece it find your issue. May be your matchedprefix returning blank.
const string = "will work!!!";
console.log(string.toUpperCase());
const args = message.content.slice(matchedPrefix.length).trim().split(/ +/);
console.log(args);
const commandName = args.shift().toLowerCase();
console.log(commandName);
Try playing with it like that. GL
@silent cloud what do you mean exactly?
import all scripts from the command folder into the bot.js code?
vs code has given me this error and have no idea how to fix it, I thought it would be the update, but once I updated it, it gave me the same error.
vs code has given me this error and have no idea how to fix it, I thought it would be the update, but once I updated it, it gave me the same error.
@patent geyser does node.js and/or VSC have firewall blocking against connecting to the internet?
check your firewall settings
dumb question
how come in my message.js event right
i have let afk = await bot.db.fetch(`afk_${message.guild.id}_${message.author.id}`)
how come it cant (node:6348) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'id' of null
does node.js and/or VSC have firewall blocking against connecting to the internet?
@earnest phoenix ahh, firewall blocked the connection ty
@astral yoke since it's a promise rejection it's probably that the message got deleted so d.js can't fetch the guild and the author
how would i work around that?
how would i work around that?
@astral yoke not delete the message ig?
it says guild is null
author can't be the one causing the problem (yet) because it comes after message.guild
i just did a message and deleted it and it didnt error







