#development

1 messages · Page 1679 of 1

earnest phoenix
willow mirage
#

Read the docs

median iris
#

Ty

simple zodiac
#

.setAuthor
.setTitle
.setDescription
.setFooter
.setColor

willow mirage
#

@earnest phoenix this one is more explained

willow mirage
#

spoonfeedddd

simple zodiac
#

im trying to help

willow mirage
#

no, let them read the docs

simple zodiac
#

sorry

earnest phoenix
#

This channel sometimes makes me lose faith in humanity

slender thistle
#

Teach devs independence

#

You can't hold their hands forever because after some point you won't be there anymore

willow mirage
#

now i know why tim looks like a babysister

slender thistle
#

Yup

#

I still genuinely feel bad for Tim to this day

lament rock
#

It would be better to read the actual docs so that people can get acquainted with data types which will dramatically improve logical thinking

earnest phoenix
#

Tim should retire ngl

#

@earnest phoenix 🤒

#

?

#

@earnest phoenix what about my DMs🙄

willow mirage
#
  • Tim retire *

  • everyone come back to Stone age *

simple zodiac
#

who is tim

#

ceo of discord?

#

or

willow mirage
#

no

simple zodiac
#

oh

#

who

willow mirage
#

he live here as a Stackoverflow guy

simple zodiac
#

oh

lament rock
#

notable member

earnest phoenix
#

Tim is the walking stack overflow

simple zodiac
#

SirTimme?

willow mirage
#

LMAO

simple zodiac
#

like the user?

#

im confused lol

earnest phoenix
#

Literally "Tim"

simple zodiac
#

which one

#

#___

slender thistle
#

this -> @quartz kindle

simple zodiac
#

oh ok

lament rock
#

nice way to avoid notification

willow mirage
#

damm

#

u just ping him

simple zodiac
#

edited

slender thistle
#

I edited the mention in so that I don't annoy him 😛

lament rock
#

edited messages with new mentions don't notify mentioned

simple zodiac
#

yeah @willow mirage

median iris
#

Tysm cat

#

again'

simple zodiac
#

it doesnt actually notify when u edit

median iris
#

you helped me a lot

willow mirage
#

oooh

#

@median iris ??

simple zodiac
#

oh jesus its 330 am goodbye

willow mirage
#

what I have done bro

median iris
#

i spent 2 hours for it

#

tysm,

earnest phoenix
slender wagon
#

local or cloud mongodb?

willow mirage
#

lmao, 2h for breaking a line?

lament rock
#

buy now

willow mirage
slender wagon
lament rock
#

@earnest phoenix btw, what lib did you make to receive lib dev role

earnest phoenix
willow mirage
#

lua?

lament rock
#

Oh. Poggers

earnest phoenix
#

Lua is pain

willow mirage
#

damm

lament rock
#

batch lib when

willow mirage
#

@earnest phoenix ig you can make roblox games :D

earnest phoenix
#

spongerino Why doesn't lua have classes

woeful pike
#

top.gg doesn't have a prolog lib if anyone is interested in making one uhuh

lament rock
#

lua indexes start at 1. lua is weird

earnest phoenix
#

What is prolog

earnest phoenix
willow mirage
#

xD ik

slender thistle
earnest phoenix
#

wtf

lament rock
#

Oh my god

tardy hornet
#
                 case "bal":
                  case 'balance':
    
                      const opponent = message.mentions.users.first()
                      var cdmoney =  await db.fetch(`cdmoney_${message.member.id}`)
                      var money =  await db.fetch(`money_${message.member.id}`)

               
                  
                      const balanc2e = new Discord.MessageEmbed()
                      .setDescription("\\💸You have " + `\`${money.toLocaleString() || 0}\`` +"$ on you" + "\n\\💳 And " + `\`${cdmoney.toLocaleString() || 0}\`` +"$ in your credit card" )
                      .setColor("BLUE")
                    
                    if(!opponent) return message.channel.send(`${message.author} \n${balanc2e}`)

                    var cdmoney69 =  await db.fetch(`cdmoney_${opponent.id}`)
                    var money69 =  await db.fetch(`money_${opponent.id}`)
                      const balanc2e69 = new Discord.MessageEmbed()
                      .setDescription(`\\💸${opponent} has \`${money69.toLocaleString() || 0}\` $ on him \n\\💳 And \`${cdmoney69.toLocaleString() || 0}\` $ in his credit card`)
                      .setColor("BLUE")
                      if(opponent) return message.channel.send(balanc2e69)
                      
                      break;

when someone who has null money it gives an error 'toLocaleString' of null

earnest phoenix
#

Just check for nullability

willow mirage
#

I learned lua once and I stoped. It is weird that arrays start at 1 and more thigns

pastel fern
#

i have made a music bot and uploaded in top.gg

willow mirage
#

@pastel fern cool

earnest phoenix
#

(value || 0).toLocaleString()

willow mirage
#

you guys know the new ES2021?

median iris
#

Sorry but

earnest phoenix
#

Of course I know it, I'm one of the contributors to ES

willow mirage
#

@earnest phoenix damm

earnest phoenix
#

ESNext is pogging

willow mirage
earnest phoenix
#

@earnest phoenix
I am getting error on track while typing

const { thumbnail } = track;
#

