#general

9613 messages · Page 9 of 10

vestal perch

Hiya capy~

muted needle

Ello

And back to sleep, good night

URR_GortSniff

frozen quiver

dont know who wrote this but it got a good laugh out of me

copper jacinth

just v26

new version every year

broken hatch
broken hatch

wait who in his right mind reverted all the nicknames by hand? jobless mentaility type shit

jagged quarry

ah yes

by hand

cold jasper

Yea

Type shit

broken hatch

do I sound england?

jagged quarry

does england sound?

cold jasper

I do not hear, I only see

zinc hedge

You sound zoomer

vestal perch
jagged quarry

accurate

broken hatch
zinc hedge

Sure let's go with that

broken hatch

I don't get it, I call cap

copper jacinth

zoomer is better than gen-alpha

broken hatch

but what is zoomer

vestal perch

someone who zooms~

broken hatch

sniper?

cold jasper

Got the zoomies

vestal perch
broken hatch

AI says they happen to dogs and cats

and it doesnt seem to be the cartoon I asked about

no cap, but am not delulu, so send the name of the cartoon to me sigma

red rose

oh damn, umizoomi

haven't heard that in... probably over a decade

elder eagle
vestal perch
elder eagle

Never heard of it mmLol

meager wigeon

Finally I am not a number

dogeHaHa

amber spindle

noooo

the numbers are gone

worthy pulsar

finally i can go back to my beautiful and unique username

elfin ore

You can't copy nicknames on mobile >:c

signal tusk

Since i got a name idea(icq.js) im starting my own improved discordjs fork and it will be the best ||please dont ban me im jk||

elfin ore

Just do v14-selfbot

long girder

just do discord.js-light

split linden

all the power of discord.js - without the caching!

indigo verge

am i yet not a snowflake

oh cool

hidden vault

They've finished the April Fool's joke lol

amber spindle
long girder

why

grim niche
tall seal

hi

amber spindle
long girder why

fully typed but minimal overhead when you just want simple events 🔥

no caching or fancy classes to "bloat" the runtime

long girder

you're writing a nodejs application your runtime is bloated anyway

amber spindle

nahhh

peak efficiency here

no cache and heeps of servers giving lots of events™

elder eagle

15.7GB/736MB sure is an interesting fraction

amber spindle

CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS

fresh sorrel

When is Discord.js getting rewritten in Rust

amber spindle

when TS is no longer goated (somehow)

tropic cedar

oh

atomic monolith

The one thing that sucks is resolving command interaction options 💀

amber spindle
atomic monolith

Mainlib makes that so convenient lol. <ChatInputCommandInteraction>.options

echo tapir

you guys

atomic monolith

But hey, you can always steal that code from mainlib

And make it a utility function of some sort

amber spindle

my peek claude slop

echo tapir

i already did this

and its published under sapphire

atomic monolith

Wtf

echo tapir

ages ago lol

atomic monolith

I wish I knew about this before lol

echo tapir

might be missing some of the new stuff maybe but PRs welcome

its legit just the code from mainlib with raw api types

and the class is split depending on interaction kind

amber spindle

indeed where is get radio value

echo tapir

yeah its new

PR it :^)

amber spindle

unironicaly im tempted to pr even if im never gonna use it

lol discord api is funny

atomic monolith

I'll probably use this from now on so I'm very much interested in making a PR lol

echo tapir

please do

I mention it whenever I see people complain about this problem w core

it could maybe use a spot in some faq/resources channel

atomic monolith

Would y'all be open to making this a "default" option in core? As in something core re exports and uses in the docs/examples

echo tapir

probably not. hence why I PRed it to 3rd party sapphire as opposed to core

at least IMO it does not belong in core

amber spindle
echo tapir

we don't have a subpackage to shove it into either, for this sort of common utility

atomic monolith

Core is meant to be minimal and raw, and this does abstract that so I can see why it doesn't belong there

long girder
echo tapir
echo tapir

its not meant for you to just install it and import stuff from it

long girder

we should revive akairo

atomic monolith

That old bot framework??

echo tapir

yea akairo was really good for its time

props to comp

atomic monolith

Lol I remember using it years ago

long girder

it's not old it worked up until v13 dev

echo tapir

though we all hate that sort of OO-driven crap now

at least comp def. does and so do I

recently I discovered some new patterns for HTTP servers and I kinda wanna adapt it to the stuff you'd have in a discord bot

long girder

omg what if we use js proxies and if you call .get() or .post() etc at the end it executes the request

we could name it client.api i think it would be cool

echo tapir

I have fully typesafe middleware and specifying it in the route definition actually correctly augments the req just in that context

long girder

oh you said http server

echo tapir

ye

I was working at some point on typesafe interactions but its pretty impossible

typesafe as in like

the object becomes aware if you e.g. defer and it now knows what the valid remaining possible actions are

amber spindle

what if we make discord.irlpost

echo tapir

I might come back to that problem at some point

its pretty complex but I think it is solvable

atomic monolith
long girder
echo tapir

its hard to design a decent API for it

long girder

oh

echo tapir

there's so many weird edge cases too

amber spindle

so you can get feel for if its too hand holding or painful still

like a interaction.replyWithPing() would be funny

echo tapir

re what I was talking about

long girder

does he know?

echo tapir
export const loginSchema = {
    body: z.object({
        username: z.string(),
        password: z.string(),
    }),
};

