#development
1 messages Β· Page 29 of 1
comments don't really bother me
even somewhat make it look better for some reason
but ig it's only me that thinks like this 
across my project there are only 5 comments
make it easier to maintain and fix instead of "look good"
it's not like your users are seeing the source code and neither would they care anyway
just mark it as concise as possible
only you maintain it
then why hate so much on the way I write my JS scripts 
so comment in a way you understand on where you like it
Just don't be like me.
Hard to read code and no comments
because your code
are inefficient
and confusing as fuck
Finally sayuri experiencing Bae
but they work so I don't see the problem

you asking for help and at the same time you make your code harder to read

then perhaps don't seek help on such parts?
in order to help we must understand your problem
This guy would fail at getting any programming related job
I'm actually taking an IT major hoping to get an IT job in a couple years π
Unless he applied at oracle
Honestly, I feel like this is the same conversation has happened enough times.
only they would accept people with no style at all
maybe also get a job at game development tbh I'm better at that than any JS related thing
it's just useless trying to change a stubborn individual
Debatable
so ima just go around it
But i've seen the code
and while it isn't yandere dev level it is still pretty horrendous
do you really need to be rude like that
I showed you the bad code i wrote since we were talking about my bad use of ternaries
Meh, I don't see it as being rude, just the harsh truth
This guy doesn't accept helpful advice and hardly listens
ok no need to go this far
I do listen
while waiting this angular project to index i will watch this chat 

Angular projects indexing are insanely slow for me
Especially if its massive
they did listen
bae.listen("opinions", () => { return; });
@sharp geyser this will be alot of work
same
are you working on that website you showed me?
the one with the really impressice css animations
both have css animations π
is it also a game themed one π
BOTH ARE GAME THEMED
OMFGπ

i didn't get your opinion
both have animation at the start
one is a wiki
another one is game introduction
the ONE that starts with a black screen and white text and a glitchy logo at the start

both start with a black screen with white text
this is the intro sequence of prts
i already implemented it
so both are technically
the same traits
i'm utterly confused
god damn
you sent me the link like a week ago
I forgot the domain 
the domain?
that list of todos are from prts
yes
I want a custom domain soon but idk where to look for it
i technically have 2 domains
so i'm pushing myself to build those things asap to deploy them on
wait lemme fetch project-domain map
prts.tech -> prts (main)
beta. -> prts (beta)
endfield. -> endfield (main)
sayuri. -> redirect(sayuriu.me)
sayuriu.me -> portfolio (main)
os. -> os concept (main)
those are the projects i have deployed
both i got for free
perhaps i was lucky
@solemn latch
@ancient nova i just can't imagine how long it would be if i use english to describe this
I love how they bothered to include the footnotes at the bottom
@untold ridge no ads please
they cared 
should've picked clojure
I just don't know how the animations in angular work as I have yet to get it to work
button with progress bar at the bottom with a flex content aligned to the right of the message
No idea what clojure is
and I was joking about learnng ruby
hope you come back during the time i'm rewriting prts
I'd rather not
:ttro
nah
that won't work
Why
why not
angular
i also need more than just that
If you can teach me how animations work in angular
sure
2040
Well I will be waiting until 2040
why

I will just youtube
i got in tutorial hell
WHAT THE FUCK
I want to grab a bottle of water
there was a big ass spider on it
I killed it
one of the lags that fell of it is still fucking moving
WHA THE DUCK
I heavily dislike spiders now

