#development

1 messages Β· Page 57 of 1

wheat mesa
#

That's... not how that works

earnest phoenix
#

Not just bots, Codes, Templates, Websites, Server templates, Everything someone may need.

#

suit yourself

wheat mesa
#

There is a ton of free resources out there for that already

lament rock
#

Those types of things already exist

wheat mesa
#

It's difficult to just start selling things like that, especially intangible goods

#

People are hesitant to even buy things from big companies relating to that type of stuff, much less an unknown seller with no reputation

#

Even if I were interested in starting a business, I wouldn't have the time right now. School combined with college applications has consumed most of my time

lament rock
#

The only way you'd win is if your pricing was absurdly cheap and you somehow appeal to a wider audience

wheat mesa
#

As we speak I'm writing an english essay due in 3 hours

earnest phoenix
#

Alright

wheat mesa
#

Just saying that it's not as easy as you think it might be to start making money on the internet lol

earnest phoenix
wheat mesa
#

With what budget

#

Advertising isn't cheap

earnest phoenix
#

never said paid advertising

wheat mesa
#

"free" advertising doesn't really exist

#

Sorry, I'm not trying to burst your bubble or anything, just trying to be realistic lol

earnest phoenix
#

I have lots of groups on facebook purely for advertising for free, Discord server's to advertise for free (don't know if they are against TOS or not), Like I said it's not that hard to start everyone just thinks they can't but you never know unless you try.

wheat mesa
#

facebook and discord... not really a very targeted audience I see

earnest phoenix
#

Nope just an audience until we can get more

wheat mesa
#

the problem with that is that online "advertising" by posting things has very very very low turnaround

earnest phoenix
#

we have a 28% chance of surviving

wheat mesa
#

Don't know where you got that number from

#

Businesses require investments, time, and work

#

Very few people ever made it without putting at least a lot of one or more of those things into it

earnest phoenix
#

then lets put a lot of work into it

#

it won't hurt to try, I have servers

wheat mesa
#

I think you're being a little unrealistic in your expectations

earnest phoenix
#

I got nothing but free time right now

#

So whenever we are free

#

we can put work into it

wheat mesa
#

Do you have a large amount of money to invest into it?

#

Gotta spend money to make money

#

Hence the main issue arises

earnest phoenix
#

That is the main issue correct, How about we start off small and work our way up to be bigger later on

#

freelancing something to earn money then we can start

wheat mesa
#

You don't even know what your business is yet

earnest phoenix
#

true

#

so lets figure it out

#

and I'm being realistic

#

you are too

wheat mesa
#

Now if this were a paid job I would have to consider it, but "splitting the profits" is unappealing in the sense that time isn't free

earnest phoenix
#

alright it

#

's fine I understand

wheat mesa
#

I would much rather go interview for a job at a fast food place, since they pay guaranteed money, yknow?

earnest phoenix
#

hey Move to #general Something we are doing has to be against the rules (for instance talking in development

wheat mesa
#

This channel is always off topic

#

dw about it

earnest phoenix
#

oih

#

oh*

wheat mesa
#

nobody else is here

earnest phoenix
#

If you do that

#

do chick-fil-a

#

they will pay for your college with a scolarship

wheat mesa
#

Just saying that it's unrealistic to expect people to work with you with the idea that they'll eventually get paid

earnest phoenix
#

another tip, Try and take your college core classes in Highschool. It will save you time in your life to do better things

wheat mesa
#

I'm graduating this year, I've done several dual credit and ap courses

earnest phoenix
#

and fun fact, I may not be in high school or college YET. But I do understand more than most students

wheat mesa
#

Still gotta apply to colleges and get accepted though πŸ˜…

earnest phoenix
#

if your going for developing etc

#

try Southern Cresent

wheat mesa
#

I'm already set on where I'm applying to

earnest phoenix
#

it's a tech advanced I think

#

Where you going?

wheat mesa
#

Applying to UT Austin and UT Dallas

earnest phoenix
#

Austin what state?

wheat mesa
#

Was going to apply to dartmouth but they're a liberal arts school mostly, so their comp sci program isn't as advanced as the other 2 schools on my list

#

Texas

earnest phoenix
#

nice

#

Best of luck

wheat mesa
#

thanks

#

still gotta write 4 college essays before november 1st or I'm screwed

earnest phoenix
#

so do any of the staff actually moderate these channels?

wheat mesa
#

Yes

earnest phoenix
#

better get to writing

earnest phoenix
wheat mesa
#

Planning to write them all this weekend if possible tbh

#

Because nobody else is here

#

mods mostly moderate the other channels because the people that go off-topic in #development are usually regulars

earnest phoenix
#

I was gonna change my Nick to Nobody else just to be like I'm Here

#

I might develop ton's of bots soon, if I did a bot premium

#

should it be subscription bases

#

or lifetime

wheat mesa
#

With bot development it is almost always a bad idea to have a lifetime option

earnest phoenix
#

so Subscription Based

wheat mesa
#

If your bot gets shut down forever, you'll have angry users asking for refunds

earnest phoenix
#

with a 7 day free trial so people will forget they put card info in for a auto recurring subscription

#

no wonder netflix was smart with the free trial

sharp geyser
#

You gotta publicly state this though

wheat mesa
#

If you want to make money, don't make bots

#

Just saying

sharp geyser
#

Facts

#

OH RIGHT WAFFLE

earnest phoenix
sharp geyser
#

I have a webcam now I can try my idea out

wheat mesa
#

πŸ‘€

sharp geyser
#

Ima finally start an onlyfans /s (This is not nsfw as not everyone does that on onlyfans so mods please)

wheat mesa
#

ayo

earnest phoenix
#

Me: about to start making friend with people in top.gg
Everyone: Leaves me on pending

earnest phoenix
#

Yeah so

wheat mesa
#

I was gonna work on my physics sim tonight but now I'm procrastinating on writing my english essay

earnest phoenix
#

Waffle left me on pending

sharp geyser
#

thats what waffle does

wheat mesa
#

I only add people I know irl C:

sharp geyser
#

dont take it to heart

sharp geyser
wheat mesa
#

And/or people I have known for a long time on discord

earnest phoenix
#

damn You don't know me?

sharp geyser
#

no

earnest phoenix
#

I'll see you in college /jk

sharp geyser
#

your name reminds me of that shit text editor github made

wheat mesa
#

you said you weren't in high school yet, you won't see me in college because I'll have graduated when you get there πŸ˜‰

radiant kraken
earnest phoenix
#

If I hit college then I definitely need to be checked out for my brain

radiant kraken
#

oh pog