export const loginRoute = defineRoute({
    method: 'post',
    path: '/api/v1/auth/login',
    schema: loginSchema,
    middleware: [ephemeralOrAuth] as const,
    async handler(req, res) {
        if (req.identity.type === 'user') {
            throw conflict('Already logged in');
        }

        const { username, password } = req.body;
        req.log.debug({ username }, 'Login attempt');

        const [user] = await container.db<{ id: number; passwordHash: string }[]>`
            SELECT id, password_hash FROM users WHERE username = ${username}
        `;

        // Always run bcrypt.compare to avoid timing-based user enumeration
        const passwordMatch = await bcrypt.compare(password, user?.passwordHash ?? DUMMY_HASH);

        if (!user || !passwordMatch) {
            req.log.debug({ username }, 'Login failed: invalid credentials');
            throw unauthorized('Invalid username or password');
        }

        req.log.debug({ accountId: user.id }, 'Login successful');
        setAccessHeader(res, createAccessToken(user.id));
        setRefreshCookie(res, createRefreshToken(user.id));
        return { id: user.id, username };
    },
});

example route

atomic monolith
zinc hedge

lmao what

echo tapir

and I have a fancy type

and in the frontend

type LoginContract = InferRouteContract<typeof loginRoute>;
export type LoginBody = LoginContract['body'];
amber spindle
echo tapir

I have full type inference

body, response, etc

and as I said, inside the handler req's type is affected by middleware: [ephemeralOrAuth] as const,

so req.identity is typed in that context as is defined by the middleware

long girder

can you get type information out of a zod value? or is that separate

echo tapir

that's what's happening for the body, if that's what you mean

schema: loginSchema is what dictates the body type

long girder

yeah i'm just confused how that would work

echo tapir

zod just has types for it

z.infer or whatever

long girder

but i guess ts wizardry can make anything happen

echo tapir

zod is just fully typesafe

some generics and separate return types on every method

so eventually the final schema object you have contains the type information for what .parse will return

amber spindle

oh nice i didnt know you could use npm packages in the playground

btw zod/mini is pretty fun too

low zodiac

poggies

lilac cloak

i started using zod recently, i've only implemented it a little bit but it's so much cleaner than my manual attempts at validator functions

serene ridge

@copper jacinth for my issue about the checkbox group components, the question "What part of the app is impacted?", it doesn't show anything about components

barren grove

blobreachReverse

elder eagle
hushed belfry

aww man

its back to discord.js

I really missed calling people 415588601120686091

long girder

you can call me #1

copper jacinth

and im #2

long girder

@plain tangle you should become our #4

poggies

jagged quarry

what happened to #3

plain tangle

#4 of what

long girder
jagged quarry

oh gross

long girder
lilac cloak
jagged quarry

haha sucker

copper jacinth
lilac cloak

thank god

limpid osprey

yo

my user id got hide back lessgo

copper jacinth

what do you mean 1046050982108332133?

limpid osprey

dogeHaHa

dont leak my pvt info

souji bro when you got this badge?

vestal perch
copper jacinth
elder eagle
copper jacinth

PoopWalk

distant bough

I'd like to have a word with whoever designed this website

strong valve

for...using tags?

distant bough
strong valve

that's not really a conscious decision to make

distant bough

either they didn't expect chats to get longer than a couple dozen messages, or they absolutely didn't care about how expensive rendering that many elements is

strong valve

who is it that you're talking about anyway

discord?

distant bough
strong valve

lol

distant bough

whenever you open a chat in ChatGPT it renders all messages, and some messages can contain something like 60 DOM elements, so if you have a chat with more than a couple dozen messages it's gonna have thousands of elements

long girder

just have a good browser

strong valve

and so you're lagging when you chat with it?

distant bough
copper jacinth

i mean dont you also run into issues having a conversation go on that long with the model itself?

long girder

no that was only a thing with older models

distant bough
distant bough

You know... a website should not be using 15% of a 16-core CPU just to render itself...

Honestly the ChatGPT front-end is probably vibe coded with ChatGPT so what was I expecting XD

strong valve

well yeah, the fact you thought it was a conscious decision was a false dichotomy

they made a chat, it displayed messages, that's all you need lol

list virtualization is a feature

distant bough
strong valve

they didn't choose not to do it, they simply just haven't done it yet

distant bough

your computer would be dying to render the 18000 messages in this chat

copper jacinth

wasnt the claude code codebase getting some major hate the last couple days because of how bad the codebase is? you assume the ai companies arent using ai to make their tools?

jagged quarry

discord's list virtualization for messages and channels is certainly something that exists

distant bough
jagged quarry

discord definitely uses a form of list virtualization

distant bough
jagged quarry

first of all, the api wouldn't serve 11 million messages to you

copper jacinth

the bigger problem would be fetching that list

distant bough
distant bough
long girder
distant bough
long girder

good so my intuition was right

distant bough

😭

willow smelt

soooo

they really did rollback every id

lol bet discord api wasn't happy

normal kiln

heyo

harsh sedge
floral goblet

Smth weird happened

copper jacinth

have you tried turning it off and turning it back on again?

floral goblet

Wdym

barren grove

have you tried killing the app process and opening the app again

or reinstalling

floral goblet

Me?

jagged quarry

no the other guy having app problems

floral goblet

Ok

barren grove

yes, you

floral goblet
barren grove

yes

floral goblet

I meant on this app

barren grove

yes

have you tried killing the app process and opening the app again

floral goblet

While i tried joining the community

warm saffron

What happened to .1 patch

floral goblet

Dunno

Im new here

tight summit

what is what

stray hare

i

tight summit

what is going on here what are u talking about

copper jacinth
floral goblet

Where do I find the app

barren grove

huh?

what app?

tight summit

sorry i only do #include <iostream> std::malloc

floral goblet

Discord.JS