@quartz kindle do you know any really light weight websocket server implementations
Need to interact with browser ws
nop, but uwebsockets is pretty cool
Guess I'll just use the standard ws lib
I tried to make my own implementation, but I'm not reading the entire RFC for implementing
@quartz kindle didn't you read the entire RFC?
so you read like half?
i guess
the websocket format itself is not hard, once you figure out the scheme its easy to implement
the annoying part is reading all of the "should" "should not" parts of the spec
like what error code to send when
in which order to disconnect properly
and dumb shit like that
all stuff that is not actually required for it to work, only to make it "spec compliant"
any yall know if its possible to get the spotify track/album url from presence data?
or: how tf to join a presence 'party' using discord js?
what even is that
those buttons join a 'party' which basically triggers loading the page/url on spotify for the user
some games have buttons for like, joining their actual game party etc
well, one button is for join and one for spectate
but yea
angular animations are cool
:((
it's still a bit confusing for me
so it will take me some time to study them
@round cove 
Yes?
just injecting some pat gifs on pat service 
have a good day
ok
app.get('/', (req, res) => {
const count = readFileSync('./count.txt', 'utf-8');
console.log(`The current count is now ${count}`);
const newCount = parseInt(count) + 1;
console.log(newCount)
writeFileSync('./count.txt', newCount);
});
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (NaN)
do you know that
readFileSync returns a string
Lmao
so is writeFileSync
it also expects a string
at least convert it to a string
<Number>.toString()
//...
writeFileSync('./count.txt', newCount.toString());
alr thanks
also, do people use ipify to view their current ip or something
like in express apps where it mentions down, your current IPV4 ip and such, do they use ipify for that
no clue, why would you want to?
no, im just trying to replicate a website that does so, lemme try finding a website
I think it's: ```js
req.headers['x-forwarded-for'] || req.connection.remoteAddress;
Also, this works but not sure if it's efficient, however, the API has no limit.
x-forwarded-for is for those cases where the user is going through a proxy when connecting iirc
yeah, not same result
Hello I was host my bot on heroku and for webhook url I use this now my bot is host in my VPS (windows) how can I get a link for webhook
usually you'd end up making your own server with a webhook endpoint
well how can I do it?
step 1 dont use heroku cuz its stinky
:/ I dont use heroku I want to get webhook url for my vps I was using heroku but now I host my bot on VPS
then make a webhook on ur vps and use that
what language r u using
node js
then use express
you can make an express server that handles the post request and does something with it
https://www.npmjs.com/package/@top-gg/sdk
this might help you
Official Top.gg Node SDK. Latest version: 3.1.3, last published: 9 months ago. Start using @top-gg/sdk in your project by running npm i @top-gg/sdk. There are 6 other projects in the npm registry using @top-gg/sdk.
Express good
const express = require('express')
const app = express()
app.post('/webhook', (req, res) => {
// do something with the data you get from it
})
app.listen(port)
all the sdk is, just combining an express server with a ready made handler function with vote as the data returned
yeah i was just recommending it since they have no experience with express 
const express = require("express");
const app = express();
app.get("/webhook", (request, response) => {
console.log("Ping received!");
});
const listener = app.listen(process.env.PORT, function() {
console.log('Your app is listening on port ' + listener.address().port);
});
just a question what should I use for PORT?
whats the point of putting the app.listen in a variable
any open port you have where you're hosting it
how can I check the open ports?
windows
I can get listener.address()
netstat -a
in terminal?
yea
it shows all the currently used ports
look for the 0.0.0.0 ones
everything else is external apps
can I send a pic from them here or I shouldnt?
interesting, it seems it doesn't show all used ports
π€
I just tested and looks like a application I currently have running isn't showing up in the list
yes
So apparently that doesn't show all used ports
It seems only the ones opened on the firewall level
:p
but why list all the ports...
You don't want two applications using the same port no?
wasting time
okay
if the ports already in use it'll throw an error no?
Also it is common practice either way. Typically when exposing something to the internet you wanna open a port and if you open a port something already uses on your machine well, gl
I've had times where it doesnt
ah
it would throw EADDRINUSE
edge cases where hacker on your computer 
π³
But nah seriously sometimes I have had it where it wouldn't even error
Doesn't canvas support node v18+?
JUST USE ANOTHER PORT IF ONE PORT IS ALREADY BEING USED
damn caps by mistake sorry lmao
well now what should I put in top gg for webhook url?
const express = require('express')
const app = express()
app.post('/webhook', (req, res) => {
})
app.listen(3000)
this is my server.js which I require it in index.js
for one, you want to have some way of being able to access that externally from your vps or whatever
it isn't worthwhile if it can only be accessed locally
so what should I do?
Im too tired to really help right now.
All I can say is find a way to expose it externally so other services can access it as well
ok tnx
interaction.reply({embeds: [embed], content: `:Commendation: <@&${progress.id}>`})```why doesn't my code ping the actual role?
I mean,it displays the role name but doesn't necessarily ping the role
let progress = interaction.guild.roles.cache.find(r => r.id === '1007367176732278855');```this is how i am getting the cached role
Uh
if...you already have the id
why are you finding it
just to get the id again
π€
Just ping the role with the id?
I know but it still doesn't actually ping the role
maybe its public bot π
it only displays it
wdym doesn't ping
you mean no one mention but it show the role?
So i tried several ways around it to basically get the same thing, ping the role
show your index.js
I've sent all necessary stuff above
in client options
here
I know
i see
just show your client options in index.js
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MEMBERS, Intents.FLAGS.GUILD_BANS, Intents.FLAGS.GUILD_EMOJIS_AND_STICKERS, Intents.FLAGS.GUILD_INTEGRATIONS, Intents.FLAGS.GUILD_WEBHOOKS, Intents.FLAGS.GUILD_INVITES, Intents.FLAGS.GUILD_VOICE_STATES, Intents.FLAGS.GUILD_PRESENCES, Intents.FLAGS.GUILD_MESSAGES, Intents.FLAGS.GUILD_MESSAGE_REACTIONS, Intents.FLAGS.GUILD_MESSAGE_TYPING, Intents.FLAGS.DIRECT_MESSAGES, Intents.FLAGS.DIRECT_MESSAGE_REACTIONS, Intents.FLAGS.DIRECT_MESSAGE_TYPING] });```
wtf
Shouldn't we allow role mentioning maybe?
Might as well just enable all intents at this point
tf are you using all those intents for
Misty you are constantly trying to notify me of other issues that are not the main reason of me asking for help. So either help me with this issue i am having or just don't help at all. Thanks!
I wasn't notifying you of any issues
I am just genuinely shocked
As for your issue, the only thing I can think of is the role doesn't exist or discord isn't accepting pinging the role in a webhook (assuming oyu are using interactions based on what I saw in the image)
i am using interactions yeah
That's so strange
I really see no other way, but again that last one is not right either as I have seen and done it myself so
also fake is replying with a long reply so he might be able ot help better

I hope so, but thanks for helping misty!
I now just made the bot ping the role instead of creating an embed and thread etc
return interaction.reply({content: `${progress}`}```doesn't discord allow role pings inside content tags?
The ports for the TCP/IP suite are unsigned 16bit integers
Thus ports above 65535 arenβt valid ports anymore
Suggested port ranges for (already registered to ephemeral ports) are: 1024β65535
IANA however suggests 49152β65535 as range for private/dynamic ports
If you wanna know more about port assignments and recommendations, read RFC 6056, RFC 6335
Thank you
π