earnest phoenix
#

I could skip grades

sharp geyser
#

I feel special

#

waffle added me first few days of us meeting

wheat mesa
#

not true!

#

I had seen you around top.gg for a while

sharp geyser
#

:p

earnest phoenix
#

I've done it four grades now (Because I started late)

wheat mesa
#

wdym

sharp geyser
#

This guy saying he skipped 4 grades?

earnest phoenix
#

Yeah

#

4th grade to 8th

wheat mesa
#

lol no

earnest phoenix
#

and I'm 14

sharp geyser
#

🧒

earnest phoenix
#

I started 4 years late

sharp geyser
#

Dont mean shit

earnest phoenix
#

I'm smart get over it

wheat mesa
#

thought u meant u were in 8th grade and you're 9

sharp geyser
#

Show us your report card /s

earnest phoenix
sharp geyser
#

Eh

earnest phoenix
sharp geyser
#

Unless your Sheldon

earnest phoenix
#

I throw it out the bus window

wheat mesa
#

littering

earnest phoenix
#

what do you think I picked

sharp geyser
#

You just admitted to doing a federal crime

wheat mesa
#

just get better grades 4head

sharp geyser
#

mfs out here getting hundred dollar fines for that

earnest phoenix
#

I throw it in the boys restroom trashcan

sharp geyser
#

Also imagine being in 8th grade and getting shit grades

wheat mesa
#

some dude sped around me in a school zone and INSTANTLY got pulled over

#

god that felt so good

sharp geyser
#

mfs skipped 4 grades just to fail

earnest phoenix
#

EXCUSE YOU

sharp geyser
#

I have nearly all A's

#

and i've been busting my ass for it

earnest phoenix
#

Now I needa get my grades up

wheat mesa
#

hey misty I need help

sharp geyser
#

Misty isn't here right now, leave a message after the beep

#

Beeep πŸ”΄

wheat mesa
#

oh wait

#

I can use l'hopital on this

sharp geyser
#

Im not even kidding we havent even gotten past functions

#

πŸ’€

wheat mesa
#

we're doing antiderivatives and slopefields

earnest phoenix
#

I'm only failing science

sharp geyser
#

We haven't hit that yet

earnest phoenix
#

BECAUSE SHE TAKES EVERY FUCKING DAY SHE CAN OFF

wheat mesa
#

I hit the biggest W in physics today

#

100 on the multiple choice section

#

74 on the FRQ though πŸ˜”

#

ran out of time

sharp geyser
#

Ima be nice and not dox my teacher's names

#

one sec

earnest phoenix
earnest phoenix
sharp geyser
#

All those are A's for the most part

earnest phoenix
#

What about Precalulus?

wheat mesa
sharp geyser
#

Precal is a B to B+

wheat mesa
#

I maxed precal

#

99%

#

😎

earnest phoenix
#

EXACTLY IN MY FAMILY YOUR A DISGRACE

sharp geyser
#

πŸ€·β€β™€οΈ

earnest phoenix
#

now you see why I don't give mother report card

sharp geyser
#

Not my fault

#

Just do better

#

it honestly isn't hard to be an all A student

#

the hardest part is managing your time

earnest phoenix
#

I need an A+

#

not an A

#

Anything below a 99

#

is bad

wheat mesa
# wheat mesa

I have a 100% in english and a 93% in econ, but they're college courses so they're in a diff gradebook

earnest phoenix
#

how about that in terms for you

wheat mesa
#

I somehow managed to get an 88 in calc BC

earnest phoenix
wheat mesa
#

I bounced back from a 63 on a test

#

that was actually clutch

sharp geyser
#

I only got a 2.93 in pre cal cause I missed one standard

earnest phoenix
#

Misty

#

do you know java?

sharp geyser
#

I mixed up function names

wheat mesa
#

hehehehehehe

#

I'm sure he knows java!

#

(sorta)

sharp geyser
#

The functions they had listed are so hard to differentiate

#

Rational and Inverse

#

πŸ˜”

#

Both look the same to me

wheat mesa
#

wdym

#

rational is 1/x, what's inverse

sharp geyser
#

Inverse is some weird shit

earnest phoenix
#

Opposite

#

Is inverse

wheat mesa
#

I know what inverse means, I haven't heard of a parent function called inverse though

#

What's the equation for it @sharp geyser

earnest phoenix
sharp geyser
#

πŸ€”

#

Shut it 8th grader who "skipped" 4 grades

wheat mesa
earnest phoenix
#

I’m stupid

wheat mesa
#

misty

earnest phoenix
#

Wait

sharp geyser
#

Im trying to find it

earnest phoenix
#

I know

wheat mesa
#

:C

earnest phoenix
#

write the function y as a function of x i.e. y = f(x) and then solve for x as a function of y.

wheat mesa
#

find it faster

sharp geyser
#

I dont remember it off the top of my head

earnest phoenix
#

Damnit

#

I’m thinking

wheat mesa
#

find the derivative of 7x^5 + 2x^4 - 9x^3 + 15x^2 + 6x - 35

sharp geyser
#

Let me just get my fucking notes

earnest phoenix
#

Whom are you asking @wheat mesa

#

Because I’m on the shutter

wheat mesa
#

hint: it's 35x^4 + 8x^3 - 27x^2 + 30x + 6

#

I wish my tests were that easy πŸ˜”

earnest phoenix
#

You fucked my mind

sharp geyser
#

@wheat mesa ok so found it

wheat mesa
#

eh it's pretty easy once you've done derivatives by inspection

sharp geyser
#

It is y = a/x or y = a/x^n

wheat mesa
#

that's the same as rational

sharp geyser
#

no

wheat mesa
#

yes

sharp geyser
#

Rational is y = n(x) / d (x)

wheat mesa
#

Not exclusively

sharp geyser
#

Then I guess I am learning smtth new

wheat mesa
#

(x + 2) / (x-3)(x+1) is also a rational function

sharp geyser
#

Cayuse my teacher never told me that

#

Should I call into work tmrw

#

or saturday

wheat mesa
#

your teacher bein stupid and giving yall the wrong notes or my entire math career is a lie

sharp geyser
#

or giving us incomplete notes

earnest phoenix
#

If I record something

sharp geyser
#

This is only he first lesson

wheat mesa
#

I don't know what the point of differentiating between rational and inverse is, they're the same thing

earnest phoenix
#

Can someone make it a meme?

sharp geyser
#

The second lesson seems to go more indepth

wheat mesa
#

maybe your teacher wants you to explicitly identify when there's no x on top?

#

I don't see what the point is though

sharp geyser
#

I think so yea

#