tight summit

discord JavaScript

copper jacinth
long girder

it's a programming library not an application

barren grove
tight summit

deezcord

obtuse pecan
mighty urchin

nicknames are back

Honestly i preferred id version lol

long girder

guys we are still hiring for #5

tight summit

rizzcord

long girder

apply now while numbers are still low

floral goblet

Are there rules

barren grove
tight summit
azure dirgeBOT

discord.js @ 14.26.2 has been released!

We recommend you upgrade to this patch release ASAP!

-# @everyone pingBOYE cryCat

This release:

  • fixes DM channel issues that came up from implementing DM channel support for user-app commands ran in DMs between two users
    View the full changelog here.

As always, if any issues come up, open an issue with a reproduction sample! Prayge

cunning void
tight summit

rizzcord.js should happen.

floral goblet
long girder
jagged quarry

there could be

barren grove
long girder
distant bough
south hawk
long girder

micah claimed 4

obtuse pecan
distant bough
south hawk

@cold jasper Be #5

distant bough
barren grove

nvm didnt see it was archived lol

cold jasper
long girder

yes we are

poggies

muted needle
long girder

chewie your turn

muted needle

No

jagged quarry

gort

cunning void
muted needle
long girder
cunning void

Okay I'll claim 6

long girder

LETSGO

copper jacinth

POGSLIDEPOGSLIDEPOGSLIDE

muted needle

Fine

long girder

not many more single digit spaces available

long girder
fiery glen

wym discord.js

cold jasper

Get your digit soon, space is running out!!!

jagged quarry

yes there are plenty

fiery glen

you mean more like icq.js no?

long girder
jagged quarry

you have no proof

long girder

actually i'll just switch to #0 fuck you

cold jasper

Can you two decide please

long girder

no it's a cool effect

like rainbow roles but legal

cold jasper

I'll call Jason personally to 429 you for 3 weeks

long girder

oh shit i never realised you were my mum

jagged quarry

your mom

copper jacinth
south hawk
long girder

i am #1

long girder

HEY

echo tapir
south hawk
long girder

appel took away my #1

cunning void

He prolly wants that

jagged quarry

turns out you can just do things

he can also be 67

south hawk
cold jasper
long girder

50 us dollar dollars

echo tapir

highlight of the night

they knew what they were doing getting the old guy do this one

manic stirrup

What happened to ICQ.js?!

indigo shale

What's that

signal tusk

DUDE I WOKE UP CUZ I THOUGHT V15 HAS BEEN RELEASED

And its just v14.26.2

please dont ping everyone until v15 is released

barren grove

no

why do you want v15 so bad

indigo shale
signal tusk
signal tusk
indigo shale

We have a v16 milestone we are working towards

cold jasper

More bigger better number for bigger better user without making the number bigger better

long girder
signal tusk

u should make "discord.js remake”

indigo shale
signal tusk

tf

long girder

oh my condolences for the demotion

indigo shale

Thank you

signal tusk

Bro just got demoted?

long girder

yeah i called crawl

signal tusk

oh

lament aspen

Should’ve called Saul

long girder

but saul fled from his old office

mental stirrup

v16 when guys

lament aspen

I think his new identity is Paul

long girder

bin and kinect you can claim #8 and #9

the last two remaining single digits

mental stirrup

say less

long girder

less

lament aspen

I prefer echo

long girder

but echo can't read files

lament aspen

He said "say"

long girder

wait actually

lament aspen

I don’t have that cmd

long girder

does echo < file work

dense sedge

hello

ah my name is back

long girder

why is your domain a gitlab instance with invalid tls

lament aspen
dense sedge
dense sedge
lament aspen

Bc he envies my identity

dense sedge

i actually have some trouble with opnsense :/

long girder

your identity is a gitlab instance with invalid tls?

lament aspen

That makes sense

dense sedge

u sure

left rapids

are our usernames no longer ids lol

tropic flume

guys i wanna learn how to code discord bots

copper jacinth
sudden robin

could someone help me with something?

cold jasper

I cannot help you build a rocket engine unfortunately

copper jacinth

i cannot help you create a mind reading device either

long girder

i can help you with anything

sudden robin

@modern harness
@arctic cove

long girder

idk they look pretty existent to me

barren grove

accounts don't just get deleted for no reason

copper jacinth

ban evasion?

sudden robin
sudden robin

553583443854884864 had clean standings and still went boom

barren grove

ok so making new accounts is actually really bad, you're ban evading right now

well again, it doesn't get deleted without a reason

sudden robin

is ban perm?

copper jacinth

you would have to check on your own... and appeal it if you think your reason was invalid

cold jasper

Read what it says, should tell you "Account suspended until XXX" or something like that

sudden robin
copper jacinth

so... that would mean it's permament

cold jasper

Then I think that answers your question

Permanently = long form of "perm"

sudden robin

anyone know where the appeals page is?

copper jacinth

the account standings page should have a button

normal kiln

i got on my balcony too late to take a picture , but like ... since the snow is melting the cat pee is smelling HARD ... but we know its not our cats because ... they are too scared of the cold like their mother... LMAO

but like .. it was good enough outside for them going out ... and ... we hoped that my cat would like.. scare the other cat away.. BUT NO

... i got there too late but ... my cats made friends and they were like ... 7 on my balcony ffs

Long time no see moment for them i guess

...thats one hell of a error ...

barren grove

what’s an error

normal kiln

ok..... ?... OMEGAlul

normal kiln
barren grove

true

normal kiln

esp. when the function... is 2 line

jagged quarry

just wait until you get the ol' "type information has been written to file" when debugging complex rust types