Well discord.js by default parses the object into a mention if it is a channel, user or role iirc
You mean the role doesnβt get pinged?
yeah
Check if the role is mentionable
how?
In the role settings
Thereβs a switch saying like, βrole mentionable for usersβ or something like that
yknow
i was close
that is a thing I forgot about
Thatβs the reason you can mention @viral brookerators but they wonβt get a ping
lmao
poor Mod
worked pretty well 
Adding this doesn
context.beginPath();
context.arc(125, 125, 100, 0, Math.PI * 2, true);
context.closePath();
context.clip();
Adding this thing into canvas doesn't seem to make all things drawn on canvas circular.
What should I do to make it circular if you want code then just say me i will provide 
it's all turned on
but it still doesn't ping
I don't think that's possible in v13 then?
wtff
Weird
Almost looks like an accurate mention
What you can do is to use the mention options to ping the role
Sometimes people disabled all mentioned for the bot when initiating it
fake what time is it for u my g
1 PM
it looks like a normal ping but it doesn't ping lol
are you European as well
hmmm wait what?
CE(S)T yes
allowedMentions: { users: [interaction.member.id]},```Like this?
Yes but instead of defining an user as option, pass the role property and value of the role
(role ID)
Central European (Summer) Time ffs
gn Misty boy, sweet and dirty dreams

Okay the more you talk the scarier you get
Ik ikβ¦
what the actual fuck
if(interaction.options.getString('datacenter') === 'Light'){
const embed = new MessageEmbed()
.setColor("#9b59b6")
.setAuthor({ name: '< Light DC >', iconURL: 'https://cdn.discordapp.com/emojis/993989723104223305.webp?size=96&quality=lossless' })
.addField('Message', `${interaction.options.getString('recruitment-text')}`, true)
.addField('Ping', `${interaction.member}`, true)
.setThumbnail(interaction.member.user.avatarURL())
.setImage(interaction.options.getAttachment('pf-screenshot').url)
interaction.reply({embeds: [embed], allowedMentions: { users: [ultimate.id]}, content: `:Ultimate: <@&${ultimate.id}>`})
let r = await interaction.fetchReply()
const thread = await r.startThread({
name: `${interaction.member.user.username}-UltimateLight`,
autoArchiveDuration: 60,
reason: 'Needed a separate thread for UltimateLight',
});
console.log(`Created thread: ${thread.name}`);
const row1 = new MessageActionRow()
.addComponents(
new MessageButton()
.setLabel('Jump to Ping')
.setStyle('LINK')
.setURL(`https://discord.com/channels/${interaction.guild.id}/${r.channel.id}/${r.id}`),
);
interaction.followUp({ephemeral: true, components: [row1], content : `:white_check_mark: **Successfully sent your community ping! Check it using the button below.**`})
}
```This is my full code
looks pretty on mobile
I am pretty sure i must have a certain client property enables
intent*
interaction.reply({content: ${role}}) just doesn't work
I see something wrong
allowed mentions includes ultimate.id as user ID⦠a few chars later you pass the ID as role mention <@&<role ID>>
Soβ¦ youβre doing something wrong
True
Itβs either a role ID or user ID
Thankyou, my code upgraded;)
interaction.reply({embeds: [embed], allowedMentions: { parse: ['roles'], repliedUser: false} , content: `:Ultimate: <@&${ultimate.id}>`})```this worked
in the parse, you must enter roles instead of the roleid/object
Okay....?
The 69420 port was a joke
Yes as I explained above