This is literally the notes

wheat mesa
#

see how they make the same image

#

the asymptotes are just shifted

#

the exception being 1/x^n where n is even, then they would both point up

#

that's weird, my school never did that

sharp geyser
#

Yea well

#

your school also seemed 20x better than mine so

wheat mesa
#

My precal teacher was really really nice and good

#

Part of the reason I absolutely aced that class

sharp geyser
#

Did your teacher actually teach you?

earnest phoenix
#

Make this a meme pls

wheat mesa
#

lots

sharp geyser
#

Yea

#

Ours just shoves videos in our face

#

😎

wheat mesa
#

I don't understand

#

bros washing the sink with dish soap

sharp geyser
#

Title " Dumbass washes sink instead of hands "

wheat mesa
#

my AP physics class is tryna get the teacher fired or some shit 😭

#

there's only 7 of us left

#

the other 13 dropped

earnest phoenix
sharp geyser
earnest phoenix
#

Make it a meme somehow

wheat mesa
#

we had 20 to begin with

earnest phoenix
#

Or how about this

wheat mesa
#

13 dropped the class

sharp geyser
#

Before I was added there was like 5-6

earnest phoenix
#

The fbi are watching us

wheat mesa
#

you have a smaller school though

sharp geyser
#

No

#

well yea kinda

wheat mesa
#

how many students

#

in ur school

#

and/or your graduating class

sharp geyser
#

I dont remember the exact amount

wheat mesa
#

estimate

sharp geyser
#

but there is like 2-3x more freshman than senior class

#

in senior class we have like at least 200-300

wheat mesa
#

lol

#

that's nothing

sharp geyser
#

maybe even less

wheat mesa
#

my high school only has juniors and seniors

sharp geyser
#

our freshman make up like 40% of the school

wheat mesa
#

my graduating class is 1245

#

The entire school is more than 2500

#

Just 2 grade levels

sharp geyser
#

We have a fuck tton of freshman

#

it got to the point we ran out of schoo laptops to give out

wheat mesa
#

there's so many sweatlords in my school

sharp geyser
#

We still struggling to give em out as well

wheat mesa
#

our valedictorian GPA was like 4.74 or some shit

#

something ridiculous

sharp geyser
#

What the fuck

wheat mesa
#

for reference mine is currently 4.375

#

And I'm #113 out of 1245 students

sharp geyser
#

Wtf

#

Mines a 2.5

wheat mesa
#

this is weighted gpa

sharp geyser
#

I didn't try at all previous years

wheat mesa
#

unweighted I think mine is like 3.6 or something

earnest phoenix
#

Meme it or dream it

sharp geyser
#

Now im actually starting to try

sharp geyser
#

No one cares

wheat mesa
earnest phoenix
#

Idk

#

Make it a meme

#

Add something random that makes it a meme

#

Or dumbass said slip and slide from hell

#

Who’s slipping in the sink?

sharp geyser
#

A meme is meant to be funny

#

you just simply dont make the cut

wheat mesa
#

slippin jjijmmy

earnest phoenix
#

I have better days

wheat mesa
#

how the hell did I get 2 extra j's and 1 extra i from that

sharp geyser
#

thats 3 js

#

you put 3js in that

earnest phoenix
#

I found a bookmark

#

I made when I was 6

#

it's labeled

#

Hacks

#

should I download it

#

just to see what it is?

wheat mesa
#

yooooo he made the bookmark last year

#

crazy

sharp geyser
#

Lmao

earnest phoenix
#

I'm 14

wheat mesa
#

close enough

earnest phoenix
#

I didn't skip shit I just never failed

wheat mesa
#

0.999999 repeating is 1

#

fun fact

earnest phoenix
#

see never tell people real info

#

because Waffle

#

I know where your gonna go to college

wheat mesa
#

and?

earnest phoenix
#

that's more than enough info a stranger should know

sharp geyser
#

I know this guys place of living

wheat mesa
#

I'm careful with what I display about my life on the internet

sharp geyser
#

tf does knowing his college mean

earnest phoenix
#

Can someone tell me what the hell I found in my bookmarks?

wheat mesa
#

People tell children to never tell anybody anything online because children don't have the same judgement as someone older would have

earnest phoenix
#

I don't know if it's real

wheat mesa
#

I would not be posting stuff like that here

earnest phoenix
#

or if I'm tripping

wheat mesa
#

Links to sketchy downloads

sharp geyser
#

its 0 bytes

earnest phoenix
#

it is?

#

So im tripping

sharp geyser
#

Also I'd delete that

wheat mesa
#

probably deleted

#

and yeah I would too

sharp geyser
#

or yknow keep it there anyway

wheat mesa
#

it's a big world

#

that's like half the population of the city I live in

earnest phoenix
#

I think I'm tripping

wheat mesa
#

Just at one school

earnest phoenix
#

it said 0 byets

#

bytes*

#

This is what I see

#

I don't own an account

wheat mesa
#

Yeah delete that message

earnest phoenix
#

or anything

wheat mesa
#

That is highly against ToS

earnest phoenix
#

got it

wheat mesa
#

That breaks like 438 clauses of discord's ToS

earnest phoenix
#

Awesome so I'm banned

#

nice to know

wheat mesa
#

nobody reported you'

#

just don't post it

earnest phoenix
#

thank god

sharp geyser
earnest phoenix
#

I'm actually kind of interested How young me got this

sharp geyser
#

it was probably just some bash script that shut your pc down

#

dont trip

earnest phoenix
#

No this has TONS of shit

#

I'm going through it

#

Antivirus hasn't triggered

#

all files unaccseible

#

maybe it was a prank someone sent me and I thought it was real

sharp geyser
#

@wheat mesa Is this going to be a bae 2.0?

wheat mesa
#

yeah

sharp geyser
wheat mesa
#

except bae did regedit, I don't think this guy knows what regedit is

sharp geyser
#

Lol

#

he doesnt tneed to know

#

Im sure those "viruses" do

wheat mesa
#

me when

sharp geyser
#

its B

earnest phoenix
sharp geyser
#

100%

earnest phoenix
#

Yeah I know

sharp geyser
#

he googled it

wheat mesa
#

he looked it up

earnest phoenix
#

No

wheat mesa
#

nobody calls it registry editor

#

other than google

earnest phoenix
#

I changed my TTL

sharp geyser
#

only those old fucks on google does

earnest phoenix
sharp geyser
#

regedit

#

as he just said

#

What does regedit do atom

earnest phoenix
#

I changed my TTL to 65 if anyone knows why then Your not as stupid as your PFP

wheat mesa
#