tawdry tulip
elfin ore

I kinda wonder if you can do type shadowing in Typescript

tawdry tulip

Pretty sure you can. The same way you can do with outer and inner scope variables.

elfin ore

What if array type points to different types?

tawdry tulip

But if your doing that then you must really hate yourself or the othe devs that have to read your code.

elfin ore

I was wondering why array and array are incompatible, in Lily's code

tawdry tulip

Because its probably something like

const myArray: CustomItems[] = [];

function foo(arr: CustomItems[]): CustomItems[] {
return [...arr] as any[];
}
elfin ore

Ah, it's kinda dumb bad that the compiler simplified the type when it's reporting an incompatibility

storm gust
tawdry tulip
storm gust what are types

Its a way for developers replace the 50 line comments in a code with 50 lines of type definitions that can make thing much harder to understand.

storm gust

i liked jsdoc'ing my js files

elfin ore

What was that Google's javascript compiler project name?

Closure, I can't believe it's still being maintained

It had type validation but you had to document them using jsdoc

normal kiln
normal kiln
tawdry tulip
normal kiln 13th line in that

Yep looks like a strict type array issue.
Your passing a loose array type Document and the function is expecting I think MongooseDocumentArray

OR a TPetData.. There seems to be a few things in there. The function might be doing a deep type check

normal kiln
export async function getUserWithPet(userID: string): Promise<TUserDoc> {
  const user = await userModel.findOne({ userID });
  if (!user) throw new Error("USER_NOT_FOUND");
  return user;
}

thats the function ... xD

it errors on the return

tawdry tulip

Then it might be a schema build error.

It looks like inside some of the query building checks its expecting an object/array like TPetData or TPetData[] but it got null

elfin ore

I'm confused...

normal kiln

same

tawdry tulip

The wonders of query builders

elfin ore

Mongo is just cursed

tawdry tulip

I run into this issue with Kysley sometimes where I forget that some JOIN queries may return null values but I wrote the schema say that it should always be some value returned.

normal kiln
export type TPetData = {
  petName: string;
  petType: string;
  hunger: number;
  happiness: number;
  health: number;
  lastFed: Date;
  lastPlayed: Date;
  lastUpdated: Date;
  level: number;
  experience: number;
  skills: petSkillsEnums[];
  skillXP: Partial<Record<petSkillsEnums, number>>;
  personality: PetPersonalityEnums;
  inventory: TPetInventory;
};
export type Tpet = NonNullable<TUserData["pet"]>;

🤔

elfin ore

By the way, I'm not sure how good of an idea it is to elevate the error rather than passing the falsy value. In javascript handling the error that way will add a bunch of boilerplate

normal kiln

oh and before you ask that is TPetInventory

export type TPetInventory = {
  medicine: TInventoryItem<MedicineTypeEnums>[];
  toys: TInventoryItem<ToyTypeEnums>[];
  food: TInventoryItem<FoodTypeEnums>[];
};
tawdry tulip

So you need to make sure that lastFed is a Date and not Null if its never been fed before. Which is fine if your using Mongoose now() on row create. If not it will be null.
Same with lastPlayed, lastUpdated.
skills is an array might be an issue if the pet doesn't exist it means the join to get skills will return a null

normal kiln

skills has a default of a empty object

wait no thats skillsXP

skill is skills: [{ type: String }],

tawdry tulip

Is this something you wrote or something the schema generated. I might be confused here.. As I use Kysley Prisma plugin to generate all the table types for me.

normal kiln
tawdry tulip

This is probably where its breaking down then. You might not be catching a edge case with your types and some value in the type your passing is say undefined but the query schema is expecting an actual value.

normal kiln

Maybe i fucked it up lol

i need a 3rd monitor ....... OMEGAlul too much to open

tawdry tulip

I tend to stay a way from ORMs so Im not much help. I do use Kysley which is the middle ground, its a query builder but uses the libary wrapper (mysql2) to just execute the queries rather than something like Drizzles engine.

normal kiln

just finding the right path to send all the interface will give me a headache

but the package looks very interesting

normal kiln

i had one triple monitor arms

tawdry tulip

Good investment. Never had a monitor stand for two or three. I have two in landscape left and middle (gaming monitor) and the right is in portrait mode.

Windows seems to have massive issues when it needs to turn on the portait mode monitor, it resets its self like 4 times before it finally works.

normal kiln

lol

tawdry tulip

I found out you can disable the terrible animation when a monitor connects and the screen zooms in and out. So that sped it up a lot

copper jacinth

you can disable that?

tawdry tulip

yep

normal kiln

Windows has that ?

never seen a animation when connecting a monitor lol

copper jacinth

ya... it's really annoying...

normal kiln

in my case the monitor turns off and goes back on

tawdry tulip

Accessiblity > Visual Effects > Animation Effects to Off. A very mundane name but all it does is turn off the windows connected monitor animation and nothing else.

normal kiln

..oh

mine were off thats why i never seen one XD

tawdry tulip

lol

frozen quiver

yeah its super annoying

normal kiln

oh btw i got rid of the error

that thing was missing

tawdry tulip

user error for the win.

normal kiln

yyyeeeeppp

tawdry tulip

Its why I like using Kysley + Primsa to generate my types for the table schema. I can still make a mistake but its at the schema level so Prisma will yell at me.

On compile and not at runtime

frozen quiver

are you using those together?

tawdry tulip

Sort of. I only use Prisma for Migration control and schema building. I dont use the client in the backend to run queries. I use Kysely for that. Its just a query builder that produces a query that is passed to the database. So no high level wrapper performance hit on the queries.

