#development
1 messages ยท Page 1583 of 1
i'll take a look at it soon, i got a few things to do today
kk
Who knows python here?
looking good lmao
genshin's pretty good
omg my fucking internet won't connect wtf
how am I even supposed to send messages here kf my god damn texts won't send
@client.command()
async def banlist(ctx):
await ctx.send(f'Here Are The Users Who Have Been Banned! {ctx.guild.bans}')
Long story short, len accepts an argument that must have a __len__ method implemented
ctx.guild.bans does, therefore you can provide it to len as an argument
bans method is a coroutine doe
so where do i put it
No
?
but, you would also need to add parentheses to .bans because it's a function and you need to call it
what
Inside the brackets
Now wrap it all with parentheses and prepend len to it
aka accept the returned value from await ctx.guild.bans() an argument to len()
len(await ctx.guild.bans())
ohh
shiv just gave up
aka length of the returned value from .bans() will be calculated
Lmao
No
Try it and see, that's the fastest way to find out
i'm translating a bit of python code and i don't understand what [1:] does
parsed[...][...] returns an array and ranges is a 2d array
Can someone recommend me a dashboard server that I can use as a SeriLog sink or in general to consume metrics? I plan on having a ton of metrics pass into it. Ideally, I'm looking for something that is standalone and can be hosted from the server that will run the application generating the metrics.
I was looking at options like Seq or Stackify. Ideally free.
Figured you all would know all about dashboards here lol
If you wanna return the names, assign it to a variable instead of doing it inside f string, you don't want to make multiple requests. And basically you can do ', '.join(entry.user.name for entry in iterable). iterable is what you have assigned. And to get the length, do len(iterable)
mhm now what
it returns a list of ban entry
wait what?
You can also do that, concatenating the string with for loop, but I personally would go for join
join the names?
Edited it #development message
yea but
hey umm, how would i get the avatar image from like a code thing that discord provides in the user object something like this "ae3e4ee180bc1d41db1ae2c06eaf"
didnt i already do that
You've only done the first step, which is assigning the ban entries to a variable
thanks
Wassup
node:6364) UnhandledPromiseRejectionWarning: TypeError: Cannot create property 'presence' on number '32767'
i need help with my banlist
this is what i got
but it dont work for some reason
Don't copy paste code if you don't know what you're doing
lmao