I think changing regedit is a bad idea in the first place unless you truly understand what you're doing

earnest phoenix
wheat mesa
#

There's a reason that it asks you like 8 times to confirm

sharp geyser
wheat mesa
earnest phoenix
#

I've only ever done my TTL

sharp geyser
#

It actually works as well mmLol

wheat mesa
#

you should do it

#

totally won't corrupt your OS and make you lose all of your files

sharp geyser
#

Nope

earnest phoenix
#

We will see Misty after one windows reinstall

wheat mesa
#

the bae incident of 2022

sharp geyser
#

if you think reinstalling windows will help gl

#

bae tried the same shit and fucked his stuff up even more

earnest phoenix
#

It's helped me

#

wipe the drive, Fresh install

sharp geyser
#

Didn't bae also try and change his storage stuff waffle

#

I know he fucked an HDD

wheat mesa
#

it's because his HDD ate shit

earnest phoenix
#

I am my local town IT

wheat mesa
#

you can be fine if you have another HDD and a windows stick or something

earnest phoenix
#

I've handled OS corruption

sharp geyser
#

I remember when I fucked the partitions on a USB

wheat mesa
#

and by that you mean you've reinstalled windows

sharp geyser
#

I accidentally deleted all of em instead of wiping them

earnest phoenix
#

I've done more than that waffle

wheat mesa
#

there's nothing much more to it than reinstalling windows or telling chkdsk to do its thing (which will ultimately fail, chkdsk is useless as fuck)

sharp geyser
#

What should I use for image recog waffle

#

do you have any ideas?

earnest phoenix
#

I've setup entire networks, Our town has a town wide network purely because since No one can get their ass out their phone. We made a custom alert system that alerts everything in someones house, Alexa, PC, and Phone as long as they are on the wifi.

wheat mesa
#

ML

earnest phoenix
#

It's optional

#

we have 51 user's online atm

sharp geyser
#

No shit waffle

wheat mesa
#

idk, python is pretty good for that

sharp geyser
#

yea I am planning on learning py

wheat mesa
#

if you wanna torture yourself then go ahead and use C++

sharp geyser
#

πŸ€”

earnest phoenix
#

Fuck C++

#

that shits hard

sharp geyser
#

Well don't mind if I do

wheat mesa
#

as for technologies, tensorflow is like the gold standard I believe

wheat mesa
sharp geyser
#

Time to worry about ; errors that don't fucking help at all

#

😎

wheat mesa
sharp geyser
#

isn't segfault a big issue in C++ as well

radiant kraken
wheat mesa
sharp geyser
#

I always see people cry about segfaults

wheat mesa
#

Modern C++ actually avoids segfaults pretty well