Any solutions

#

But what's the error

median iris
#

To get started, join a voice channel and !play a song. You can use song names, video links.1
Commands
Full list of commands listed here
Support
Join our support serverif you are having trouble or have any questions.```
earnest phoenix
#

Error on T

#

what

median iris
#

bot is sending like this

earnest phoenix
#

Umm red mark on T

#

Click on it for details

median iris
#

i need to now how to give gap in embed

tardy hornet
#

how can i add it?

willow mirage
earnest phoenix
#

Literally add what I said

median iris
#

\n .addField('Support', '[Join our support server]("My server link") if you are having trouble or have any questions.', true)

#

like this ?

willow mirage
#

oh f

median iris
#

inside ?

willow mirage
#

wait

#

no

median iris
#

ok

willow mirage
#

show all of ur code?

earnest phoenix
#

Are you trying to make blank fields

median iris
#

ok

#

wait

#
      .setTitle("")
      .setColor("BLUE")
      .setDescription("Invictus is best bot for playing music in your servers . it supports youtube , soundcloud more coming soon !    \n   \n  To get started, join a voice channel and `!play` a song. You can use song names, video links.1")
      .addField('Commands', 'Full list of commands listed [here](https://www.instagram.com/ruthless.dzns/?hl=en)', true) 
      .addField('Support', '[Join our support server](serverlink) if you are having trouble or have any questions.', true)
      .setFooter("")```
#

see

willow mirage
#

@earnest phoenix i dunno why there are still ppl who install my lib

earnest phoenix
#

@earnest phoenix

#

Click on the red circles for details

earnest phoenix
#

It's not defined

#

Track is not defined

median iris
#

but

#

wait i send ss

earnest phoenix
#

Then define track

#

track only

#

Not Track

median iris
#

uff

#

wauit

willow mirage
#

?

median iris
#

wrong one

earnest phoenix
median iris
#

see

earnest phoenix
#

5% brain cells lost so far

willow mirage
#

yeah?

earnest phoenix
#

'track' is not defined

#

Huh

#

Then define it

willow mirage
#

lmao typo

median iris
#

i need support field down

willow mirage
#

@median iris do the same thing bro

median iris
#

and it appears in left

#

but idk how

#

coz it says error'

earnest phoenix
#

This guy is confused as hell

median iris
#

yes

#

im confused rn

willow mirage
#

@median iris then disable the inline

median iris
#

how

#

:?

#

:/

willow mirage
#

.addField("name", "value", Boolean: inline)

median iris
#

:)

earnest phoenix
#

.addField('name', 'value', inline?)

willow mirage
#

.addField("Something", "Bruh", false)

earnest phoenix
#

what the fuck

Module not found: Can't resolve 'fs' in '/home/runner/Blog/pages'
Could not find files for /index in .next/build-manifest.json
ModuleNotFoundError: Module not found: Error: Can't resolve 'fs' in '/home/runner/Blog/pages'
#

fs is a builtin module

#

how can nextjs not find that

#

Next.js scuffed moment

median iris
#

not fixed

#