Donβt do Mr Bae things ignoring the replies
ItsOkayBae
lmao
you are both dummies
typical node-gyp issue
I think it's a node-gyp error
what should I do for it?
^^^
before you could fix it by installing the windows build tools but now I think there is a better way to fix it
let me find the docs real quick
Its a common error for a lot of people
Yeah
okay...
Usually I'd build from sources when working with node-canvas (I don't know of any other way)
By default, binaries for macOS, Linux and Windows will be downloaded. If you want to build from source, use npm install --build-from-source and see the Compiling section below.
https://github.com/Automattic/node-canvas/wiki/Installation:-Windows
Node canvas is a Cairo backed Canvas implementation for NodeJS. - Installation: Windows Β· Automattic/node-canvas Wiki
This is one option
another option is to wait and see if anyone else knows a different solution
Are you using it in a bot?
yup
you could just use @napi-rs/canvas, the discord guide also shows how to use it: https://discordjs.guide/popular-topics/canvas.html#setting-up-napi-rs-canvas
oh right napi-rs has a canvas implementation as well
Yeah
so install the napi-rs and just instead of const Canvas = require('canvas'); use const Canvas = require('@napi-rs/canvas');
?
read the install instructions
Hi Tim
We will marry some day
Yeah, its mentioned on the docs too
btw what is napi-rs
napi is a compatibility layer to run C/C++ code in node
napi-rs is a project that was created to help make npm packages but in rust
napi-rs is the same thing but for Rust instead of C/C++
^
yes
if you can yes
π
using the api directly is always better, just harder
it will be so painful ;-;
but it is fun ngl
I thought it'd be painful at first as well but after a while it got fun also I know this sounds bad but shut up fake
lmao
only fake would make that weird
π
Anyway I actually do gotta sleep now
cya guys
well what if I want to use discord.js? is there any way to manage memory better?
configure your caching options
how?
also is there any different in handlers?
@quartz kindle I didnt want to mention you that time cause you were offline but check this out
who ponged
why do you immediately delete it from the require cache?
You said gn already like an hour ago
just to say
tbh this handler is too old and I dono why! I write it few months ago
Wow
I needa try using the api directly then
when you remember you first discord bot written in php without any framework just an endless while loop sending an API request every 2 seconds to get the latest op codes including the data