earnest phoenix
#
When ``` Will you go to general?
radiant kraken
#

why use smart pointers when you have Rust references iara_sunglasses_cool

wheat mesa
#

true

wheat mesa
#

I would've made my physics sim in rust but C++ just has way more resources out there for learning that sort of thing

sharp geyser
#

Why not just do all the ML stuff in rust

#

shit

wheat mesa
#

ML is like the only time I'll recommend using python because it's genuinely useful to avoid boilerplate

#

Since it's all done for you under the hood pretty much

earnest phoenix
#

anyone know quagmire from family guy?

sharp geyser
#

using rust is a good option

#

Waffle

#

you busy

radiant kraken
wheat mesa
#

slightly

#

almost done with my essay

radiant kraken
#

iara_knife_stab πŸš€

sharp geyser
wheat mesa
#

sure

earnest phoenix
#

How do I know if my HP pen is on?

#

It's from a HP X2 Detachable

#

and their is no button on the end like an eraser

radiant kraken
wheat mesa
#

for kissing

sharp geyser
sharp geyser
#

trying to help him with his sister he's nervous

wheat mesa
#

ayo

#

my sister is 3 bro

#

chill

sharp geyser
#

oh shit

#

kissing her goodnight *

radiant kraken
#

🀨 πŸ“Έ

earnest phoenix
#

"SWEEET HOMEE ALABAMA"

dry imp
#

yes officer

clever bobcat
#

I Just Created Bot Β―_(ツ)_/Β―

rocky hearth
#

I've this git state.
I want to create a new branch called "main", and merge all these changes to that.
How can I do that?

red jolt
#

If I want the little slash command badge to my bot profile I need to reapply my bot via top.gg?

rustic nova
#

top.gg has no correlation with badges appearing on your bot

earnest phoenix
#

This will

  1. Create a new branch called main
  2. Add the changes from the current branch to the newly created branch
boreal iron
dry imp
#

nah it doesnt have to be verified

red jolt
#

And how can I register a command?

earnest phoenix
#

By creating slash commands using the library you use for your bot

boreal iron
#

Well unless you don’t use application commands actively you shouldn’t just register one to get that badge

red jolt
#

My bot has applications.command

boreal iron
#

That will cause the interaction to fail anytime somebody tries to use the command

#

It’s not just about the scope, do you actively use slash commands?
So like handle slash commands if somebody is using them like chat commands?

red jolt
#

My bot only supports and works with slash command.

boreal iron
#

Ok and it’s already verified by discord?

red jolt
#

No. But I saw other bots that doesn’t verified and has the badge.

boreal iron
#

Iirc only verified bots can have it

earnest phoenix
#

It doesn't have to be verified

boreal iron
#

But this could have changed meanwhile

red jolt
#

Not verified

#

But has the badge.

boreal iron
#

Ok then it means you have registered guild commands yet and not global commands

#

*only

red jolt
#

This is my friend bot and he said he just enabled the applications command and got the badge automatically.

boreal iron
#

Yes if the bot has at least one global command

#

Guild commands don’t count here

red jolt
#

Okay thanks for the info.

#

When I enable the code grant to my bot I can't invite it. When I disable it via developer portal the bot works again. Somebody know why is this happening?

earnest phoenix
#

Don't enable code grant if you don't actually use it

#

And if you're asking why, you probably never use code grants. So keep it disabled

red jolt
#

Now instead of authorization app the bot now can be invited with captcha.

#

Ok guess I just leave the code grant alone.

earnest phoenix
#

If your application requires multiple scopes then you may need the full OAuth2 flow to ensure a bot doesn't join before your application is granted a token.

You probably misunderstood what a code grant is and when/for what you should use it.

red jolt
#

Yeah. I am new with this. Sorry.

earnest phoenix
#

If you don't need oauth flow, keep it disabled

red jolt
#

Okay.

#

Oh and I have another problem with a slash command. I applied a new command and deleted the old one but the command still shows in the commands menu.

#

And after I deleted the command it stills working.

boreal iron
#

Tf are those drunk monkeys at discord are doing?

#

Separate user, role, channel select menu options AND another mentionable type (just for users and roles, not channels)?

#

Also tf is the difference between a mentionable user type and type 5?

#

Valid users are always mentionable

#

If type 5 is just the usertag I could also archive that with the text type

earnest phoenix
#

Type 5 only accepts users, they're still mentionable
Type 6 only accepts roles, still mentionable
Type 7 accepts both users and roles, both are still mentionable

#

There's no non-mentionable users, if you're confused about that because that's not what it's trying to say

earnest phoenix
boreal iron
earnest phoenix
#

Mentionables. Things that also actually ping people

boreal iron
#

And still what’s the sense if one type accepts BOTH and another type option just one

#

Useless

earnest phoenix
#

Channel mentions does not ping anybody

boreal iron
#

You think that will mention the target on selection ?

earnest phoenix
#

And channel type is also separate because there are multiple types of channels, which it allows you to narrow down which channels you only want

earnest phoenix
boreal iron
earnest phoenix
boreal iron
#

I read that, but it didn’t make much sense to me

#

I provide the channels as select menu option

#

So I do also filter them already?!

earnest phoenix
#

❓

boreal iron
#

Why do I need that field then?

boreal iron
earnest phoenix
#

Basically, by default the users can choose all types of channels such as categories, text channels, announcement channels, voice channels, etc etc; with that field it gives you the ability to limit users to for example only be able to choose text channels, or only voice channels, or only both

#

So you don't provide the channels all the time manually?

#

Because if you give the, for example, channel IDs of the channels to be displayed in the select menu - it's not really necessary to specify which type is allowed

#

Since you provide them yourself bravemmlol

#

You don't specify what channels are displayed

#

You only specify what channel types are displayed

#

So it's automatically populated with all server channels if not specified and filtered with the channel type(s) provided

#

Yes

boreal iron
earnest phoenix
#

Right then makes more sense

boreal iron
#

Why do I need an user filter

earnest phoenix
#

FakE you don't seem to get this at all

boreal iron
#

I’m sure i have to pass the channels (or IDs) as array which are selectable in the first place

#

Ik like how I read it it’s absolutely nonsense

boreal iron
#

The select menu can only show a few options and can’t really utilize small screens while slash command channel select as command option is been solved way better in the ui

earnest phoenix
#

The fields mentioned are completely separate:

If you want a field that users can only select users, you choose type 5

If you want a field that users can only select roles, you choose type 6

If you want a field that users can choose mentionable things (in Discord's terms this means things that can actually ping people) AKA both users and roles, you choose type 7

If you want a field that users can choose channels (that they can see, permissions apply here), then you choose type 8, if no channel filter is provided then all channels that the user can see with their permission level will be displayed for selection, otherwise only the specified types of channels will be displayed, such as only text channels or only voice channels

boreal iron
#

Ok in completely other words then

#

This feature is redundant as it exists already

#

Command options are providing this already with a better ui especially for smaller screens (imo)

earnest phoenix
#

Uses of slash-commands and select menus aren't the same, you can only choose a single value with slash-commands while select menus allow for multi-selection, and their intuitive uses are different as well

boreal iron
#

So we’re getting something we can use already instead of requested things lots of people are waiting for, not to mention much more modal types, command options types and so on

boreal iron
#

But yes the multi selection is the only advantage here I would agree on

earnest phoenix
#

Their uses are absolutely different, for example consider self-role selections, would you rather use a slash-command to go through the roles and choose one for yourself or a select menu that also allows for multi-selection instead of having to run a slash-command repeatedly?

boreal iron
#

Let’s say scrolling through 66 select menu options is more intuitive and nicer than filtering 66 possible channels by starting to type the name in your opinion?

#

Yes I agree they have different use cases but still we can ALREADY do that even if it’s a little bit limited as command option but we can ALREADY do it

#

But we’re still missing features we can NOT do yet

earnest phoenix
#

Nobody said we can't do it already, I agree that we're still missing some good features rather just things that we can already do, it's Discord afterall

boreal iron
#

It is but I wonder why that is being rolled out now

#

I mean there must be somebody requesting this bullshit

earnest phoenix
#

No worries, before adding new features we'll get inline/in-chat text input

boreal iron
#

Huh what

earnest phoenix
#

Lmao that has been requested since slash-commands were introduced, and it's still not implemented

#

I can totally see discord adding TextInputComponent

#

Before adding new features we can't do so far

earnest phoenix
#

Bascially modals text input

#

But sent within a message

#

Like buttons etc

boreal iron
#

Well I mean at least we have modals on every device

#

Why not adding features to them SINCE WE HAVE THEM ALREADY

#

ffs

#

Discord is so annoying

earnest phoenix
#

Time to work at Discord and fix everything

#

ℒ️

boreal iron
#

It’s like they publish something, then throw out β€œhere you have it, now live with this unfinished piece of shit for the next few years” β€œwe gonna polish tons of other stuff meanwhile nobody actually needs”

earnest phoenix
#

and force you using them*

boreal iron
#

Man… auto correct is killing me today

earnest phoenix
#

That's usually discord as well

boreal iron
#

I swear!

#

The bully will raise on the next level until you finish stuff

earnest phoenix
#

I'll harass you from the Discord terminal by dsc suspend FakE#0037

boreal iron
#

That would result in FakE#1137 being born

earnest phoenix
#

🀨

boreal iron
#

I was about to say being created

#

But i don’t question this auto correct nonsense anymore

#

Ok I’m going to sleep before we run into another discussion

#

You’re really challenging me

earnest phoenix
#

FakE's questionable autocorrect discussion

boreal iron
#

ENJOY YOUR ANDROID OPEN ENVIRONMENT AUTO CORRECT ADVANTAGE

#

While I have to live with iOS auto correct devils and demons

earnest phoenix
rustic nova
#

theres one on github, prefer not to link it KEKW

#

bad_words md

fervent moss
#

i have a package itself which wrks 100%

stable eagle
earnest phoenix
boreal iron
#

That’s colorcism

neon leaf
#

how do I delete a message from a button?

#

nvm im dumb, its interaction.message.delete(), not interaction.delete()

fervent moss
#

Guide is more useful than docs imo

pale vessel
#

because you're an ID10T#6969

#

that was mostly for comedic purposes

fervent moss
fossil bronze
#

Any ideas on how to spread your npm packages?

cinder patio
#

spread?

#

like, get more people to use it?

knotty quartz
#

Hi

#

Is there a way to make the script choose a colour from a list and set that as the embed colour.

Example:

const colour = ['Orange','Purple']

Then using the maths to choose

then

.setcolor(colour)

#

Type thing?

#

Rough code

rustic nova
#

you could probably just use Math.random there and have the max value size of your array, then have math.random choose one index

#

complicated, but look into getting a random element from an array

knotty quartz
rustic nova
#

bunch of stackoverflows for that

knotty quartz
earnest phoenix
#

how to delete a bot from topgg

#

@knotty quartz

rustic nova
#

Use the delete button on the bot page

spark flint
#

I'm doing some dynamic regex because im doing i18n stuff, whats the best way of regex replacing multiple things from a json object

#
for (const option of options) {
  translation.replace(new RegExp(`/{${option}}/`), options[option])
}
return translation```
#