frozen quiver

that makes sense, prisma is known for having issues in terms of query generation

elfin ore

Automating the process of building queries sounds like a bad idea if you care about performance, there's a bunch of things that the query builder may not consider

tawdry tulip

it does no processes in the query itslef its passed right to the database

elfin ore

Ah, I see

sharp igloo

Anyone can suggest the cheapest & reliable vps?

zinc hedge
meager wigeon

blobreachReverse

fervent belfry

uhm guys no more v13?

long girder

it's 2026 why are you still on v13

muted needle
cunning void
fervent belfry
tidal zealot

What's should be ideal shard per cluster count?

tidal zealot
atomic monolith
mental sleet

wait what happened to icq.js?

amber spindle

the real answer is that its no longer the fun date
the funny answer is that idk

worthy umbra
tidal zealot

19m users wow.

worthy umbra

I think only for current cluster

tidal zealot

oh

yeah i have like total 8gb ram usage rn, wbu?

worthy umbra

I’m not the owner tho but like do you use discord hybrid sharding?

worthy umbra
tidal zealot

oh, have you enabled cache optimizations: sweepers and cache limits?

worthy umbra

What does your bot do

tidal zealot

it's a tts bot

worthy umbra

While this one is multi-purpose tickets, giveaways etc

Basically everything

so it has a bit higher ram usage

tidal zealot
tidal zealot
worthy umbra
tidal zealot

yeah, tts is kind of a niche feature

worthy umbra

I mean its cool hahaha

tidal zealot

yeah, does help people. like people with mic issues or disabilities

worthy umbra

ye

transcripts to?

green frigate

hi guys, im new here, can someone help me, id like to raise a support request in line with the discord but i cant find the right channel for it 🙁

floral goblet

Uh

Dunno where cuz im new too

junior idol
tidal zealot
tidal zealot
amber spindle
amber spindle
green frigate
tidal zealot
amber spindle

ye

i get like a gb of data from discord every day tho

junior idol

I mean server count/user count doesn't really mean anything. How much the bot is used is another question.

amber spindle

i wouldnt like to see my stats with normal djs cache

amber spindle

"What's should be ideal shard per cluster count?"
another reason why this is a bad question, as it really depends

mainly just about ur own specs and usage

junior idol
tidal zealot
amber spindle

yeah

how much cpu usage does each use?

like are you using default discord shard count configuration

(i think its arround 1.5k/shard)

elder eagle
limpid osprey

heah, client.on is a event right?

copper jacinth

It creates an event listener

You then have to select which event you listen to

green frigate
elder eagle

Your choice really. Just wanted to know if you found a mod to contact. Which you did

green frigate

ok thank you anyways! i can wait.

candid tide

Is crawl even a mod

split linden

yis

amber spindle

he has the role 🤷

lofty cairn

does crawl walk

limpid osprey

blobconfused

warm saffron
low zodiac

when icq.js v15 monkaS

neat patrol

What do you need out of v15

Because v14 has or will get everything discord added so far

barren grove

what?

what’s gone?

huh?

copper jacinth

There never was a general-2

barren grove

how do you know?

yeah ok, you have 18 messages here, and there was no such thing as general-2

go troll elsewhere

long girder

actually this is general-2

general-1 was discarded after the report incident

only the ogs will remember

barren grove

yes

copper jacinth

If you're an og you would remember

barren grove

lol

long girder

first pin in this channel

frozen quiver

on the official djs wattpad

barren grove

omg wattpad!!

long girder

no i am the number one member

barren grove

so pushy

long girder

🤔

muted needle

Worst troll in history of trolls

long girder

i feel like you're thinking of another server with general-2 and a lime green role

muted needle

Even worse than vape

long girder

danial says i'm a good troll and i trust him more than you

muted needle

His bar is quite low

long girder

but he's #3 and you're #7 so he wins

barren grove

lmao

bye

muted needle

Bye

long girder
jagged quarry

hello

long girder

what was the largest server again

fortnite or pornhub iirc

jagged quarry

midjourney

amber spindle

hi

long girder

oh wow

amber spindle
muted needle

Quite average I would say

long girder
amber spindle
long girder

how did that happen

barren grove

i think mid journey has like 20 mil

amber spindle

wow how

jagged quarry

ai

long girder

no not ai the member count is real

jagged quarry

wait my nickname got set back lol

amber spindle

was midjourney the one that half encourages people to make alts so they can get more creds

amber spindle

hmm

500% encourages

lapis dirge

That's not what we're talking about Discord 🙏

amber spindle
lapis dirge
split linden

also encourages you to make alts - apparently

lapis dirge
amber spindle

i think he is just referring to that AI overview

lapis dirge

Thaaat makes sense

jagged quarry
split linden

true, sry 4 typo

jagged quarry

you better be

tribal oriole
lapis dirge
normal kiln

heyo

barren grove

HI MOM

normal kiln

how's ya ??

split linden

did you adopt jo, or what did i miss?

barren grove

LMAO

its our little thing

split linden

i've witnessed weirder things happen kek

cold jasper

Yes adoption has taken place

barren grove

do u remember when lilly named herself "mother of d.js" when pomelo came out

cold jasper

Apparently once more as she forgot about me

barren grove
split linden

i do not

barren grove

oh gotcha, well ever since then i call her mom

split linden

cute

barren grove

:3

my friend peak and i have been chatting about what we're gonna use to rewrite our bot GitBot in terms of library, either discord.js core http-only, discord-interactions, or just raw api calls like the current version does

current code is a mess and needs a rewrite

normal kiln
split linden

i do not

normal kiln

thats from where its started lol