:(

lament rock
#

pug & templating > react

earnest phoenix
#

Ads mmLol

median iris
#
      .addField('Support', '[Join our support server](serverlinks) if you are having trouble or have any questions.',true)```
#

pls did that in this

#

im confused rn

earnest phoenix
#

You're enabling inline on both of them

median iris
#

then

#

i need to

#

write false there

#

?

earnest phoenix
#

true -> false

median iris
#

ok

#

i suck

#

:(

#

IT WORKS

#

GG

earnest phoenix
earnest phoenix
#

Repl allows that?

median iris
#

Tysm

#

this server is great

#

Last thing

#

i need a code

earnest phoenix
median iris
#

like every bot does

#

join then message

earnest phoenix
#

¯\_(ツ)_/¯

warped beacon
#

can some one help me???

#

just wait

#

I want to definition of message event in ready event

earnest phoenix
#

What

warped beacon
#

if u understand answer me if not don’t answer

earnest phoenix
#

What you said doesn't make any sense

warped beacon
#

sh**

#

i can’t english so yep

slender thistle
#

Try to break your point down into simpler words

warped beacon
#

i don’t know how to explain that ._.

earnest phoenix
#

So you want to get a message object in the ready event...?

warped beacon
#

yep

#

djs

#

i am not command handler

earnest phoenix
#

You first have to get the channel the message was sent it

slender thistle
#

You can't get a message from the ready event unless you fetch it from a specific channel under a specific ID

warped beacon
#

I am take every thing from json

#

so i should to use message

earnest phoenix
#

Get the channel the message was sent in by ID (<Client>.channels.cache.get()) -> fetch the message by ID (<TextChannel>.messages.fetch()), this returns a promise so resolve it

warped beacon
#

namr of the channel not the id._.

#

wait

#

am gonna ask my friend he can arabic ha gonna help me

#

thanks @earnest phoenix @slender thistle @opaque fern

#

ok!!

earnest phoenix
#
TypeError: message.client.manager.get is not a function
#

🙄

#

Have you logged what <Client>.manager even returns

#

Yes

#

And?

#

Wht?

#

What is client.manager

#

May you show us what it logged?

median iris
#

Another thing

#

description: ` Loop is **\`${serverQueue.loop === true ? "enabled" : "disabled"}\`**

#

this is code

#

and i need to remove

#

this

earnest phoenix
#

what

median iris
#

yes

earnest phoenix
#

what

median iris
#

it send message like this - Loop `enabled~

#

enabled

#

like this

earnest phoenix
#

And?

median iris
#

i need to remove

#

that

earnest phoenix
#

Remove what

#

The markdown?

median iris
#

yah

earnest phoenix
#

then remove it lmao

#

Just remove the \` around it

median iris
#

Sorry but tell

#

Ok

earnest phoenix
median iris
#

bot sends like this

#

Loop is ${serverQueue.loop === true ? "enabled" : "disabled"}`

earnest phoenix
#

And?

median iris
#

nothing

warped beacon
#

`Loop is ${serverQueue.loop === true ? "enabled" : "disabled"}`

#

Use this

median iris
#

ok

#

ty

earnest phoenix
#

That didn't change anything

warped beacon
median iris
#

you're lit

#

it did

#

can i get 1 code

#

pls

earnest phoenix
#

I told you to remove the \` not ` KEKW

median iris
#

im at learning stage

#

that's why

warped beacon
#

bruuuuuhhhhhh

median iris
#

sorry

#

but pls tell the code to auto deafen bot

slender thistle
#

Why the === true specifically?

marble juniper
earnest phoenix
#

Please consider learning basic JS and reading the documentation

marble juniper
#

that === true is uneccesary

warped beacon
marble juniper
warped beacon
#

why

marble juniper
#

don't spoon feed

warped beacon
#

ok!!!

median iris
#

tHANKS MAN

marble juniper
#

no spoonfeeding

warped beacon
#

-_-

marble juniper
#

that will just hurt thier programming evolution

#

lol

warped beacon
#

bruuhhhhh

median iris
#

are you giving me pls

earnest phoenix
#

Learn basic JS -> https://www.codecademy.com/learn/javascript

Read the documentation -> https://discord.js.org/#/docs/main/stable

@median iris

median iris
marble juniper
#

you learn from doing not copy pasting code

median iris
#

ok ill learn

marble juniper
#

if you just wanna copy paste code you might as well just use botghost at that point

earnest phoenix
#

Don't mention that forbidden thing

marble juniper
#

lol

slender thistle
#

yada yada

median iris
#

Ty all

marble juniper
#

just use assembly x64

#

thats easier than javascript

#

totally

earnest phoenix
#

Just straight up program in bytecode wdym

marble juniper
#

just code straight in binary you mean

slender thistle
#

WASM ftw

marble juniper
#

C for the win

#

C++? ditch it and go back to C

earnest phoenix
#

Just tell the computer what to do, have a little conversation with it

marble juniper
#

speak into ur microphone

slender thistle
#

Fucking speak in radio wave frequencies

marble juniper
#

tell it what you want

warped beacon
#

What is the best lib to programm a discord bot??

marble juniper
#

make your tooth blue and communicate with ur computer using ur blue tooth

slender thistle
#

Any programming language you're efficient with

earnest phoenix
#

Depends on what programming language you're using

marble juniper
#

erwin will say its detritus but its not

warped beacon
marble juniper
#

lol

slender thistle
#

Same goes for libraries

marble juniper
#

yes

warped beacon
#

i think am gonna learn erly.js or eris.js

slender thistle
#

It's all preferences

marble juniper
#

there is no best lib

earnest phoenix
#

JavaScript -> Detritus
Python -> discord.py
Rust -> Serenity

#

Just goes on

marble juniper
#

the best lib is the one that works best for you

#

lol

warped beacon
#

thanks every one

marble juniper
#

just pick what you want

warped beacon
#

hhhh

marble juniper
#

we don't have to decide

#

you decide

earnest phoenix
#

eris.js KEKW

marble juniper
#

just pick what you want

earnest phoenix
#

Its eris

marble juniper
#

its just eris

#

not eris.js

#

lol

#

nO

earnest phoenix
#

urmom.js is really pogging

warped beacon
#

hhhhh

marble juniper
#

wanna know my lib

warped beacon
#

what

marble juniper
#

its called
discord.js-light-commando

earnest phoenix
#

wtf

marble juniper
#

its a fork of discord.js-commando

#

which is a command framework

#

as they say

#

basically commando is the command handler for you

#

with some extra features it provides that normal discord.js hasn't

#

lol

#

I made a fork of it that makes it use discord.js-light instead

earnest phoenix
#

Discord-akairo > discord.js-commando

marble juniper
#

for lower memory usage

#

lol

marble juniper
earnest phoenix
#

It's kinda nice, but a little scuffed KEKW

cinder patio
#

All command handler libs suck

earnest phoenix
#

Same with discord libs, just make ur own mmLol

cinder patio
#

lolno

earnest phoenix
#

But tbh, yea command handler libs do suck

warped beacon
median iris
#

GG

#

Now i got the reaction one

marble juniper
#

lol

earnest phoenix
#

I don't

marble juniper
#

there is no guide just

#

docs

#

lol

warped beacon
#

The same thing with eris

earnest phoenix
#

Eris has a guide

warped beacon
#

No

earnest phoenix
#

KEKW What do you mean

warped beacon
#

??

#

@earnest phoenix

#

If u are speaking with me so yep

earnest phoenix
#

The guide and examples are located at the repo not the website

slender thistle
#

What in the absolutely degenerative unknown to God fuck

warped beacon
slender thistle
#

95% of the time assume it's your fault and not the library's for not working

warped beacon
#

??

#

Yrp

#

Yep**

slender thistle
#

Pretty much

earnest phoenix
#

KEKW Wait, did this guy change the lib he was using just because he thought the lib was not working and he was having a simple issue?

marble juniper
#

dumb

#

really stupid

slender thistle
#

Because it's pointless

#

and won't fix the actual issue

earnest phoenix
#

Absolute pepega

marble juniper
warped beacon
#

Hhhhh

marble juniper
#

smol brain

slender thistle
#

Work on solving the issue instead of finding workarounds

earnest phoenix
#

-1head

warped beacon
#

I will use the lid that gonna help ma with my bit

marble juniper
#

good programmers are often just good at problem solving lol

warped beacon
#

I will not stop with one lib

warped beacon
#

Bot*

earnest phoenix
#

Changing libs won't help you resolve your issues

marble juniper
#

yes

#

you know at this point do whatever you want
you will realise its dumb sooner or later

#

lol

median iris
#

Please solve this issue

earnest phoenix
#

KEKW Is this guy gonna change libs when he encounters a syntax error?

slender thistle
#

Hey I wanna do this
Don't do it it will bite you in the ass someday

finds themself in a bad situation
Oh no, who could have predicted this!

median iris
#
    message.client.queue.delete(message.guild.id);
    serverQueue.songs = [];
    message.react("⏸")
    }
  },
};```
slender thistle
#

Smartass

marble juniper
median iris
#

this is for reaction

earnest phoenix
#

Get out

median iris
#

i coded it

#

but

#

bot not reacting to other cmds

earnest phoenix
#

"But" moments before disaster

warped beacon
median iris
#

like join , leave

slender thistle
#

Do you think you're doing yourself a favor by doing all this shit

marble juniper
#

im going now

#

this is too dumb for me to handle

warped beacon
median iris
#

?

warped beacon
#

I am using three lib

earnest phoenix
#

This guy is just a tyler like hindsight mentioned

warped beacon
#

In the same project

slender thistle
#

Which libraries are you using

marble juniper
#

cya bye

warped beacon
#

Eris
Djs
Early

boreal iron
slender thistle
#

Are you stupid, retarded, autistic, or just have an attention span of a squirrel on drugs

earnest phoenix
#

@warped beacon Life is not that easy mate, its not like every error or problem you encounter will be resolved by changing libs or doing stupid shit like this

slender thistle
#

At this point I'm not throwing insults. I'm genuinely asking whether you have mental disorders that lead to this happening.

earnest phoenix
#

I swear, this channel makes me lose faith in humanity

warped beacon
slender thistle
#

Congrats you already did

warped beacon
#

Hhhh

#

I am not done

earnest phoenix
#

Your bot is disappointed in you

#

Poor bot

warped beacon
#

-_-

slender thistle
#

Volt, bots don't have feelings

earnest phoenix
#

I feel bad for your bot

warped beacon
#

I am not understanding

slender thistle
#

Otherwise he'd already get cussed out to all unrecognizable hell

warped beacon
#

But my bot name is feedings

#

So

slender thistle
#

Don't tempt me to go into psychology and philosophy

earnest phoenix
#

If Luca existed irl, he would slap this guy to another existence

slender thistle
#

🤣

slender thistle
#

So anyway

#

What's the actual issue

#

I kinda just appeared here when the shittalking started and moved along

warped beacon
#

😬 😬

slender thistle
#

Well if you're not gonna bother explaining the issue then I can't help those who are not willing to help themselves

warped beacon
#

Ahhh

earnest phoenix
#

Well I think they can't explain because they're not that good at speaking english (They're arabic), but you can use a translator at least

slender thistle
#

Oh right

boreal iron
#

Switching to java probably fixes the issue

earnest phoenix
#

Automatically resolve errors

boreal iron
#

I meant adding a 4th lib of course

slender thistle
#

LMFAOOOOOOOOOO

median iris
#

Bro

#

pls help

#

my bot is sending message late

earnest phoenix
#

ping

boreal iron
#

And what do you think people in here can do about it without any further infos?

earnest phoenix
#

lol

slender thistle
#

Bot is apparently just like its owner, responds late.

crimson vapor
#

LOL

earnest phoenix
#

also like discord management

slender thistle
#

nah that's inept organization

#

this is just delay in response

#

You can't mix them up

earnest phoenix
#

yeah true though

#

their discord server is messed up though

slender thistle
#

Full, proper recreation. Admirable.

earnest phoenix
#

oh

#

btw which language do you code in

#

or rather which one do you like to code in

slender thistle
#

Python usually, unless I feel like torturing my poor lazy brain with C#

earnest phoenix
#

oh lmao

#

i code in python only

#

tried java

#

but

#

the syntax just

#

...

slender thistle
#

🤣

#

It's not for everyone

earnest phoenix
#

...

#

i just like cleaner syntax

#

hey

#

how do i chech how many servers my bot is in and stuff

split cipher
earnest phoenix
#

?

#

is there like a link

split cipher
#

That's the code for showing how many servers your bot is in

earnest phoenix
#

so what do i have to type

#

type is excatly how i have to

split cipher
#

"console.log(client.guilds.cache.size)" in your ready event

earnest phoenix
#

ok

#

so can i just copy and paste this

#

"console.log(client.guilds.cache.size)"

split cipher
#

Yes, without the "

earnest phoenix
#

ok

#

then do i press run or what

split cipher
#

Yes

earnest phoenix
#

do i put it in the shell

split cipher
#

Yes, paste it in your ready event block

earnest phoenix
#

bruh learn basic javascript

#

ok

#

or read the discord.js docs

#

thats all it saud

#

@split cipher

split cipher
#

Put it in your
"client.on('ready', () => {

// put code here

})

#

That's the ready event

earnest phoenix
#

?

split cipher
#

Hard to explain, you should read the discord js doc xp

#

The error is unrelated to this because the errors says it cannot read the index.is file

split cipher
#

My phone autocorrected it, couldnt be bothered editing the message

umbral zealot
# earnest phoenix

You renamed the index.js to "main.js" and didn't update the package.json to reflect that change - that's your problem.

sacred juniper
#

Hello

#

Who knows change link names

#

I want to do click button for a link

#

How can i do

#

This is a command for my question but i can not do taht correctly @wary orbit

oblique pivot
#

Hello

sacred juniper
#

Hi

wary orbit
#

sad

wary orbit
#

well if u can deal with the border and the size i cn help orelse i hv to help u with that lo

sacred juniper
#

Umm ok

wary orbit
#

k

#

wait

#

no

#

wrong

#

lol

#

or was it correct idk

#

lemme check

#

r u using html

sacred juniper
#

Umm i will try

#

Nope

willow mirage
#

only with embeds ^^^

sacred juniper
#

I dont use

#

So i asked that

wary orbit
#

ok

#

so u use html right?

sacred juniper
wary orbit
#

then i cant help u sorry

sacred juniper
#

what should i do if i used

wary orbit
#

u wud do

#

<a href="https://discord.com/oauth2/authorize?client_id=819883229565812757&permissions=523328&scope=bot"<button type="button" class="btn btn-lg btn-primary" disabled>Add Bot</button>

#

lemme show u how that wud be

#

btw the link

#

it shud be ur link

#

to ur bot or whatevrr

earnest phoenix
#

Hello everyone, it is definitely the most asked question that I am definitely asking here. Nevertheless, I put it up, how is that done with the vote. I have a global chat bot that communicates via several servers. And would like to use it in the chat to always show who is voting. Who has what in stock? My bot is written in Python admin

pale vessel
wary orbit
#

thats a bit specific pal

#

so basically u wanna keep track of how many votes a user has

#

indeed

vale garden
#

late response, but tks

sacred juniper
#

How can i do click button for a link with this command

pale vessel
#

Extra late

wary orbit
#

hey pal use html. its simple

vale garden
#

but this server is all the way at the bottom for me

wary orbit
#

i made this in less than 5 min - see how simple it is.

vale garden
#

and im in 100 servers

wary orbit
#

html is what u gotta use

sacred juniper
#

@vale garden i liked your profile ;)

vale garden
#

so ofc i saw the ping quitee late

vale garden
#

lmao

wary orbit
#

Me: You like my logo
Everyone: No

#

also me: 😿

thin echo
#

How do I add a rich presence on python

green kestrel
#

whats the api endpoint to publish a news article in an announcements channel?

earnest phoenix
#

hey i wanna try this

green kestrel
#

you know, the one thats undocumented but people use in bots anyway

#

😄

earnest phoenix
#

hi SQU1DD

#

oh

#

...

nocturne dagger
#

If I have the string: Welcome {user.name} to the server.

and I want to replace {user.name} with the variable member how would I do that?

cinder patio
#

what lang?

nocturne dagger
#

javascript

cinder patio
#

use .replace

#

Or, is the string provided by a user, or what? What's the use case

nocturne dagger
#

so like

wmsg = dash.settings.welcomeMessage

wmsg.replace('{user.name}', member)

#

Its a dashbaord input.

earnest phoenix
#

that should work

cinder patio
#

yeah, depending on what member is

earnest phoenix
#

just make sure wmsg is a string

nocturne dagger
#

Yep.

#

Thank worked thanks! 🙂

oblique ice
#

Hello guys! Is there anyway to make what's app bot without getting banned...?

cinder patio
#

Not sure what you mean

earnest phoenix
#

whatsapp doesnt have a free api

#

and if you're talking about copyrighted names you'll only be declined from dbl
discord doesnt give two shits

mental willow
#

sa

earnest phoenix
#

what are other fields i can add? like i have the name pfp and date, how do you get the past usernames that person had or other things

dusky sundial
#

Pretty sure Discord doesn't have a way to check previous names, you'd have to store them yourself

earnest phoenix
#

that makes sense

#

what are other fields you can have?

dusky sundial
earnest phoenix
#

ty

oblique flax
#

tell me a vps for my bot

#

24/7

pale vessel
dusky sundial
pale vessel
oblique flax
#

Whit's is the best?

dusky sundial
#

It's up to you, they all have their pros and cons

#

Just look through them and decide which one you like the best

oblique flax
#

all vps are the same good/

#

?

dusky sundial
#

Some have cheap prices, some have good uptime, some have good specs. Again, they all have ups and downs

oblique flax
#

I WANT ONLY MY BOT TO BE ONLINE FOREVER WHIT'S I SELECT?

#

AND ADD MY FILES THERE

dusky sundial
#

Mate, just pick the one you like

#

If you only care about having it online 24/7, go for the cheapest one ig

oblique flax
#

OK

verbal spindle
#

(for web page i mean)

oblique flax
#

Where i add my bot in hostmyservers?

verbal spindle
#

updated some stuff

#

and now i got my domain addad to it too

oblique flax
#

Where i add my bot in hostmyservers?

verbal spindle
#

thanks

oblique flax
#

is vps ssd nvme?

dusky sundial
#

ssd nvme is just the storage type

oblique flax
dusky sundial
#

Where what?

oblique flax
#

in hostmyservers where i add my bot

dusky sundial
#

Well, you probably need to use FTP to transfer your bot's files to the VPS, and then SSH into it to start the script

cinder patio
#

You should understand that by buying a VPS you are basically renting a computer

#

which is always online

#

So you don't just add your bot to some site

pale vessel
#

let me introduce you to this thing called git

slender wagon
#
.then(response => {
        fetch('https://discordapp.com/api/users/@me', {
          method: 'GET',
            headers: {
                authorization: `${response.token_type} ${response.access_token}`
            },
        })
        .then(res2 =>res2.json())
        .then(userResponse => {
          console.log(userResponse)
            userResponse.tag = `${userResponse.username}#${userResponse.discriminator}`;
            userResponse.avatarURL = userResponse.avatar ? `https://cdn.discordapp.com/avatars/${userResponse.id}/${userResponse.avatar}.png?` : null;
            userhit(userResponse)
            req.session.user = userResponse;
        });
        fetch('https://discordapp.com/api/users/@me/guilds', {
          method: 'GET',
            headers: {
                authorization: `${response.token_type} ${response.access_token}`
            },
        })
        .then(res2 => res2.json())
        .then(gResponse => {
          req.session.guilds = gResponse;
          res.redirect('/manage');
        });
      });
});