thats what I currently have but i dont know if thats gonna be very efficent

#

also worth noting this has not been tested yet

sudden geyser
#

Can you show an example of what you want the output to be

spark flint
#

ok

#

Successfully DM'd {user} to let them know.

#

Successfully DM'd <@USERID> to let them know.

#

this is my full code for location stuff ```js
const english = require("./languages/english.json")

module.exports = function (string, lang, options) {
switch (lang.toLowerCase()) {
case "english":
let translation = english[string.toUpperCase()]
if (!translation) return Language string not found
else {
for (const option of options) {
translation.replace(new RegExp(/{${option}}/), options[option])
}
return translation
}
}
}```

#

and I would dojs client.i18n("DM_SENT", userConfig?.lang, { user:`<@${user.id}>` })

#

ignore the fact I'm not handling unknown userConfig.lang yet

sudden geyser
#

Maybe you could capture all {...} first then replace each individually

#

The .replace method takes a function for that

spark flint
#

theres many variations of what options could be

#

oh?

sudden geyser
#

An example:

function template(s, opts) {
  return s.replace(/{(\w+?)}/g, (_, name) => {
    // `name` is the text inside the `{}`, such as `user` for `{user}`.
    return opts[name];
  })
}

template("Hello, {user}!", { user: "Klay" }); // "Hello, Klay!"

If you used a regex to match the actual option, that would be much more expensive (since you'd have to loop over each one) and unsafe since the option would be acting as the regex (regex is not that good at being dynamic).

#

@spark flint

spark flint
#

lemme test it rq

#

yep it worked πŸ‘

#

ignore the ` lmao

#

return translation.replace(/{(\w+?)}/g, (_, option) => options[option] ) would work too right

sudden geyser
#

Though, to comment on my personal experience, I think creating functions to translate text is better than inlining variables in strings. For example,

const translations = {
  greet: (user) => `Welcome, ${user}!`,
  mail: (user, count) => {
    const str = `${user}, you've got`

    switch (count) {
      case 0:
        return `${str} no mail.`;

      case 1:
        return `${str} 1 mail.`;

      default:
        return `${str} ${count} mails.`;
    }
  }
}

function tr(key, ...args) {
  return translations[key](...args);
}

console.log(tr("mail", "Klay", 10)) // Klay, you've got 10 mails.
sudden geyser
#

actually yes, pretty sure it works

spark flint
#

yep it worked just tested

lament rock
#

Compiling regular expressions with every function call amandacry

#

your cpu is crying

quartz kindle
#

compiling regular papis with every ophidian call

sterile lantern
#

in an empty 2d array for java, does it look like this? {{}}

lyric mountain
#

no

#

{new Type[size]}

#

u cant use array literals inside arrays

#

tho usually you'd just do new Type[x][y]

sterile lantern
#

wait wdym

#

i was wondering how a completely empty

#

2d array looked

#

like

#

new int[0][0]

lyric mountain
#

yes, that's an empty array

#

called matrix actually, but whatever

sterile lantern
#

if you were to print it as a string

#

what would it print

lyric mountain
#

[[]] if u use Arrays.toString()

sterile lantern
#

right so i tried that and im getting []

#
int[][] arr = new int[0][0];
System.out.println(Arrays.toString(arr));
lyric mountain
#

ah yes, mb

sterile lantern
#

i guess it kinda makes sense

lyric mountain
#

it can't be [[]] because that'd mean it has 1 item

sterile lantern
#

cause itd have

#

yeah

#

1d arrays also return

#

[] right

lyric mountain
#

ye

sterile lantern
#

kk ty

lyric mountain
#

99d would also return []

#

may I ask, why?

sterile lantern
#

cuz theres nothing in the array

lyric mountain
#

nono, why did u ask abt it?

sterile lantern
#

but now it makes sense

wheat mesa
#

wait, new int[0][0] is valid?

#

interesting

#

I wonder if that does an allocation

lyric mountain
#

maybe just for the reference itself

#

but nothing for the actuall array space, since it has no space

wheat mesa
#

yeah

#

java users finding out that 90% of the optimizations java does is at runtime and not during compile time

lyric mountain
#

jit manages to make java run as fast as cpp sometimes

#

well, java is technically cpp if we consider bytecode is jvm's asm

violet echo
#

AMOGUS. β£ β‘Άβ Άβ ²β –β Άβ Άβ’¦β£€β €β €β €
⠀⠀⠀⠀⠀⠀⠀⣰⑏⠀⒀⣀⣀⣀⠀⠀⠙⣷⑀⠀
β €β €β €β €β €β €β’€β‘Ώβ €β£Ύβ£β ‰β ‰β ‰β ‰β£·β €β ˜β£·β €
β €β €β €β €β €β €β£Όβ ‡β €β ˜β »β Ώβ Ώβ Ώβ ›β ‹β €β €β’Ήβ‘‡
β €β €β €β €β €β €β‘Ώβ €β €β €β €β €β €β €β €β €β €β € Ⓒ⑇
β €β €β €β €β €β’Έβ ‡β €β €β €β €β €β €β €β €β €β €β € β ˆβ£‡
β €β €β €β €β €β£Όβ €β €β €β €β €β €β €β €β €β €β €β €β € β£Ώ
β €β €β €β €β’€β‘Ÿβ €β €β €β €β €β €β €β €β €β €β €β € β €β£Ώ
⠀⠀⠀⠀Ⓒ⑇⠀⠀⣴⠖⠛⠛⠛⠳⑆⠀⠀⠀⠀⣿
⒀⑴⠢⠦⣿⠀⠀⠀Ⓕ⑀⠀⠀⠀⠀⑇⠀⠀⠀⠀⣿
Ⓔ⣄⠀⠀⠀⠀⠀⣀⣼⠇⠀⣠⣀⣼⠇⠀⠀⠀⠀⑿
⠀⠙⠛⠛⠛⠛⠛⠋⠀⠀⣾⑁⠀⠀⠀⠀⠀⒀⣠⠇
β €β €β €β €β €β €β €β €β €β €β ˆβ ™β “β Άβ Άβ Άβ ›β ‹β 