couple years ago

split linden

we had so many name memes of varying levels of shitness, i forget those regularly

normal kiln

day 1 of when we got unique username/displayname whatever thats called

when they removed the #1234

barren grove

and no, i dont know why //@ts-ignore is used

normal kiln

you should rename your paths 😛

barren grove

i wanna do a complete rewrite

normal kiln

instead of like ../../../structures/ApplicationCommandOptions'; it can be #structure/index.js

barren grove

very true

i mean look at this nonsense we made manually

warm saffron

All bow down before "@/" : "src/*"

normal kiln

😄

atomic monolith
amber spindle

nah @/ better

frozen quiver

either @/ or ~/

amber spindle

lets use an emoji instead 🏘️/

frozen quiver

geniune question, why even have label builder

is it just to pull out labels since theyre on basically every component into its own builder?

nvm didnt realize addComponents was also deprecated, was about to say it seemed like reinventing the wheel

jagged quarry
warm saffron

"../../../../../": "src/*"

tulip crag

suddenly reading my user directory

warm saffron
jagged quarry
jagged quarry

anyone use a monorepo manager that also supports python?

tulip crag

turborepo is agnostic no?

ah it might not

jagged quarry

ye it doesn't seem to

nx has a plugin for python but it seems kinda sus

tulip crag

I hate to tell you

but

jagged quarry

:pepehands:

elfin ore

Based Bazel

strong valve

I remember hearing about bazel a long time ago, why isn't it more popular?

maiden raft
jagged quarry
maiden raft

Caching and such works

strong valve

oh

I guess they're missing complexity in the tuple on their site then

tropic cedar

hl.

jagged quarry

god that's stupid lol

let me just turn this non-js project into a js project

strong valve

wait it just clicked for me that there's a package.json in a python package lmao

elfin ore

It's cursed but this was especially true in game data mining projects

strong valve

what language

elfin ore

Last one I've seen was python tooling to extract game assets data from No Rest for the Wicked, it used javascript to format the extracted data into a website-like report

strong valve

ok but that's still js

elfin ore

I see

By the way, I highly recommend No Rest for the Wicked. The campaign is fully coop, and the art style feels so good. It's still in early access tho, there's an upcoming patch that will add classes (MMO like, holy trinity) into the game (so you maybe want to wait for it if you plan to play it somewhat soon)

Souls like isometric (what diablo 4 should have been)

strong valve

dang only 4 players and early access

elfin ore

I've been data mining and messing up with the unhollowed il2cpp reconstructed data to remove the player limit

I've decided to halt that project for now until they release the classes patch

strong valve

I wonder why they even have a player limit

elfin ore

Balancing

You can stagger mobs with attacks (true hack and slash)

strong valve

oh

just add more mobs mmLol

elfin ore

They do, the more players there are the more mobs spawn

strong valve

then scale it up to 8 :<

elfin ore

Not enough space in the map/areas :c

strong valve

I have 5-6 in my gaming group and it's a struggle to find games

we started playing core keeper recently cuz it goes up to like 12 or something

oh no it goes up to 8

elfin ore

I gave up trying to find games that allow more than 5 players in the campaign

I think the last one was Enshrouded

I have high hopes for RuneScape Dragonwilds but it's still very green (EA)

strong valve

was enshrouded not good? it has decent reviews

elfin ore

It was fun, some counter points are that the combat and class system was very lacking and it's not possible to play with friends around the globe (if you have more than 150ms latency with the host it's unplayable cause rollbacks, due to the custom engine and networking solution they use)

The exploration part was amazing

Think of it as a better valheim

strong valve

so valheim but the good and bad points are reversed

elfin ore

Oh, if you are interested in many players co-op campaign you should totally give Abiotic Factor a try. It's probably one of the best games in the past years. I have played it with a friend who was hosting it from Japan and there was no lag

strong valve

playable up to 6 players looks promising

elfin ore

Still fun though

elfin ore
strong valve

I just felt like the crafting and building experience in valheim was not fun compared to other crafters

elfin ore
strong valve

yeah the boss fights were cool, but the prep work to get there sucked lol

elfin ore

Yeah, kinda grindy

strong valve

chests were tiny, building the base was awful, materials were far away and difficult to transport

elfin ore

Oh, you have to definitely mod valheim to have a good experience. It lacks many QoL like crafting from chests and so. For example, Enshrouded has that (you have to unlock the chest upgrade)

strong valve

ok yeah we were just playing vanilla game mode as the game designers intended

tawdry tulip

Vanilla all the way

strong valve

and none of the prep stuff was fun

elfin ore
tawdry tulip

You and your instant gratification generation

elfin ore

I can't deny that

strong valve

isn't hardcore also vanilla

tawdry tulip

Back in my day if you wanted to play a game you had to enter the game code into the PC to play.

strong valve

insert disc 2 to play

elfin ore

I think the oldest game I've played was warcraft 3 (because my hardware couldn't run something more modern and fun at that time)

tawdry tulip

Type it all out in BASIC, the run it. If it fails to boot it means you did something wrong then you get a ruler and go line by line over the screen until you find your mistake.

elfin ore
strong valve

but if zelda turned into the valheim experience I think every fan would vomit

why are there no good co-op games like botw or genshin PepeHands

elfin ore

Genshin because the combat?

tawdry tulip
strong valve

I mean just the overall playing experience is fun

elfin ore

I see

tawdry tulip

People build games to show off their ideas and fantasies and people buy into to it to experiance it. If you buy it and go "this game is not for me I want it changed" then its the wrong game for you.

strong valve