i am working on a dashboard and for some reason userResponse comes out as undefined

#

wait nope it comes out as ```js
{ message: '401: Unauthorized', code: 0 }

cinder patio
#

console log response and see if it's returning actual data and not an error

earnest phoenix
cinder patio
#

response.token_type is already Bearer

earnest phoenix
#

oh ok

slender thistle
#

HEaders are case insenstivie, right?

umbral zealot
#

HOLY FUCK GUYS

cinder patio
#

I think so

umbral zealot
#

LOOK AT THAT. EXPANDING CODE

earnest phoenix
#

nice

cinder patio
#

ew Lua

umbral zealot
#

Ignore the fact that it's Lua you derp, it's EXPANDABLE FILE UPLOADS

#

finally. Discord did it.

cinder patio
#

yeah it's great

earnest phoenix
cinder patio
#

yeah finally time to ditch the bin sites

solemn latch
slender thistle
#

owo what's this expands your file

umbral zealot
#

That is pretty literally the most useful programming-related update Discord has done in its entire history

#

(client-wise, not api-wise)

solemn latch
#

do you just upload the file?

slender thistle
#

YEah

solemn latch
#

pog

onyx jay
#

i never realized how much i wanted this new feature until i just saw it

cinder patio
#

Hm

#

can't they do the same for regular code blocks tho

umbral zealot
#

This is so great

solemn latch
#

so people can now just dump their file here? 👀

#

doesnt really help with the average repl user

umbral zealot
#

It definitely helps the average person that wants help with a large file. no more paste.gg

onyx jay
#

i hope they add it for regular code blocks as well, would be so useful

umbral zealot
#

I mean if you end up dropping a large codeblock it just shows that window for a file.

#

So you just use this when dropping large code

#

¯_(ツ)_/¯

onyx jay
#

well in theory they could still have the same 2000 character limit but just show the same window as above (limit it to some number of lines)

solemn latch
#

thats cool 😄

#

inb4 no one uses it anyway

umbral zealot
#

Anyone attempting to paste a large codeblock will be using this, whether they want to or not.

#

This literally is a "preview for message.txt attachment" and it's automatically applied so... yeah we're good.

solemn latch
#

oh

#

ohhhhh

#

heck yes

#

discord did it right

#

not that im here much recently anyway

proven lantern
#

why would user ids be coming in with this format <@ID> instead of like this <@!ID>

solemn latch
#

I thought the ! in <@!> is deprecated.
it can still be sent sometimes, but it was just for nicknames or something?

dusky sundial
#

Yeah, I think <@!> is if they have a nickname in the server

proven lantern
#

i thought <@ID> was for roles

#

is there a changelog somewhere?

dusky sundial
#

Roles is <@&ID> iirc

umbral zealot
#

yeah

#

<#id> for channels, <@&id> for roles, <@id> or <@!id> for users.

solemn latch
#

was ! deprecated though? or am i making that up

proven lantern
slender thistle
umbral zealot
#

Is it though? I've seen it really recently

solemn latch
#

its still sent, but its not reliably used.

slender thistle
#

Yeah, it's kinda unstable

earnest phoenix
#

@marble juniper bro can you help me
my music cammand is not working
idk why

#

Is there any way to refresh auth.Since if a user had got perms removed but is still logged in.The perms does not get updated sadly :c

marble juniper
#

maybe give code first

#

lol

marble juniper
earnest phoenix
marble juniper
#

without it I can't help

#

I said give code

marble juniper
#

probably is though

#

also spam

#

lol

earnest phoenix
#

no

quartz saddle
#

jesus

marble juniper
#

thats ur commands

earnest phoenix
#

its all commands

quartz saddle
#

thats a lot of files

earnest phoenix
#

yeah

marble juniper
#

what about ur index file

earnest phoenix
#

jeez people these days are late for new features

earnest phoenix
marble juniper
#

also why do you have the same code almost everywhere

#

lol

earnest phoenix
#

Bro can you help me on here

#

@marble juniper ??????

marble juniper
#

no

#

im going again ask someone else

#

this is obnoxious for me

earnest phoenix
#

@marble juniper Bro iam sending the error

marble juniper
#

I said im not helping you

nocturne dagger
#

If I have

client.on('guildMemberAdd', member) 
``` event how would I assign a role to the member?