@_@
at least you didnt import files using eval like i did :^)
Or the updated version using websockets being started and running in my browser window

mine used to run on nwjs, so pretty much same thing, a browser window
xD
Well tbh worked quite well
i even made a chat UI
so i could talk with people through my bot
and yes i used to log every single message from everyone
Yeah made two buttons for a gateway connection and disconnection and a text field to evaluate some code
xD
me when tim's bot's main process is google chrome
lmao
xD
@quartz kindle can u help plz π
Sad story is this shit browser may uses more RAM than djs can

Yeah xD
nah
cmd / event handler
Sayumi runs on DJS and she consumes 2gb of ram
ye what about it
big djs bots use 50gb ram
damn
Sharding
Sayumi was handling like 50 servers at the time
mine runs for months
i just need to refresh the discord tab
lmao
well I have to change my handlers to use less ram but dono what should I change and whats the problem with my handlers
tim with questionablr design decisions
do you have s struct
your handlers are not the problem lol
yeah
so whats the problem?
do you have the struct
i said to check your djs caching options
but what if they do a nΒ² algorithm
how to check them? in clinet options I dont have any thing about caching
heres an example
const client = new Discord.Client({
// default caching options, feel free to copy and modify. more info on caching options below.
makeCache: Discord.Options.cacheWithLimits({
ApplicationCommandManager: 0, // guild.commands
BaseGuildEmojiManager: 0, // guild.emojis
ChannelManager: 0, // client.channels
GuildChannelManager: 0, // guild.channels
GuildBanManager: 0, // guild.bans
GuildInviteManager: 0, // guild.invites
GuildManager: Infinity, // client.guilds
GuildMemberManager: 0, // guild.members
GuildStickerManager: 0, // guild.stickers
GuildScheduledEventManager: 0, // guild.scheduledEvents
MessageManager: 0, // channel.messages
PermissionOverwriteManager: 0, // channel.permissionOverwrites
PresenceManager: 0, // guild.presences
ReactionManager: 0, // message.reactions
ReactionUserManager: 0, // reaction.users
RoleManager: 0, // guild.roles
StageInstanceManager: 0, // guild.stageInstances
ThreadManager: 0, // channel.threads
ThreadMemberManager: 0, // threadchannel.members
UserManager: 0, // client.users
VoiceStateManager: 0 // guild.voiceStates
}),
intents: [ /* your intents here */ ],
});
by default djs caches the request data for faster load
you can free up the cache to save memory
I guess one of the most important thing is guild channels and then try to fetch to find channels that I want am I right?
Why do you delete the cached files after requiring them and not before?
the things that use the most memory are messages, members, users and channels
and presences if you have the intent
well what will happen if I use MessageManager: 0
your bot will stop caching messages
meaning you cant use channel.messages.cache.X anymore
_djs exploding immediately _
I didnt use messages.cache in all of my source I just use messages.fetch in few files
so then it wont affect you, you can safely set it to 0
I'm creating a devcontainer and the build fails at the last line down π.
FROM node:16 AS node_base
FROM php:8-apache-buster
...
&& docker-php-ext-install mysqli pdo pdo_mysql ldap zip \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
Error:
error: Cannot find ldap libraries in /usr//lib/x86_64-linux-gnu/.
my mc server hit 80gb ram yesterday 
lmao
it runs on a 128 gb ram one
turns out using /reload just piles up more and more ram lmao
its Β£40 a month to run
but someone funds it