I'm just pointing out neither of these modern games is really big on instant gratification, but the gameplay experience is obviously nicer on one than the other

elfin ore
elfin ore
tawdry tulip
strong valve

I think my bar is, if your survival crafter building game feels worse than minecraft, it's a shit crafting and building experience

you gotta at least be better than a children's block game

deft vector

is there a practical way to implement slash command aliases ie /leaderboard -> /lb

normal kiln

i .... dont think you can

unless that changed

storm gust

nope slash command aliases still dont exist

jagged quarry

Just respond to the command with the same thing?

lilac cloak
elfin ore
tawdry tulip

Thats why Nintendo implemented a certification system in the 80s on their games. To stop slop getting to their consoles. Which it has been laxed in all areas recently. Its almost like we are heading for another game market crash.

elfin ore

It may be a necessary thing sadly

compact plover

random question can bots send stickers like

this one?

long girder

this one specifically no

compact plover

like this one?

muted needle

Just like with emojis: the ones it has access to

upbeat gust

meow

chat, i need your verdict.
which cat is the best cat?

orange cat, tuxedo cat, calicos, white cat or black cat?

candid tide

the disrespect of calicos will not stand

upbeat gust

My sincere apologies, let me update.

hey mark, come hang out in voice with us 😄

candid tide

what's the point of a mute and deaf person in vc Thonk

split linden

wait what

candid tide

do you not know what a calico cat is?

split linden

i do not

candid tide

some furry you are

split linden

angery

upbeat gust

Like you are finding that out today

Furji has been a furry since the fandom started...

split linden

lies and deceit

upbeat gust

but which IT professional isn't a furry?

long girder
split linden

ok, so educate me, what does a multi colored cat have to do with deaf and mute?

long girder

mark is deaf and mute? that would explain his book consumption

upbeat gust

at least he isn't blind.

split linden

if my memories aren't betraying me, i think i've heard mark speak before

firT

candid tide

souji making big assumptions here

-# i also meant the discord mute and deaf options, also ignoring when i rebuilt my laptop i forgot to connect my speakers mmLol

split linden

i seee

upbeat gust

I hear you

split linden

anyways, calico cute

upbeat gust

mark doesn''t tho

jagged quarry
indigo verge

what's going on in voice greater than slash dev slash null

jagged quarry

ur mom

indigo verge

-# turns out there's no such thing as serious answers, guess I'll never know

upbeat gust
indigo verge

-# turns out there's no such thing as answers when the one wondering is lazy, guess I'll never know

normal kiln
indigo verge

-# oh hey that's a pretty reasonable answer, thank you

barren grove

wow ppl in vc!!

hi mom @normal kiln

normal kiln

Hiii son 😄

barren grove

bonjour

normal kiln

😮

normal kiln

is JSDoc'ing types fields overkill ?

elfin ore

Is there a reason to use jsdoc in the first place?

copper jacinth

Autocomplete in js?

elfin ore

Why not typescript and specify the types as you need them and couldn't be resolved?

Jsdoc tooling is not as powerful and well maintained as typescript is

normal kiln

jsdocs works for typescript

elfin ore

I thought you mean strictly jsdoc, my bad

normal kiln

nah nah i meant documentation

just... telling what things are

upbeat gust
normal kiln

OMEGAlul

elfin ore

I think typescript has a specific project and parser for their jsdoc-like syntax in comments

lemme look it up

barren grove
elfin ore
barren grove

@jagged quarry 🦶

elfin ore

It should be specifically tailored for typescript

normal kiln

that is basically what im doing

im just asking if i should do it for types fields 😂

elfin ore

I mean... over documenting can be counter productive. I think it's best to document if the field name is not very clear or can be misleading

interface User {
  /** The name of the user */
  name: string;
}

Is kinda ridiculous to document because it's very explicit by the naming

normal kiln

i see

elfin ore

On another topic... the function you specifically shared is a bad idea, it would be best for the code to simply evaluate if user.pet is falsy (avoiding the function call at all) or not and decide on that. Elevating the exception will increase the code complexity

normal kiln

oh if user.pet is falsy it creates one in another function

well no , if user is falsy

pet can be null tho

elfin ore
normal kiln

i have a create pet function

but not a get pet

function createPet(petName: string, petType: availablePetsEnums, config: TAnimal, personality: PetPersonalityEnums): Tpet

Creates a new pet object with default stats and empty inventory.

This function initializes a pet with:

default hunger, happiness, and health from the provided config
initial level and experience
empty skills and skillXP counters
empty inventory for food, toys, and medicine
timestamps for lastFed, lastPlayed, and lastUpdated

@param petName — The name to assign to the pet