member.addrole did not work.
earnest phoenix
marble juniper
#

leave me alone please thanks

#

thats

marble juniper
#

because you are ratelimited

#

by youtube

earnest phoenix
#

ok

marble juniper
#

lol

#

you have to wait

nocturne dagger
#

Is that a v12 thing?

marble juniper
#

to use the api again

marble juniper
#

youtube

tired panther
marble juniper
#

oh u mean something else

#

sry

nocturne dagger
#

Ah, yea I am trying to move a v11 bot into v12.

marble juniper
#

lol

#

read this

#

for upgrading from v11 to v12

nocturne dagger
nocturne dagger
vivid fulcrum
#

what do you mean by refresh auth

#

refresh the token?

#

also seems like you have a major security exploit

#

always check if the user is in the guild in the backend

earnest phoenix
#

what would i use for the bot? i want it to send something different when the bot who's code is this is the member mentioned

#

if ctx.member == discord.Bot?

#

though that would mean all bots

#

or would that work?

dusk nymph
latent heron
slender thistle
#

ctx.author not member

earnest phoenix
slender thistle
latent heron
#

or

slender thistle
#

Probably works without .id

latent heron
#

if ctx.author.me ?

dusk nymph
slender thistle
#

No

latent heron
#

isn't me a passed variable for specifically this