wheat mesa
#

java does very basic optimizations at compile time, like constant folding and such

#

it even does inlining at RUNTIME

warm rapids
#

Use bdfd, easy to use and run commands.

wheat mesa
#

Lmfao

#

No

#

That is terrible advice

lyric mountain
#

If someone tells you

#

To slap a bear

#

That's a better advice

long marsh
#

What is the best way to setup a postgres schema that has my own ID related to a user + their discord id ... such that I can search by ID or discord id?

#

The most straight forward but maybe not performant is to have a User table with a secondary field as discordId and performing a query where the discordId = <their id>; however, would it be performant to:

User table with primary key as incrementing ID
UserAccounts table with foreign key as userId + the accont type (discord in this case) + their discord id?

lament rock
long marsh
lament rock
#

postgres is weird in that it doesn't have an skey

#

I'd avoid pkeying auto incrementing values as they may largely be unknown while you're making a statement

long marsh
#

Basically, my problem is this:

  • My users will be able to link the bot with multiple vendors: Twitch, Discord, Slack, etc.

As the user interacts with the bot from a specific service, I want easy access back to their origin account.

lament rock
#

I see

#

What I would do in this case structure wise is have a table which is the accounts table and the account can have an auto incrementing pkey and contain important info about the user such as their platform specific ID's so that you can do easy lookup within the same statement such as with INNER JOIN. You’d then have tables to describe user info for each platform you support and pkey on the platform specific ID and have a property which is the user's linked account ID so that you can reverse search to other platforms and don't need to pkey multiple columns.

#

I feel like doing it this was would leave a lot of bulk out of the was such as if you were just gonna have a table of connections which had no pkey or was pkeyed to multiple columns

wheat mesa
#

I have been suffering trying to lerp between physics states and frames for hours

sharp geyser
#

having fun?

wheat mesa
#

no

#

this is torture

sharp geyser
#

that sucks

lament rock
wheat mesa
#

Yes, that's the easiest part lol

#

I got it to work just now

#

perfectly

lament rock
#

Definitely

#

Always ask IT support for help and you figure out the answer

strong leaf
#

what is this place?

lament rock
#

a channel for software developers

#

this server is for the website top.gg

#

if you don't know what this is or how you got here and none of it interests you, perhaps you should leave

wheat mesa
#

But it works

#

That's the important part

#

Performance doesn't matter if it doesn't work!

lament rock
wheat mesa
#

To be fair the physics I have implemented at the moment are very basic

#

All I have is gravity

#

Which is nearly an O(n^2) algorithm for an N-body simulation, but it's not too bad

lament rock
#

Physics engines like Unity 3D's makes a TON of approximations

wheat mesa
#

To be fair Unity is designed for practicality and not accuracy

#

If everything were 100% accurate, it would be super slow and expensive to run any unity game

lament rock
#

Ofc

wheat mesa
#

My physics engine now does timesteps independently of the framerate

lament rock
#

Unreal isn't too much better

wheat mesa
#

And when framerate is higher than the frequency of the physics updates, it interpolates between frames

#

obviously the less physics updates done, the less accuracy, but you can get pretty damn good results with anything above 30hz

lament rock
#

honestly most games don't use that high of refresh rate servers

#

Unless the game was really competitive

#

I think cs:go has 120hz or 144hz or 240hz

#

maybe less than that

#

I feel like the cpu time would just be insane and a lot of approximations would have to be made to reach that target

wheat mesa
#

To be fair in csgo there are few things that have an actual projectile and aren't just hitscan

#

The players are probably the hardest part of that

lament rock
#

not being hitscan probably comes with its own issues though like difficulties in implementing "favor the shooter"

wheat mesa
#

true

lament rock
#

with network latencies being high, would lead to a very unattractive experience

neon leaf
#

(Javascript)

Lets say I have some numbers; 1895, 569 and 19876

how can I turn them into following?: 895, 569, 876

wheat mesa
#

String(number).substring(1)

#

oh wait

#

569

#

you want 3 digit numbers

neon leaf
#

jup

#

but they can also be 1 digit

lament rock
#

I’m developing my own game world on VRChat and some users which run on the Meta Quest (mobile hardware) have severe networking latency and overall make the entire network stack god awful. My fiancΓ©e is currently in Germany, so her latency to me is high

neon leaf
#

I basically just want to remove all thousands

lament rock
#

might be slice(-2)

wheat mesa
#

^ might work

#

I just spent the last 3 hours pouring my brain into algorithms so I can't think rn

neon leaf
lament rock
#

πŸ‘

neon leaf
#

what, why is it using [1]?

#

ah no, its using the 2 from 52

lament rock
#

run the array element through the Number constructor

#

alternatively, you can coerce the string to a number using the + symbol

+counts[0] / 5

neon leaf
#

ah no, the 0.4 ist he last 3 digits of 10.4

#

how can I round again?

lament rock
#

Math.round

neon leaf
#

thanks

lament rock
#

looks like there's a lot of fun to be had

hasty mulch
slender wagon
#

would it be fair if i didn't let new discord users use my bot

#

to prevent spam

rotund river
#

anyone can help me?

near stratus
rotund river
#

ok i resolve

slender wagon
#

i'll take that as a good suggestion

#

ty

#
await rest.put(Routes.applicationGuildCommands(CLIENT_ID, GUILD_ID), { body: commands }); 

soo i was wondering if application commands for guilds also apply to global commands

#

is that how it works or am i completly wrong

rotund river
#

why

#

/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:250
throw new DiscordjsError(unrecoverableErrorCodeMap[error.code]);
^
Error [DisallowedIntents]: Privileged intent provided is not enabled or whitelisted.
at WebSocketManager.createShards (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:250:15)
at async Client.login (/home/container/node_modules/discord.js/src/client/Client.js:232:7) {
code: 'DisallowedIntents'
}

boreal iron
#

Both are different things

#

Either a command is global, which means it’s available in every guild (and DMs if not disabled) or it’s a guild command, registered in just one or multiple guilds