@param petType — The type of pet (from availablePetsEnums)```

...i dont know what language to use for showing that correctly , oh well

ionic mason

Hi Guys , I Have A Quesiton Guys....
I Was Asking , In The Screenshot You Guys Can See Bot Name Is In Different Font That Are Only For Nitro User's , But This Bot Use's It As Well , So Guys If You Don't Mind , Can I Know How It's Done And Python Or Js

barren grove

the name styles are planned for bots eventually, but will only be added to d.js once documented

empty lagoon

GbE Thonkang 3rd party AP?

barren grove

yes, good catch

split linden
split linden
empty lagoon

I also cannot get my Era speaker to work and it’s sad. It shows up in Sonos and for AirPlay, but I can’t connect or play anything

barren grove

i have a new Unifi express 7 when the verizon router decides to die

barren grove
normal kiln

its Steve !

barren grove

i got it from a store, five below

normal kiln

noice

normal kiln
earnest flume
barren grove

i don’t think you should

not if it’s gonna stir up political drama

earnest flume

Just the flag

🤷‍♂️

barren grove

why would that be considered a shitpost

earnest flume

Well, the explanation itself can cause political drama

barren grove

that is why i said i don't think you should

earnest flume

Fair

normal kiln

I need to make a new haircut on my head ... im lazy tho... >_>

earnest flume

Or you diy

normal kiln

its been like 16 years that i do my hair

ive been to a hairdresser twice during those 16 years , regretted it ...

neat patrol
normal kiln

in my bathroom

with my clipper , as always

Before it was kitchen scissors , but i upgraded to a hair clipper lol

...hmm...okay

....okay...

...Better ❤️ lol

bitter gust

rate this dookie terrible router

storm gust

i've been using js/ts wrong this entire time

sometimes i think i know what im doing, then i see things like that and i dont understand a single thing

wild loom

Hi guys, so I kinda like, fell off so im asking this question, how do I get the top data object in a mongoose query?

Im not seeing a .at() function and Im unsure whether to treat it as an array

Nevermind, it says the result would be an array of documents

low moss

all my other bot codes dont show ts
(node:23464) DeprecationWarning: The ready event has been renamed to clientReady to distinguish it from the gateway READY event and will only emit under that name in v15. Please use clientReady instead.

barren grove

its very easy to fix that

low moss

--no warnings?

barren grove

the warning

no, you should do what the warning says

low moss
barren grove

its just a warning

low moss

ok ty

barren grove

its also a simple change,

- ready
+ clientReady

tbf

normal kiln

...ok what did i broke...AGAIN

barren grove

...

normal kiln

lmao

low moss

oh sht 🤣

just clocked

i may or may not be stoned asf 🤣

normal kiln

i mean ... ts is related to/with tsconfig afterall...

but nah im not seeking help ... just venting XD

low moss
normal kiln

this config broke something lmao

its my root dir but like ...

dry compass

everyone say happy birthday to chewie @muted needle !! 💖

normal kiln

happy birthday chewie

...woops

barren grove

@muted needle habby birthday!!!!

what improvements do you think i should make to the 2nd one

2nd one is just a sample

normal kiln

i like the second one the way it is actually

barren grove

cuz this is what it will look like with cv2

normal kiln

tho your emoji didnt followed in cv2

i dont know if its just because you forwarded it

barren grove

yeah i just didnt add it yet

just an example

normal kiln

ahhh ok ok i see

muted needle
normal kiln

sweatblob

normal kiln

nobody told me that tsconfigs can be that complicated XD

storm gust
barren grove

maybe use emojis for forks, stars, watching and open issues

barren grove

i have a love / hate relationship with ts

yeah thats a good idea

ill have to add them after the design is finalized since the emojis are on the app, not on a server

normal kiln
barren grove

.

lmao why

normal kiln

1 for each bot ( so that makes 2 )
and one for each package , i have 5 package ...

barren grove

oh makes sense

pulsar quarry

man i have ZERO clue what im doing

im tryna make a thing where my bot's presence doesnt go away if theres a network hiccup or my machine sleeps for a second

is Events.ShardResume the right thing for that?

normal kiln

.... OMEGAlul

not sure ... but i think it would overwrite input file ... /s

storm gust

damn thats why i dont like messing up with tsconfigs

when that happens to me i delete it and create a new one

mukiThumbsup

normal kiln
storm gust damn thats why i dont like messing up with tsconfigs
├── lilly(moderation)/
│   ├── github
│   ├── dist
│   └── src
├── package/@lilly/
│   ├── database/
│   │   ├── dist
│   │   ├── src
│   │   ├── package.json
│   │   ├── tsconfig.json
│   │   └── tsconfig.tsbuildinfo
│   ├── locales/
│   │   ├── dist
│   │   ├── src
│   │   ├── package.json
│   │   ├── tsconfig.json
│   │   └── tsconfig.tsbuildinfo
│   ├── services/
│   │   ├── dist
│   │   ├── src
│   │   ├── package.json
│   │   ├── tsconfig.json
│   │   └── tsconfig.tsbuildinfo
│   ├── structure/
│   │   ├── dist
│   │   ├── src
│   │   ├── package.json
│   │   ├── tsconfig.json
│   │   └── tsconfig.tsbuildinfo
│   └── types/
│       ├── dist
│       ├── src
│       ├── package.json
│       ├── tsconfig.json
│       └── tsconfig.tsbuildinfo
├── petchi(pet)/
│   ├── dist
│   ├── src
│   ├── package.json
│   ├── README.md
│   ├── tsconfig.json
│   ├── tsconfig.tsbuildinfo
│   └── updateCommandsTable.cjs
├── env
├── package-lock.json
├── package.json
└── tsconfig.json

Welcome into my mess lol

*and i didnt send all *

cunning void

That why you have tsconfig base, that you just extend in all other

storm gust

to be honest it looks like a lot at first but you have it well organized

normal kiln

my config at root is just a bunch of references

storm gust

modularity helps a lot

-# until you introduce tsconfigs

normal kiln

It all went well until... THAT

and google is no help

storm gust

i would cry too

probably would comeback to it tomorrow

cunning void

What is the actual seetings of configs? Might help diagnose idk

normal kiln

stupidly enough its only 1 package that errors.. AND THEY ALL HAVE THE SAME CONFIG T_T

normal kiln
storm gust

yesterday i spent like 2 hours figuring out why i was getting so many errors trying to edit componentsv2 until i gave up, i reached a solution while i was trying to sleep and implemented it today and it worked

cunning void
normal kiln

yeah

closed vsc , restarted ts server , unbuild / rebuild ...