on an average day its ~30gb ram
No empty MC server for Tim anymore
amm for channels users members and even messages I use fetch and didnt use channels.cache or ... so put all of them to 0?
for users and members its safe yes
for channels you might have issues in djs
but we've tested and it goes up to roughly 40gb ram for 250~ players at once
because disabling channels is not officially supported in djs
what about messages?
we already talked about messages
ok
you can try setting the channels to 0, but you have to test and see what happens
XD
because without channels there is no channel permission overwrites
so you cant check permissions
oh
unless you fetch the channel
gotcha
At least not for non-interactions
wait without members and users, mentioned member will cached?
if you set the cache to 0, no, nothing will ever be cached
mentioned members are included in the message payload
so you can still access it from received messages
but otherwise no, you have to fetch every time
so if someone mention the member in command or select it in interaction the code will run but I cant use client/guild.members.cache client.users.cache and channel.messages.cache am I right?
yes
but for example in events when member left/join that member will cached am I right?
no
for member join, you will have the full member
because its included in the payload
but for leave you only get an ID
and you need to enable partials in djs options otherwise the event will not work
π
and I didnt use something in my code but they are cached for example guild.commands can I set them 0?
Well the cached command app data ainβt much anyways
and what is the meaning of GuildManager: Infinity,
Can anyone help me make a good and appealing description for my bot please
I don't know html or css
you dont need reaction manager to receive reaction events, but you need the reactions intent
also without the reaction manager, you cannot know the total number of reactions
you have to count them yourself with a collector
I mean I dont have reaction intent should I use ReactionManager: 0 and ReactionUserManager: 0 or because I dont have the intent there is no difference
you wanna hire some people
Umm I don't have money actually..
how big is it
there should be no difference, but you can set it to 0 as well just to be safe
@quartz kindle well I write this
big, very big
what
lmao
dont disable voice states if you need it

thats what she-
you want me to build you a portfolio tim?
i want you to make me a website
LOL
depends how much
Tim poor boy
i can make something
Unless he sells his body
i can give a discount
i can make an onlyfans
I just use a log with that
π
lmao
timfans
First subscriber: Sayuri
Lmao
Damn
OnlyTim
you are obstructing my render engine
you wont have oldState without the cache tho

tim
oh ok whats else?
i thought of a template
a template of time
poggers
suggestions: nextjs, react, framer-motion, chakra
you are not gonna disable users?
my website gonna be svelte + raw js/css
I will just need to change few lines in my code
naisu
xD
create it
me and you are gonna do it together
any idea?

either the prebuilt download failed or the build failed
check install instructions
make sure you have all the requirements
how ?
wait am I need to require Canvas in index.js or no only in files that want to use Canvas?
Only in the files its required in
is there any way to just use Canvas instead of napi-rs
is your windows 32 bit?
yes, install it properly
I mean there is, but it isn't much different than node canvas
and your having issues with it too
yes but If I install it there is no more issue
let me check
yeah ig
no
then why is it looking for the 32bit version
hmm
idk 0.0
be a chad and recompile them
animate a logo for my bot π€
do u have any idea what should I do
finally fake got off my back
try installing the regular canvas
xD
did you check the install instructions?
Node canvas is a Cairo backed Canvas implementation for NodeJS. - Installation: Windows Β· Automattic/node-canvas Wiki
for canvas? no
I cant I sent the err before
because you didnt read the install instructions
How much for my bot?
maybe for free, depends on prestige level
then do it
Bye
lemme see
it takes time to code those animations you know
Sounds good, I got something damn simple to animate I could do myself but for 5 bucks
Just realised my bots logo can't be animated :')
> sayuri check prestige-level Tim
Yeah ik
how much π€
user.Prestige: ENUM{Level}.Friends.2 "It's been a while."
but
sayuri check prestige-level Kingerious
i would only ask after i actually done it
why installing canvas is too hard :/ I remember I just install it with npm i canvas
> sayuri jobs start prestige-farming
user.Prestige: ENUM{Level}.Stragers.0 "A blank piece of paper."
lol
π
that's illegal
:(
> sayui shop prestige-booster

Youβre broke stop trying to buy stuff
user.Prestige: ENUM{Level}.Stangers.3 "Well-known for something."
user.PrestigeBias Level {-2}: (private BiasReason)
you canβt pay it anyways

i'm imagining me as a shop npc
just finish the bot port
:^)
Lmao