ik
why
Lemme jsk something rq
i deleted that code lmao
dont worry
but
i need help making a banlist that returns usernames
in your fstring ig
I'm still lurking here doe
like what you did with that len()
0_0
Hey im trying to make a bot run since its like impossible and uh UnhandledPromiseRejectionWarning: TypeError: Cannot create property 'presence' on number '32767'
Ive made bots before but its first time with that error
What the
itll give ya in indentation error
with the len*
ctx.guild.bans is a method 
lol
but they also want the names
here is spoonfeed code
banned_users = await ctx.guild.bans()
print(len(banned_users)
>>> # some int```
i missed a )
nice
But you get the point
nah i want it in the chat not cmd
Then just send it
Bruh
i think they're stuck on where to put the x for x in iterable
damn
yes?
For the sake of humanity, I'd tell you that you're supposed to replace iterable with banned_users
From what I've sent
just tell me the code my dumb brain cant process stuff rn
lmao
im joking
why would he do that, you won't learn anything
i dont actually want him to
In fact, I've spoonfed you enough
@astral forge
yea you have
python docs perhaps
List comp? @earnest phoenix
Not needed actually
so uh can someone help meh lol
Join takes iterable
;-;
That would print the number of bans yes
and for returns a generator object which is iterable
okay so if thats what i have
And I'm not sure, but I think what I did does return a generator
what do i do now
What do you want now
I wouldnt reccomend sending EVERYONE banned since u got a char limit
but you can send the amt of ppl banned
which is what ur code will do rn
to return the names of the recent people banned
Paginate it 
I wouldnt reccomend sending EVERYONE banned since u got a char limit
to return the names of the recent people banned
recent
slice then
yea theres a setting in .sed() for js where u can tell it to paginate
what is your definition of RECENT
recent
recent
the last hmm
not sure if ban entries are sorted by date though
dont think so
no tinthe API
the last 10 or 15
only if ur a user lookin at the audit
idk
mhm
then pagination is the only option
(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[+!+[]+[!+[]+!+[]+!+[]]]+[+!+[]]+([+[]]+![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[!+[]+!+[]+[+[]]]
so how exactly do i do tha-
jsfuck
python already fucks you in the ass enough 
hot
hmm
How would you push (or Checkout to) a different branch using git in VSC? Nothing I have found has really helped.
UnhandledPromiseRejectionWarning: TypeError: Cannot create property 'presence' on number '32767' halp me jsut tryna make a bot
need more context
okl
well
Im doing client.login("TOKEN HERE")
with a ; lol
and uh
i get that error
check your stack trace
how uh
look what file the error came from
oh that
the error itself
fuck it i dont need a banlist
(node:872) UnhandledPromiseRejectionWarning: TypeError: Cannot create property 'presence' on number '32767'
at Client.login (D:\dbots\Gemini\node_modules\discord.js\src\client\Client.js:217:32)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
no, u just dont want to learn how to code it
what version of discord.js?
but whatevs
Yes, what you need is learning python. Maybe that sounds rude, but it is what it is.
"discord.js": "^12.5.1",
that and i really honetly dont need one
just thought it would be cool
or a bot, in that case
eh
define app
(node:872) UnhandledPromiseRejectionWarning: TypeError: Cannot create property 'presence' on number '32767'
at Client.login (D:\dbots\Gemini\node_modules\discord.js\src\client\Client.js:217:32)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
show code
can you show me your new Discord.Client()?
show code
const client = new Discord.Client({ ws: Discord.Intents.ALL, fetchAllMembers: true });
try console.log(app)
gotta love intents
ah
see if it outputs anything
you need to provide an object to ws
oh yea
Discord.Intents.ALL is a bitfield/number
yes
that's where the error came from
wait no
i have syntax error now
arrays are objects though 
yeah all good
Help me I am literally stuck at all
the string you're trying to decode is not a valid JSON
just made my help menu so much better
i know this isnt a discord.py specific question, but i was wondering how to extract json files from websites using python?
well its one specific website so
extract? scrape or using APIs?
no like i just need like a link that has the json
cause like this website has diff users
and u can view the diff users by just changing the user part of the link
you made object key not put in "" in ur json
and like if i can find the json file link, then i can get the data for any user
like for example for myanimelist the json file link is
use json module and aiohttp
ah yes mal api
i couldnt acess it through the mal so i webscrapped
cool
see the thing is i know how to parse json
its just that
i cant find the json for anilist
uh
i just use Jikan, but that endpoint seems more reliable since it won't be affected by Jikan's caching (well, it's the source)
can you get anime info without using MAL's official API?
yes
other than Jikan
ah
AniList's GraphQL API is good too
But MAL just has more info in general
They even have anime openings
yea i know but like ive already had bunch of mal commands
Any solutions for that?
For queries, you can use https://anilist.co/graphiql for testing
i'm not sure, check your JSON file and see if it's corrupted for starters
but aren't you using Heroku? the prefixes will reset the next time you restart/redeploy your bot
Its empty
It just contains:- {}
Lmao its called dict
Wait what?????

๐ญ
๐
you need a proper database, because right now it's the same as storing the prefixes in memory
Oh I see
JSON database is not ideal anyway, so it's a good opportunity to use a real database
๐
wtf i have a fan
i have a problem with my bot and permissions, when somone invites it and they check off the admin perm and invite it, then run a comamnd it breaks the whole bot
and makes it go offline
how can i fix it
im at 98% in the queue and i cant get it to stay online anymore 
it got into a couple big servers
but they unchecked the admin perm for it
and when they run the command its returning an error
then shuts off
The answer is: code your bot so it doesn't require the Admin permission
because we're going to invite it without Admin to test it.
So fix it quickly
it has ban and kick stuff
and wont work without the admin 
ban and kick require the BAN_MEMBERS and KICK_MEMBERS permissions, not the admin permission.
ohhh
NOTHING require admin permission.
ok lemmi fix it rq
so in the dev portal do i just check the ones it needs
then re code it
and it should work?
you need to code it to check for permissions
that has nothing to do with the dev portal, and everything to do with your code
so in the dev portal do i leave it with the admin checked
it doesn't matter, we don't use your bot's invite
we literally invite all bots with permissions=0
I mean they have the basic everyone perms like sending a message, but they get invited with no admin/moderation perms
if they get invited with no perms would the commands that need the permission still work?
how Do I make a privet config file
They would if you ask for the proper missing perms
.env file
but I code with .js
wait
Take a look at https://anidiots.guide/hosting/repl
I run that in terminal?
Read the link it'll explain everything
yea im not going to be able to fix it in time 
read the whole page
No one wants to guide you through the exact same thing the page already guides you through every step of the way
You can use it for other things too, but I assumed bot hosting because you're literally on top.gg's discord server, so, y'know, easy assumption to make.
alr.
i changed the code for the bot but if it dosnt have admin/mod perms how will it work with the command
i have no clue what im doing 
As per my previous message
yah ur gurl evie still doin' it
i learned how to code when first met evie and still helping ppl
i remember asking stupid questions in discord.js server
you and a thousand other noobs ๐
u
what do you think, when it's best time to start making something like premium version of the bot
i have bot with 1.3k servers
thanks evie
i want to somehow monetize it and maybe buy ads or something
still got $0 from this huge project i've been working on for a long time
my bot is 100% going to get denied all of my commands broke 
rip
My suggestion would be to not try to monetise bots
why
i'm poor as hell, living in 3rd world country, and this bot is my key to get out of the shit, if i'll start getting money from it and making it bigger and bigger
yo
my bot's page design broke itself
i didnt touch the css and its now just yeeted
anyone has any idea of what happened
top.gg does regular updates on the pages
I don't even see what's broken here.
looks pretty good to me
maybe if you do'nt like grey, but otherwise, it looks fine
lemme find the screenshots
fast question, can I parseInt() timestamps?
of the proper design
a timestamp is already an integer
but in firebase is an object
but if you get a string, yes you can use parseInt
do you have any special feature that other bots dont have? or do you have any kind of personalization that can be done to your bot's features? those are the kind of things that could be monetized
my bot is really unique
but it's not getting much popularity
slowly growing
yeah same here
the problem with making money from bots is that you need to spend money to make money
sends me something like { seconds: 1234, nanoseconds: 0 }
if you're not using advertising and marketing you'll never be able to actually get money from premium features
you need to give some sort of incentive for people who donate
That is not even close to being a proper timestamp you could possibly use as a date or timestamp in javascript.
either a special command, or a special version of a command
i really don't want to limit the commands but yeah yufhsdfsd
idk
prob gotta get even more servers
not limiting, just enhancing somehow
im also against limiting
what i did with my bot was to give donators the ability to customize colors and certain values
but in my case its easier because the entire bot is about posting images and graphical charts
so donators get to change the colors of the graphics
this is how it is supposed to look like + animations
oh? thanks haha
this is how it looks all of a sudden
another interesting thing
nobody ever donated to my bot through patreon
they all ask for paypal instead
@umbral zealot u see what i meant
alright well, as Odin said, the CSS has changed , you'll need to adjust it
i wish paypal even worked here
me when born in hell and now have to somehow get out
rip
from what i've seen, the only way to make money with bots is to use the same micro-transactions model that mobile games use
which is pretty much brainwashing people
ew
I am having errors connecting my account to youtube, can somebody help me?
fucky
game bots with microtransactions make good money
@umbral zealot when I get a certain timestamp from Firebase, I get this in the logs
Timestamp { _seconds: 1613160000, _nanoseconds: 0 }
I'm guessing that's a proper timestamp then
and it's literally a nice little integer already
but
const snapshot = await refV.where('until', '<', (Date.now() + 86400000)).get();
this doesn't work
sounds like a specific issue with Firebase then
like it can't compare a timestamp with an integer
i got these for the main mod commands, but if it gets invited without the perms it still goes offline
hmm, let me try
uhhhhhh well that's not normal.
sq?
sqlite
that doesnt matter
you run it from cmd or from powershell? or from visual studio code's terminal?
or where from?
i started with visual studio code but it didnt work out well so i moved onto repl
and it works from there
Bruh
yea
God
Your commentary isn't useful or constructive to this discussion.
ah thanks
Just press the Run green button and repl automatically runs the code
Was that mine?
show the full window, i want to see the console area
no, It was not
Oh
Mb g
bruh I literally replied to the exact message I was refering to.
admin perms
there you go
I thought it was mine since mine got deleted
Not everything is about you, Andrew.
its missing permissions
no its not
Names not andrew ๐๐ป
It's missing a member ๐
its trying to read the property "hasPermission" of null
yeah
Show the full code
meaning you got a message with no member
Well change your damn username if you don't want people to call you that, kthxbai.
woohooo ty Tim
lol
Send me their tag at dm, i'll revenge you.
Ok well don't get upset because someone calls you by the actual username you have on Discord. People tend to, y'know, call you by the thing you name yourself.
same ppl search after me, then they find my address lol
no lol
smh obnoxious people be so toxic.
Are you going on kali linux to search their usernames with sherlock?
no
Let's not discuss illegal actions @glossy spoke
Ok.
Nice teling everyone your gonna commit a federal crime ๐๐๐ป
Love how this went from bad to worse and keeps getting further off topic because people are so entitled and selfish.
like to pretend they're smart*
lol, this chat is collapsing in a #general chat lol
Eh
don't "eh" smh
Is there a way to make a command that will clear the terminal in VSC?
in .js yes... but in .py idk. I dont use d.py.
console.clear()
why would you want to do it with a command though
uh... will.. I got this thing, that will send a message in terminal when command is sent. so
I wanna clear it sometimes without stoping my bot.
um ok
it didnt clear..
const officialServer = bot.guilds.cache.get('738540548305977366');
const memberToVIP = officialServer.member('235148962103951360');
console.log(memberToVIP);
```doing this on 'ready', logs null. does the bot have time to cache the user?
A Guild has a member_count property representing the number of members in a server. You can iterate over every guild your bot is in and add up the member count properties to get the total.
console.log doesn't return anything
it's just void
member_count doesn't rely on intents and I'm pretty sure getting the guild list from the gateway won't be affected
nvm
wat
read again
it partially does
Will it be enough to affect the number in the end
you will always receive member_count, but without the intent, your member_count wont be auto-updated over the course of your bot's uptime
o
well i think the bot has to cache the user
by that i mean, it needs the user to be cached
do you ever feel retarded
question if im using ms (which i am) how would you implement "durations into it"
doesn't it cache all users right at startup? thought so
const {Message, MessageEmbed} = require('discord.js')
const db = require('quick.db')
const ms = require('ms')
module.exports = {
info: {
name: "mute",
description: "Mute a User in your Server",
usage: "<user mention>",
aliases: [],
category: 'Moderation',
},
run: async function(client, message, args){
if (!message.member.hasPermission('MUTE_MEMBERS')) return message.channel.send('You don\'t have the `Mute Members` permission needed to run this command.')
const muteMember = message.mentions.members.first() || message.guild.members.cache.get(args[0])
if(!muteMember) return message.channel.send('Cound not find the member specified.')
const time = args[1]
const role = message.guild.roles.cache.find(role => role.name.toLowerCase() === 'muted')
if(!role) {
try {
message.channel.send('The muted role was not found, attempting to create one...')
let muterole = await message.guild.roles.create({
data : {
name : 'Muted',
permissions: []
}
});
message.guild.channels.cache.filter(c => c.type === 'text').forEach(async (channel, id) => {
await channel.createOverwrite(muterole, {
SEND_MESSAGES: false,
ADD_REACTIONS: false
})
});
message.channel.send( Muted role has successfully been created.)
} catch (error) {
console.log(error)
message.channel.send('Muted role could not be created.')
}
};
let role2 = message.guild.roles.cache.find(r => r.name.toLowerCase() === 'muted')
if(muteMember.roles.cache.has(role2.id)) return message.channel.send(${muteMember.displayName} has already been muted.)
await muteMember.roles.add(role2)
const durations = {
s: 1,
m: 60,
h: 60 * 60,
d: 60 * 60 * 24,
w: 60 * 60 * 24 * 7,
}
if (time) {
setTimeout(function () {
muteMember.roles.remove(role.id)
}, ms(time))
}
}
}
whelp thats where i am rn. i saved the amount of invites the inviter has to the data on the member that joined
fuuuuuuuck me
๐คฆโโ๏ธ
store it in db
nope
then check db
rn i have to do it in ms
only the online members
I was testing with carl-bot, it's online
you have to do await guild.members.fetch() to get them all
hmmm idk
maybe only a portion of online members?
well, do I need GUILD_MEMBERS?
you gotta fetch either way so
?
cuz, I don't have that intent
members = join event
presence = member list
well
those are locked
da fuq
you don't need those for individual members
my bot is in 104 servers
Any askers
oh i never had that problem
Lol, joke @outer perch
why do you need all members?
who has the link for the express's docs?
anyone here use akairo?
const memberToVIP = officialServer.member('235148962103951360');
console.log(memberToVIP);``` logs null at 'ready'
thx
await officialServer.members.fetch(id)
yeah, undefined
o
well, ty
Got any song suggestions while coding?
OMI- cheerleader
Rick roll^^
I got this:
name: 'data',
execute(client, message, args) {
const Discord = require('discord.js')
const data = new Discord.MessageEmbed()
.setTitle(`DATA OF SMUGY FUGY`)
.addFields(
{ name: 'Ram', value: process.memoryUsage, inline:false},
)
message.channel.send(data);
console.log("DATA command had been ran..")
}
}``` And what I get in responce is this:
How do I specify what I need it to show?
@quaint wasp .memoryUsage gives an array object, like in your array
so its for like this... const (stuff here) = process.memoryUsage?
module.exports = {
name: 'data',
execute(client, message, args) {
const Discord = require('discord.js')
let ram = process.memoryUsage().rss/1024/1024
const data = new Discord.MessageEmbed()
.setTitle(`DATA OF SMUGY FUGY`)
.addFields({ name: 'Ram', value: ram.toFixed(2), inline:false},)
message.channel.send(data);
console.log("DATA command had been ran..")
}
}
@quaint wasp try this
fast dev โฉ
can I colculate something more then just ram? Like space, ect?
space?
memoryUsage gives heap and rss
oh.. alr.
rss is all 4 boxes
i readed the docs of express and i still can't understand how to use it to make my web page
then you did not read it lol, what kind of websites, do you want to make?
a site like a blog
but
how can i make it to appear the index instead of a message like
res.send("Hmm");
read the docs 
you can use ejs with express
just send it here, maybe I can help
body {
background-image: url(https://i.ibb.co/rHqvpg0/imgonline-com-ua-Texture-Seamless-LZgtn-Ed-IQmpw-OFI.png) !important;
-webkit-animation: scrolling 50s linear infinite;
-moz-animation: scrolling 50s linear infinite;
-o-animation: scrolling 50s linear infinite;
animation: scrolling 50s linear infinite;
}
@-webkit-keyframes scrolling {
from{
background-position: 0 0;
}
to{
background-position: 0 105%;
}
} ```
I suggest you that you should use .entity-wrapper instead of body
yah that worked
theres still things broken
but the background now shows up
thx
it does not move tho-
actually
no i wanted it in body
hmm
Does anyone have any idea how prefilled message links work on whatsapp
its v12 ?
roles.cache.find()
https://web.whatsapp.com/send?phone=phonenumberhere&text=test
like i can do this a phone number but i want to do it with a whatsapp group, does anyone have a clue? Google doesn't seem to know anything lol
definitely update ur node
a question, setInterval() will run it's code after some time. But if the bot has just started up, I'd like that code to be run first, and then each interval. How do I do that without copying the code to 'ready'?
I havent done that in months.
you cant
remember the auto VIP sys, @quartz kindle? imagine if the bot restarts when a VIP is ending in less than 24h
put the code in a function and run it once outside the interval
Did you just entirely replaced the code with roles.cache.find()
message.guild.roles.cache.find() this is what it's supposed to be
oles
๐ฟ Bruh
oles
cute page
Anyone making a bot in python?
do you need any help?
Nope
Just asking
Thank you flaz for being so supportive and helpful through my bot development thought!
i c
?
ex dee
so what should i use instead
wait what
fuck deno
everytime i see deno im reminded of that one guy who's really annoying
not gonna name names
xD
thanks, it used to be cute, not anymore
""""""""specialises"""""""""
written by someone who spends 4 hours fixing a bug on a production website 
apparently this thing blew out of proportion and the deno team had to make a statement
deno was and always will be ๐ฎ
another reason for me to not use deno
however i agree with one thing: if you're gonna make a big thing thats gonna be used by the masses, its better if the internal code is pure js
compile times are a huge thing when developing big projects, plus you have more control over performance details and nitpicks
ts wack
idk why but whenever I write pure js I feel bad
deno is cool but i dislike the extra things you need to configure to run like how node does out of the box, e.g. connecting to the web iirc
but can't deno compile ts to js before shipping?
or is it so big that even that takes too long
the article explains it
hmm aighti
the deno team had to wait 2 minutes to recomplie every single change
and compiled code looked stinky
ye
const deno_1 = require("../")
plus they had issues with class inheritance and shit
they ended up having to maintain two copies of similar things because they couldnt get it to work
less support than what?
but i did it
i mean
???????
js doesn't have abstract classes
js is js. nothing to do with deno?
???????
yes typescript is more flexible and more feature-full
but if you think about it, none of that is native
yeah
everything is polyfills
it all gets compiled down to js anyways
ye
wdym nothing is native?
so not only you have to rely on node.js making good optimizations, you also have to rely on ts itself to make good optimizations
oh yeah sure
or you get shit performance
xd
How would you build the collector,if it should scan all the channels in the guild?
let filter = m => true;
let collector = new Discord.MessageCollector(message.channel, filter, { time: parseInt(args[0]) });
I use this collector for one message channel
v8 or monke
Monke.js sounds OP
bota fbi komutu yapcam 2-3 tane gif koycam her seferinde onlardan birini rastgele atmasฤฑnฤฑ istiyom onu nasฤฑl ayarlฤฑcam birden รงok .setImage yapฤฑnca en alttakini atฤฑyor
exactly
imagine playing Microsoft edge xD
@quartz kindle can you maybe help me with this one?
I'll do the FBI command on the boat, put 2-3 GIFs, and I want him to throw one of them at random every time, how to set it up more than once .when he does setImage, he throws the one at the bottom
how do I want rando to throw it away?
I'll bring a few more commands, but what do I have to write to throw random
what are you trying to do?
I want to create a command where a user can scan all the message of his guild for a certain purpose
returning results in real time, or returning results after the time ends?
I need code that I want to set the adjustable prefix system
you need a database for that
I need code that I want me too, me too
I have a database and I have a bot commands I Need Code to add to the folder
you should check Math Object
What?
matematik nesnesi derken
create a prefix command, when someone uses the command, add the prefix in your database
The Math.random() function returns a floating-point,
pseudo-random number in the range 0 to less than 1 (inclusive of 0, but not 1) with
approximately uniform distribution over that range โ which you can then scale to your
desired range. The implementation selects the initial seed to the random number
generation algorithm; it cannot be c...
after the time ends
here's how it will be a single prefix
sorry Tim, didnt see you replied
onlara nasฤฑl gifin linkini koycam
nereye koycam
use awaitMessages then
you want all channels in the guild?
yes
oh
exactly!
then you need to use the message event
help me
can I stop the message event?
yes
hmm, I see
once you have the random number, just get the link from array; like let randomGif = myArray[<your random number in here>]
bundan alt alta 3 tane yapayฤฑm herbirine farklฤฑ gif koyayฤฑm olurmu
but you can not really limit a message event for one certain guild
Nonce
hmm, maybe you can I guess I have to test it out
#general-int let's talk in turkish here
you can use nonce
const results = new Map();
const handler = m => {
if(!m.guild || m.guild.id !== message.guild.id) return
results.set(m.id, m.content);
}
client.incrementMaxListeners();
client.on("message", handler);
setTimeout(() => {
client.removeListener("message", handler);
client.decrementMaxListeners();
message.channel.send(results.size)
}, 60000)
you can also use incrementMaxListener to avoid listener warnings
client.incrementMaxListeners();
client.decrementMaxListeners();
edited to include them
fuck it I'm switching to V
increasing max listeners
in ts is there a way for me to say that a property of my class is there, but shouldn't really be used?
add _ behind it
or make it private
or write some javadocs for it
you'll need to make getters 'n setters for it
private can only be accessed within its own class
what lang?
ts
how about making the property private with a _
class Example {
private _num: number = 4;
public doSomethingWithNum() {
// You can use _num here
}
public get num() {
return _num;
}
}
I don't need to make it unable to be accessed directly, I just want ts to yell at me when I use it
hmm
is it possible to make the title of an Embed colored?
no
rip
you could use canvas or something to do that in a sketch way
hey
ill prob do that
wait ```js
class Class {
private _value: number = 1;
public get num() {
return this._value;
}
public set num(value: number) {
this._value = value;
return true;
}
} js
<Class>.num``` would return _value?
without a function
i have a json file that contains: "808344263598669874":{"name":"pea hancock","mons":[5370724],"currentBalls":3,"spawnIds":[7011973],"catching":false}} objects like these. I have a defined variable that contains an id like: 53939. How would i change the id within mons to that saved variable?
@mellow kelp
yeah
getters and setters are pretty cool for secondary effects
OYE
even if a getter does some calculations, its still not a function?
nope
well
i guess technically yes
but you don't exactly "call" it with ()
oh no
erwin is so mad that he started speaking spanish
wait it was a joke
reading my code
but
not quite there yet
moon's code kekw
you were tilted
i triggered
its different
any embed builder code will make me call you a hoe, its different frmo me being so angry that i simply cant find enough words in english to curse at you
@crimson vapor
you didn't notice that I use 2 different embed builders?
i did
ah
not only 2
wait yes i forgot about the embed builders discussion
that shit was everwhere
i can, because i'm scottish
see? mathew gets it
very rarely you see some code thats so shit you cant curse enough in english
actually sometimes i do run out of words to use
the english lexicon does not provide enough means to curse at someone at that level
want me to list some curses in spanish
no thanks
understandable
chmod 777 -R /
whats chmod 777 do
have a json file that contains:
"808344263598669874":{"name":"pea hancock","mons":[5370724],"currentBalls":3,"spawnIds":[7011973],"catching":false}}
objects like these. I have a defined variable that contains an id like: 53939. How would i change the id within mons to that saved variable?