#

to check if it's the bot

slender thistle
latent heron
#

aww yeah

#

cache based shit

earnest phoenix
slender thistle
#

Correct

dusk nymph
earnest phoenix
#

thx

#

ig bc its not a cog?

slender thistle
#

Right

#

Not cog

marble juniper
earnest phoenix
#

it worked

verbal vault
#

so what do i need to code a bot? or to make a bot?

earnest phoenix
#

what language are you planing to use?

verbal vault
#

English

quartz saddle
#

thats the best answer anyone has ever sent here

earnest phoenix
#

i mean like coding languages; python, js, c, c++

verbal vault
#

oh

#

how does that work?

quartz saddle
#

I would recommend js or python for beginners

earnest phoenix
#

mhm

verbal vault
#

i am new to coding so try to be ez on me

verbal vault
quartz saddle
#

Short for Javascript

verbal vault
#

oh

quartz saddle
#

Its a type of coding language

earnest phoenix
#

i think there might be more instruction videos on python but idk

verbal vault
#

wait just to make this is 100% legal right?

earnest phoenix
#

yes

quartz kindle
#

lmao

#

why wouldnt it be

solemn latch
#

being a developer is legal, yes ^_^

verbal vault
#

idk

quartz saddle
#

I don't know what would be illegal about a coding language