you ask for kidneys?
why I can't uninstall this?
because it wasnt installed
@civic scroll Do you actually need a SVG to animate stuff or can I pass you a PNG and you recreate the vectors yourself (again)?
path tracers are garbage
if i have the svg it would be easier
so why I cant install it
otherwise we gotta recreate them from scratch
not a valid version, read the error
try installing
looks like you broke your package.json somehow, try deleting node_modules and package-lock
π

Can you insert an hashtag easily? The rest of the logo I got is a SVG
hashtag?
ok
Yeah hashtag, itβs part of the logo
i can
Sounds good
it's just 4 paths
Iβm gonna head out to you in DMs later that day
Tim stop interrupting our business contract
this is actually 14 paths

i will interrupt you
where is speedy to talk about interrupts
Poor boy
i cant even use that svg plugin since im building it programmatically from strings and vars in js
rip
it works in html and svg tho
but not in js strings =X
Can bots even have an animated logo?
nop
not afaik
me too, me too
yes yes
FakE paying muuuuch
I pay more
I doubt
try doing it in raw svgfile
a whole 5 bucks
to
Iβm paying 6
huh
ill pay 7
Shut up, Tim

You donβt even have 7
Oh great
lmao
owo?
tim
Spam -> Ban
actually you can
@quartz kindle syntax highlighting works
First payed job, sayuri asking if the customer trusts her 
I just had the greatest idea in my life
you gotta send me over the 10k bucks, I will do the job then (maybe)
π
why not use this as treue and the other as false
huh
basically have toggles
ascii highlight only works on pc
β
this works
@quartz kindle well I install everything again and still I have this err
doesnt seem to work for me
i said to install canvas, not napi-rs
you want the svg plugin for help right
my vps has syntax highight for different languages in one
i suggest the workaround is to open an boilerplate svg file
then infer help from there
yeah
the intellisense only works in svg files
maybe it will work better if i open it in webstorm
well for canvas still I have gyp err but I install it
What is big? My bot? It's in 47 servers rn
i thought website when i saw this
Filled with advanced economy, fun, games, memes, welcoming, anti-bores and much more.
Gentleguy is here to spice and light up your server.
I want to make my bot description more attractive and cooler
@civic scroll
Can u do that?
What is boilerplate
how is the search on the website so awful? π€£
its when you boil your plate to kill the germs
after you eat
smh
LMAO
is there a way to change prototype for Interaction? like:
const { Interaction } = require("discord.js");
Interaction.prototype.error = function(key, args) {
key.reply("β" + key)
}
//This one is not work
bec there is a way prototype for message Example:
const { Message } = require("discord.js");
Message.prototype.error = function(key, args) {
key.reply("β" + key)
}
//This one is work
just fyi, once an interaction has been deferred, you can't use the reply() method anymore
make sure to check that before responding
this is right but it's not the error, this is the error :
v14?
class has been renamed
class BaseInteraction extends Base
not Interaction anymore
yep
"discord.js": "^14.0.2",
np
why this code have error in has?
if (!interaction.channel.permissionsFor(interaction.guild.me).has("EMBED_LINKS")) return
what is the error....
ive never used interactions so i probably cant help unless its something obvious
you can't simply pass string as permission names anymore
draw with gimp and export as svg, ezpz
me omw to clip studio paint
this is the error
then how ?