rotund river
#
  <rejected> Error [DisallowedIntents]: Privileged intent provided is not enabled or whitelisted.
      at WebSocketManager.createShards (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:250:15)
      at async Client.login (/home/container/node_modules/discord.js/src/client/Client.js:232:7) {
    code: 'DisallowedIntents'
  }
}  reason:  Privileged intent provided is not enabled or whitelisted.```
#

const client = new Client({
intents: 32767,
});

boreal iron
#

What djs version?

#

What are those intents as flags?

#

Can’t check the bitflag on mobile

#

Did you already try to disable them and enable them again in the developer portal?

rotund river
boreal iron
#

Try regenerate the token

#

Disable em before

#

And enable em after the regeneration

wheat mesa
#

worked with another token
x

boreal iron
#

y

earnest phoenix
lyric mountain
#

"work with another token" is the best excuse I saw this week

slender wagon
#
for (const file of commandFiles) {
    const command = require(`./commands/${file}`);
    commands.push(command.data.toJSON());
}

so i was following the discord.js guide and i ran into an issue

#

Cannot read properties of undefined (reading 'toJSON')

fervent moss
#

There problem in your ./command/somefile.js

boreal iron
#

Just log command and see which one it is

#

You gotta be consistent with your module structure if you don’t do any error checks

wheat mesa
#
module.exports = {
  data: something // THIS IS MISSING IN ONE OF YOUR FILES
}
knotty quartz
#

Why am I getting unauthorized to deploy and errors with even starting the bot, It was working yesterday with 0 errors. Im sure all my scripts are now V14 too.

I have not even touched the code either.

earnest phoenix
knotty quartz
#

Literally all I am getting

#

Im trying to run it from VSC to see the error

earnest phoenix
#

Exit code 0 isn't even a crash, it means the code ran successfully with no errors

knotty quartz
#

Above the Exit Code: 0

earnest phoenix
#

Are you using Heroku? Because only Heroku says that

#

Or are you using PM2?

knotty quartz
earnest phoenix
#

What does it show you when you do pm2 logs?

knotty quartz
#

You are not authorized to perform this action on this application (On VSC)

#

But I own the folder and everything.

earnest phoenix
#

Apparently not, something is probably owned by something else, what are you running that causes that error to be thrown?

knotty quartz
#
    json: [
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object]
    ]
  },
  rawError: {
    message: 'You are not authorized to perform this action on this application',
    code: 20012
  },
  code: 20012,
  status: 403,
  method: 'PUT',
  url: 'https://discord.com/api/v10/applications/1025846672321941574/commands'
}``` node deploy-commands.js error
earnest phoenix
#

That has nothing to with your computer or where you're hosting it, you're registering global slash-commands to a Discord application (a bot in this case) that you don't have permissions to do so in the first place

#

This is because the bot token you're using is either invalid or it belongs to a different application

knotty quartz
earnest phoenix
#

You can't "check" it, the token you're using belongs to a different application, the Discord Developer Portal won't show you the current token, so you'd have to regenerate a new token

knotty quartz
#

Regenerated just incase πŸ‘, it should work now?

earnest phoenix
#

Then use version control such as Git to keep track of changes and restore it once it's deleted, preferably with GitHub

knotty quartz
#

It's online now πŸ˜„

#

Thank you!!!!!

earnest phoenix
#

You're welcome

knotty quartz
lyric mountain
#

as a note, do not commit your config.json if u plan on having the repo public

#

preferrably don't even use a config.json, use environment variables directly

#

with screen env vars are local to that screen, so u can have a configured environment just for that bot

#

I think pm2 and docker have something similar

knotty quartz
#

If you have suggestions lemme know.

lyric mountain
#

I...I just gave it

knotty quartz
lyric mountain
#

for example, export A_VAR='123' will set A_VAR with value '123'

#

on ur application u can just retrieve it from the environment directly

#

no need for config files or anything

knotty quartz
#

That will be useful

lyric mountain
#

(that for ubuntu, if ur using any other OS make sure to read how to do it)

knotty quartz
#

Can you reply to me because im flipping between 2 servers

neon leaf
#

im making a dashboard rn, I did the auth stuff but how do I fetch the guilds the user is in and check if hes admin and the bot is in it? Isnt in the User thing for some reason

lyric mountain
#

u need to include GUILDS scope to the oauth2 request

neon leaf
#

have it

lyric mountain
#

then just request the data from the endpoint

neon leaf
#

wait a minute, cant I just do that with discordjs?

lyric mountain
#

well, if the bot is in the server, sure

neon leaf
#

ah

lyric mountain
#

since u already have access to who's the owner

#

just make an endpoint in ur bot to retrieve data from it

sterile lantern
#

so i updated my schema and a bunch of old documents are missing one boolean EventPicked:, is there any way to add it onto their doc?

#

mongoose ^

neon leaf
#

why is this returning literally no content to the web ui? Just Headers and shizzle

    res.json(await client.users.fetch(req.headers.id))
})```
ancient nova
#

ok boys

#

why doesn't this work?


    // If autorole is on, let's attempt at applying the role to the new member!
    if (settings.autoRoleEnabled === "true") {
        // Lets now attempt to fetch the role.
        // We start by adding a couple variables we are going to use later.
        let autoRole = settings.autoRole;
        autoRole = autoRole.replace(/<@&(\d+)>/, "$1");
        
        const finalRole = member.guild.roles.cache.get(autoRole)?.id 
                ?? member.guild.roles.cache.find(_role => _role.name.toLowerCase() === autoRole.toLowerCase())?.id;
           
        if (finalRole) await member.roles.add(finalRole).catch((err) => {});
    }
#

the autoRole variable is the mention of the role btw

earnest phoenix
ancient nova
#

it doesn't add the role

#

but i think i might've just been dumb

#

and forgot to give a higher role to my bot during testing

earnest phoenix
#

You're catching and ignoring the error so don't expect it to tell you why

ancient nova
#

i know i know

#

it works now btw

#

so all good ty

quasi depot
#

I am somehow getting this error, even tho the file is there.

neon leaf
#

what permission value is needed for the user to be able to add bots?

wheat mesa
#

Also my lord why do you have 2 src folders 2 module folders and a dist folder

#

Talk about confusing 😭

quasi depot
#

self-hosting

wheat mesa
#

That has nothing to do with the naming schemes and organization your project has

quasi depot
wheat mesa
#

Ok I guess you’ll just ignore exactly what I told you πŸ’€

quasi depot
#

no?

wheat mesa
quasi depot
#

I made a new file in module/src

earnest phoenix
#

Those errors have nothing to do with that other issue, also please update your npm version (run npm i -g npm)

lament rock
#

lmao using tune org dependencies

thorny field
#

where do i create this invite link?

earnest phoenix
thorny field
#

so something like this

#

where do i put the link

lyric mountain
#

discord dashboard has an official calculator

thorny field
#

yeah i got it work

#

did not know i had to make a tos