dusky sundial
quartz kindle
#

what if programming became a crime

earnest phoenix
#

nooo

solemn latch
#

pandasad rip all internet, and computers

quartz saddle
#

Then the world would go back to monke times

solemn latch
#

I wonder how long the internet would last tbh

dusky sundial
#

Get on the deep web to download Visual Studio Code

quartz kindle
#

programmers become labeled as hackers a persecuted like witches

verbal vault
#

deep web?

quartz kindle
#

welcome to the new dark ages

dusky sundial
verbal vault
#

ik

#

not new to that ik whats on there

solemn latch
#

i bet things would still be around for 6 months, then everything becomes hackable ^_^

verbal vault
#

SSN will be all over the place

earnest phoenix
vivid fulcrum
#

somebody synced a RAT to our servur.. a-a- remote access tool

verbal vault
#

so what do i need to make a bot

dusky sundial
solemn latch
#

learn to program, i think one of the pins has some sources.

earnest phoenix
#

pick a language first

verbal vault
#

that

earnest phoenix
#

ok

solemn latch
#

that is a good programing lanuage

vivid fulcrum
#

do you have any prior experience in computer science

#

or anything related

solemn latch
#

index.that

#

^_^

quartz saddle
#

@verbal vault If you want to start coding a Discord bot, I would recommend getting a basic understanding of coding and how everything works, and choosing a language you want to use before you start. Use some online classes or videos to learn instead of just asking "how do i code a discord bot" in a Discord server.

vivid fulcrum
#

definitely not videos

#

you'll just end up copypasting and trying to figure out what they typed out

solemn latch
#

i like videos for concepts, not actual coding.
like learning how x works, great for video. learning how to make y? bad for videos.

quartz saddle
#

If you are still in school, maybe take some sort of Computer Tech or coding class there if they have them

earnest phoenix
quartz kindle
#

use videos that dont have any copy-pastable code

#

purely explanation videos

solemn latch
#

^

vivid fulcrum
#

fuck off

quartz saddle
solemn latch
#

dont post ads 😠

earnest phoenix
vivid fulcrum
#

also also

earnest phoenix
#

i was never here

verbal vault
#

wait how much will class cost me?

quartz saddle
#

If it's at a public school or something, usually $0

earnest phoenix
tame mantle
#

hello lads

earnest phoenix
#

hello

vivid fulcrum
#

programming requires good logical problem solving skills, if you can't find yourself doing that it's very suggested you don't get into programming in the first place because it's not meant for you

tame mantle
#

does anyone have an idea how you can properly pass an object from a ShardingManager file to a shard file

verbal vault
vivid fulcrum
#

it's a skill like any other though, you can practice and do brain exercises

quartz saddle
verbal vault
#

so what age should i get into it?

quartz saddle
#

Age doesnt matter that much

dusky sundial
#

Think of it like learning anything else, like playing the guitar.

earnest phoenix
verbal vault
#

oh like that

dusky sundial
#

You can't go into a guitar store and say "hey! teach me to play through the fire and flames!"

#

It's better to start with the basics and work your way towards the goal

verbal vault
#

well i will take classes for it

#

then try to make a bot

earnest phoenix
umbral zealot
#

IF you're free all day and nothign to do, following programming classes online on your own is super easy

verbal vault
#

what bot did u make?

umbral zealot
#

I made a tag bot - pretty boring

quartz saddle
#

I made a fairly small multi-purpose bot

verbal vault
#

i mean like this

earnest phoenix
#

im coding a lemon bot 🤣 it can do some cool stuff

umbral zealot
quartz saddle
umbral zealot
#

It means I verified my bot early 😛

verbal vault
#

so what bots was that?

quartz saddle
#

wow cool

umbral zealot
#

Like I said it was a lame tags bot but it's used in some servers so...

#

¯_(ツ)_/¯

verbal vault
#

oh

#

i will look at the bot later

#

well thx ppl

earnest phoenix
umbral zealot
#

y'all need to figure out how to use top.gg profiles kekface

verbal vault
#

lol

#

been in discord for some time now 2019 to now and still dont know how to use that

umbral zealot
#

I'm not gonna start advertising my things, if you're curious, figure it out.

quartz saddle
#

aha

#

i have found it

earnest phoenix
#

tell me

quartz saddle
#

no

#

figure it out

earnest phoenix
#

ok

feral aspen
#

What is role.hoist?

#

I didn't understand it.

slender thistle
#

Hoist status of a role

quartz saddle
#

role.hoist is whether or not the role has the "Display role members seperately from online members" setting enabled

slender thistle
#

Aka whether it's sepa-

feral aspen
#

Ah!

#

Thanks!

quartz saddle
#

no problem

brave tendon
#

You guys use watch2gether? (asking for my bot)

quartz saddle
#

no

tame mantle
#

does anyone have an idea how you can properly pass an object from a ShardingManager file to a shard file

brave tendon
#

Can anybody tell me why my bot does not appear in the users list? The bot is online and it's status is online aswell.. also the bot doesn't respond to any commands.. this happend after I changed permissions in the oauth invite link

dusky sundial
brave tendon
#

Yes it has the permission

dusky sundial
#

Then it should appear in the member list as well, unless you somehow kicked it from the server

brave tendon
#

Wouldn't the bot reappear in the user list after I invited it again?

sinful thistle
#

Yeah, it would.

dusky sundial
#

Only if it has perms to view the channel you're looking at

brave tendon
#

Well.. for test I had the oauth permission on Administrator.. now I changed the perms kicked the bot and reinvited with new permissions but the bot does not appear in the user list

sinful thistle
#

Hm.

tame mantle
sinful thistle
#

I think its just you.

brave tendon
#

these are the permissions

sinful thistle
#

Do you have grant on?

#

whatever that things called

dusky sundial
sinful thistle
#

Try checking the server permissions

brave tendon
#

Haha

dusky sundial
#

Then the bot most likely doesn't have perms to view the old channel for whatever reason :)

sinful thistle
#

Probably was just the sever channel permissions you put or smth.

tame mantle
#

is it possible to get the application's publickey through a djs bot client

brave tendon
#

Okay 😄 Thanks for helping ^^

sinful thistle
tame mantle
#

oh okay

toxic jolt
#

guys pls help

#

im using discord.js v11

vivid fulcrum
#

update to v12

toxic jolt
#

how

#

omg!

#

okay!

vivid fulcrum
#

uninstall djs, reinstall and migrate your code

earnest phoenix
#

under section upgrading to v12

brave tendon
dusky sundial
toxic jolt
#

omggg