#development

1 messages · Page 1586 of 1

earnest phoenix
#

do you have to await the connection? I am not sure, I have less experience with py lol

jolly mortar
#

how can i add a short cooldown to a command of mine i have a meme one that takes memes off reddit and users are spamming it making my bot hella slow

earnest phoenix
#

should I give you a easier way ?

midnight blaze
#

is it ok to use auto in the shardmanager or do you guys do it on manually?

feral aspen
modest maple
#

Do you actually load the cog and add it to the bot?

icy skiff
icy skiff
#

those are the loaded cogs

earnest phoenix
# feral aspen Yeah?

in your function,js

class handle{
static async myfucntion(message, author, time, validReactions) {
        time *= 1000;

        for (const reaction of validReactions) await message.react(reaction);

        const filter = (reaction, user) => validReactions.includes(reaction.emoji.name) && user.id === author.id;

        return message
            .awaitReactions(filter, { max: 1, time: time})
            .then(collected => collected.first() && collected.first().emoji.name)
}
}
module.exports = handle;

in your bot.js file
client.functions = require('path of function.js')

client.functions.myfunction() \\\\hello
#

here took a little bit time xD

icy skiff
#

maybe its the port?

earnest phoenix
feral aspen
#

That is way harder.

earnest phoenix
feral aspen
#

Hm, I copied the message link to do it tomorrow as now it is too late for me.

#

Thank you so much though! 😊

icy skiff
#

do i have to open the webhook port or smth

#

i didnt quite understand what the "webhook_path" is tbh so i didnt change it, maybe thats the issue as well

feral aspen
#

Yeah, I see!

#

Thanks, though!

icy skiff
#

maybe thats why its not working

quartz kindle
#

where is your bot hosted?

icy skiff
#

on my pc currently

quartz kindle
#

then thats the problem

#

most routers/modems block webhooks by default unless you port forward

zenith knoll
#
try {
        command.execute(message, args, client);
    } catch (e) {
        console.log(e);
        const commandErrorEmbed = new Discord.MessageEmbed()
            .setTitle("Wait, whats that?")
            .setAuthor('We\'ve encountered an error!')
            .setColor("RED")
            .setThumbnail(visuals.gif["commandError"])
            .setDescription(`We've encountered an error trying to execute the command \`${misc.prefix + command.name}\`.\nAn error log has been generated and attempted to be sent to the developer.`)
            .setFooter(footerText[Math.floor(Math.random() * footerText.length)], visuals.png["footerText"]);
        errLog =
            `**An error has been found!**
            Details:
                Command: ${command.name}
                User: ${message.author.tag} (${message.author.id})
                Server: ${message.guild.name} (${message.guild.id})
                Error Details: ${e.toString()}

                Complete Error:
                ${e}`
        client.users.cache.find(user => user.id == 724066932701134979).send(errLog);
        return message.channel.send(commandErrorEmbed);
    }

Its not catching the error. I did a test to throw new error but it doesnt catch

icy skiff
#

huh

#

so i need to open the port

quartz kindle
#

yes

icy skiff
#

ok ill try that

#

one more thing tho

quartz kindle
#

no

icy skiff
#

k ty

#

ill try opening the port

quartz kindle
#

the url you put in top.gg should be http://YOURIPHERE:PORTHERE/PATHHERE

#

so http://xxx.xxx.xxx.xxx:5000/dblwebhook

earnest phoenix
zenith knoll
#

what

#

i need the user obj

earnest phoenix
#

" client.users.cache.find(user => user.id == 724066932701134979).send(errLog);
return message.channel.send(commandErrorEmbed);""

zenith knoll
#

if i has it it gives a BOOL

#

i need a USER

#

smh

earnest phoenix
zenith knoll
#

its not that the message doesnt send

#

it doesnt even CATRCH the error

quartz kindle
#

it doesnt catch because its async

zenith knoll
#

oh

earnest phoenix
zenith knoll
#

so async catch?

quartz kindle
#

try catch only catches async errors if they are awaited

zenith knoll
#

shot

#

ok

#

so i needa make all my commands sync

quartz kindle
#

or just await it

zenith knoll
#

like await the throw

#

or the try catch

#

@cloud nacelle

cloud nacelle
#

e

quartz kindle
#

you have to await command.execute()

zenith knoll
#

ok

leaden lake
#

how can I do to have the updates I do on my top.gg page sent by my discord bot in a specific channel ?
f.e : When I do a new announcement on my top.gg page, my bot will send a message in a channel and say the new announcement

||I am programming with discord.py||

earnest phoenix
#

...you can't send announcements through top.gg?

leaden lake
#

Yes I can, but I want my bot send the announcement on discord when I post it on top.gg

icy skiff
#

hey Tim

earnest phoenix
#

but you can't

leaden lake
#

oh ! okay... sad

earnest phoenix
#

there's literally no such feature on top.gg afaik

icy skiff
#

still not working :/

quartz kindle
#

did you forward it to your internal ip?

icy skiff
#

do u mind if i DM u

#

im afraid i send something i shouldnt on a public server

#

lel

quartz kindle
#

fine

zenith knoll
quartz kindle
#

show code

quaint wasp
#

uhh...

zenith knoll
# quartz kindle show code
try {
        await command.execute(message, args, client);
    } catch (e) {
        console.log(e);
        const commandErrorEmbed = new Discord.MessageEmbed()
            .setTitle("Wait, whats that?")
            .setAuthor('We\'ve encountered an error!')
            .setColor("RED")
            .setThumbnail(visuals.gif["commandError"])
            .setDescription(`We've encountered an error trying to execute the command \`${misc.prefix + command.name}\`.\nAn error log has been generated and attempted to be sent to the developer.`)
            .setFooter(footerText[Math.floor(Math.random() * footerText.length)], visuals.png["footerText"]);
        errLog =
            `**An error has been found!**
            Details:
                Command: ${command.name}
                User: ${message.author.tag} (${message.author.id})
                Server: ${message.guild.name} (${message.guild.id})
                Error Details: ${e.toString()}

                Complete Error:
                ${e}`
        client.users.cache.get(724066932701134979).send(errLog);
        return message.channel.send(commandErrorEmbed);
}```
quaint wasp
#

How do I send a message to specific channel?

quartz kindle
zenith knoll
#

const Discord = require("discord.js");

module.exports = {
    name: "test",
    description: "help command",
    cooldown: 2,
    aliases: ["links", "server", "support"],
    usage: [],
    async execute(message, args, client) {
        throw new Error('test')
    }
};```
quaint wasp
#

text box.. please...

solemn latch
#

```js
code here

quaint wasp
#

ye

#

good.

zenith knoll
#

The error

#

it doesnt send any message though

zenith knoll
#

so i tried changing console.log() to send a random thing

#

and it still sent error

#

meaning its not catching

quartz kindle
zenith knoll
#

me

quartz kindle
#

IDs are strings

#

not numbers

pale vessel
#

JS moment

zenith knoll
#

wut

pale vessel
#

it's not like python

zenith knoll
#

js is dynamicly typed

lyric mountain
zenith knoll
#

dynamically

quartz kindle
#

js does not support 64 bit integers

#

IDs are too large

#

they get rounded to invalid ids

zenith knoll
#

ok

pale vessel
lyric mountain
#

Lul TIL js doesn't have longs

pale vessel
#

ah wait

#

read that wrong

lyric mountain
#

Lul

quaint wasp
#

My code is:/...

lyric mountain
#

It was released the same time, not dependent one on another

pale vessel
#

yes yes

quaint wasp
#
                        const reportChannel = "810225724937994331"
                        const Discord = require('discord.js')
                        const reportE = new Discord.MessageEmbed()
                          .setColor('#FF0000')
                          .setTitle('Bug Reported')
                          .addField('By:', message.author)
                          .addField('Bug:', bug)
                          .setFooter('Time reported', client.user.displayAvatarURL())
                          .setTimestamp();
                        message.channels.cache.get(reportChannel).send(reportE);```
quartz kindle
#

message.channels doesnt exist

#

one message cannot have multiple channels

quaint wasp
#

oh.. channel

lyric mountain
#

Message.guild.channels

#

Iirc

quartz kindle
#

depends if the channel is in the same guild as message

#

or if you want to send to another guild

quaint wasp
#

Its in other guidl..

#

and I get this when I changed channels to channel.

pale vessel
#

you can always just use client.channels.cache.get(id).send()

quaint wasp
#

oo.

#

its no function..

pale vessel
#

my bad, edited it

#

you need cache

quaint wasp
#

Thanks. 🙂

earnest phoenix
errant perch
#
DiscordAPIError: Missing Access
    at RequestHandler.execute (/home/runner/stockbot/node_modules/discord.js/src/rest/RequestHandler.js:154:13)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async RequestHandler.push (/home/runner/stockbot/node_modules/discord.js/src/rest/RequestHandler.js:39:14)
    at async TextChannel.edit (/home/runner/stockbot/node_modules/discord.js/src/structures/GuildChannel.js:355:21) {
  method: 'patch',
  path: '/channels/808608236449038346',
  code: 50001,
  httpStatus: 403
}``` i keep getting this error when i change the name of a channel
#

does missing access mean the bot doesn't have the correct permissions?

lyric mountain
#

Your bot can't see the channel

errant perch
#

oh

#

any way around this?

#

the bot has the manage_channels permission i don't think this should be happening

errant perch
#

ok i'll try that

lyric mountain
#

Yeah always remember channel permissions override role permissions

#

User perms > channel perms > role perms

earnest phoenix
#

const client = new Discord.Client({ fetchAllMembers: true, disableMentions: 'everyone' }); When I try fetchAllMembers bot didn't work does anyone have an idea

tiny ruin
#

maybe cuz you're missing member gateway intent?

earnest phoenix
#

^

#

i have server members intent

#

but i dont have presence intent

#

did you include the intent in the code too?

#

enabling it on the dev page isn't enough

earnest phoenix
agile lance
#

How do I map my guilds? (Eval command purpose, not public purpose)

earnest phoenix
#

in which library

agile lance
#

discord.js v12

earnest phoenix
#

just call .map on the cache

#

just like you would on an array

pale vessel
#

does that literally

agile lance
#

It returned [Function: map]

pale vessel
#

yep

#

what do you expect

earnest phoenix
#

lol

#

it's a method

lyric mountain
#

I don't think that's what he wanted lul

earnest phoenix
#

the behaviour of djs' Collection#map is identical to that of an array

lyric mountain
pale vessel
#

Map the guilds to their name

#

I'm assuming

agile lance
#

I want it to list by names

pale vessel
agile lance
#

Ok

tight elm
#

i need help with my server. I need someone to add a function that when someone reacts they can view the server evrytime i try i f it up
someone help me plz
i'll inv u to my server just dm me

lyric mountain
#

Use a bot with reaction roles for that

#

Then deny VIEW_CHANNELS permission from everyone

#

And allow it to Member role (or something)

#

This way only people with Member role will be able to see

tight elm
#

can i inv u to my server plz

lyric mountain
#

No

tight elm
#

-_-

#

this isn't help at all

earnest phoenix
tight elm
#

-_- bruh

earnest phoenix
tight elm
#

he didn't

earnest phoenix
#

He did

pale vessel
#

Why not? Did you not understand what he said?

earnest phoenix
#

Use a bot with reaction roles for that
Then deny VIEW_CHANNELS permission from everyone
And allow it to Member role (or something)
This way only people with Member role will be able to see

tardy hornet
#

what can i add in my code that when ever something says null, it wont say null, it will say 0, with out adding so many if's

pale vessel
#

something || 0

tardy hornet
#

what?

tight elm
#

null

tardy hornet
pale vessel
#

what

earnest phoenix
pale vessel
#
let something;

something = null;
something || 0; // 0

something = 1;
something || 0; // 1```
#

if you're on node 14+ you can also use ??

#

but in this case zero just fallbacks to zero

#

which is just the same

tardy hornet
#

@pale vessel so i can just add in top of the command:
let something;

something = null;
something || 0;

pale vessel
#

what

#

what are you trying to do?

#

can you show an example?

tardy hornet
#

yessir

#

1s

pale vessel
#

just append || 0 to your variable ig

tardy hornet
#

so like,

the credit card money is VARed to cdmoney

so i just need to add in the top of the command:

let cdmoney;

cdmoney = null;
cdmoney || 0;
pale vessel
#

you can just use `${cdmoney || 0}$` for example

tardy hornet
#

O

#

okay,

#

ty

#

sm

#

sorry for missunderstanding

#

ty

#

can i ask a question about that?

#

@pale vessel

pale vessel
tardy hornet
#

how does it detect that its null? like, if its not 0 it will show the number, but if its 0 (null) it knows to show 0.

#

hope it understandable

pale vessel
#

undefined, null, 0, empty strings ("") and false are falsey values

tardy hornet
#

so it like detects it?

pale vessel
#

so if you use falsey || foo it will usefoo instead

#

in this case 0

marble juniper
#

you can use ??

pale vessel
marble juniper
#

?? will only work on undefined or null

tardy hornet
#

welp

#

tysm

shrewd stream
#

client.guilds.cache.has ?

pale vessel
#

no that's not normal

shrewd stream
#

Are you using py ?

#

hmm im using js so idk sorry

#

is py hard for discord bot ?

#

i think py is so complex

pale vessel
#

it's bot.guilds

lyric mountain
#

Python itself is not hard to understand, that's why I call it a siren language

placid iron
#

What

lyric mountain
#

Siren language

#

A language that feels easy, looks beautiful and sing smooth melodies

#

But when you notice you're sinking in unoptimized and gruesome code it's too late

placid iron
#

There is a commonly accepted term for that and it is called "high level language"

lyric mountain
#

No no, I mean

#

Python itself is too charming for newbies

#

But they usually fail to dominate it

marble juniper
#

python is only good for data science

#

now python nerds will hit me up

#

lol

lyric mountain
#

Can't hit, I agree

marble juniper
#

Python is used mostly for data science

#

but I dont think its that perfomant

lyric mountain
#

Python is meant for short code snippets that execute a specific task

earnest phoenix
#

^

lyric mountain
#

It's really quick for prototyping

earnest phoenix
#

it can be very performant in some cases

marble juniper
#

often things like java or other languages are more preffered in production

#

lol

earnest phoenix
#

i just refuse to use it because of the retarded syntax

marble juniper
#

same

#

it wont even let me do ugly code because of the syntax

#

smh

#

let me do ugly code

#

ugly code makes it more fun

lyric mountain
#

Actually, python is a lot similar to lua when it comes to purpose if we stop to think

marble juniper
#

but who in thier right mind would ever touch lua nowdays

#

lol

lyric mountain
#

Those who have rgb mouse/keyboards lul

marble juniper
#

lul

lyric mountain
#

Imagine hsv mouse

marble juniper
#

take away the u from lua

#

we living in la

earnest phoenix
marble juniper
earnest phoenix
#

relevant

lyric mountain
#

Pit hole

marble juniper
#

as relevant as php

#

aka not

#

java is only used by 3 billion devices

#

always has been

#

lol

lyric mountain
#

No, oracle java is used in 3 billion systems

earnest phoenix
#

i feel sad that php is still used nowadays when even node beats php in web performance

lyric mountain
#

Because they sucks

marble juniper
#

you can just easily use a web framework like express

earnest phoenix
#

node isn't that good

#

but it's good enough

marble juniper
#

its not the best

#

but good enough

#

lol

#

and you can use it with tyescript ig

#

to make it a little better

#

I meant typescript

#

ffs

mellow kelp
#

i mean typescript is just for development

marble juniper
#

true

#

lol

mellow kelp
#

so apart from development it doesn't really affect how good node is

marble juniper
#

true

mellow kelp
#

but yea node is good enough

lyric mountain
#

All languages are good:
Java is robust
C++ is fast
Python
Js is lightweight

mellow kelp
#

"Python"

marble juniper
#

Python

earnest phoenix
#

java in 2021 mmLol

pale vessel
#

Ah yes "Python"

marble juniper
mellow kelp
#

i got a plugin with 20,000 downloads somehow

pale vessel
#

the one and only purpose

lyric mountain
#

Someday I'll try B lang

earnest phoenix
#

wait for .net 6 two way java interop and make plugins with c# instead

marble juniper
#

The only purpose of C is to make you fall in depression

#

lol

earnest phoenix
#

this

mellow kelp
#

i think you spelled assembly wrong

earnest phoenix
#

the only purpose of C is to make cs students drop out

marble juniper
#

kekw

mellow kelp
#

why does vscode just randomly crash

marble juniper
#

wanna know the best lang

#

apple script

#

lol

mellow kelp
#

this

quaint wasp
#

How do I deffine moment?

pale vessel
#

moment

marble juniper
#

you define it

quaint wasp
#

Scratch is good..

mellow kelp
#

did you copy code again

quaint wasp
#

uhh

marble juniper
#

this

quaint wasp
#

some.

marble juniper
#

so all

mellow kelp
#

do you even know what moment is

lyric mountain
#

"again"?

quaint wasp
#

wait

pale vessel
#

a meme

quaint wasp
#

again?

mellow kelp
quaint wasp
#

no

marble juniper
#

lol

mellow kelp
#

you probably wanna use date-fns or something

pale vessel
#

this isn't the first time you've done that

marble juniper
#

ffs

quaint wasp
#

well... I mean...

marble juniper
#

go learn coding

quaint wasp
#

ya....

#

I am..

#

I studied the code..

marble juniper
#

copy paste is not gonna make you learn code

#

and it doesn't count as "I know code"

quaint wasp
#

I watched the vd about it..

#

but it didn't explain how to deffine the moment.

#

alr.

marble juniper
#

The best way to learn is to watch and then to excercises yourself

mellow kelp
#

because moment is a npm module

marble juniper
#

this is how school teaches you all the subjects as well

#

lol

#

you should learn the same way when it comes to coding

#

just as advice

earnest phoenix
#

though it requires much much more critical thinking

quaint wasp
mellow kelp
#

it's not a discord.js class

earnest phoenix
#

you should be more dependent on yourself than anyone or anything else

mellow kelp
#

it's an npm module for date formatting

marble juniper
#

Meh coding is often mostly just problem solving

mellow kelp
#

more accurately, it's a meme at this point

quaint wasp
#

oh, so I do npm i moment?

mellow kelp
#

yes

marble juniper
quaint wasp
#

I'm smart.

mellow kelp
#

smort

marble juniper
#

We know

#

We saw that

#

😩

lyric mountain
#

Smart reversed is trams

quaint wasp
#

see

#

Im so smart I typed this with no question about it

pale vessel
#

holy shit

#

That's smart

marble juniper
#

whoa

#

I never knew you could do that

#

now make it an es6 import

mellow kelp
#

kekw

quaint wasp
#

uhhhh

lyric mountain
#

Es6 ftw

pale vessel
#

bruh

earnest phoenix
#

who is es6 and why do people keep telling me to import him

quaint wasp
#

wrong card

marble juniper
#
import * from "moment";
quaint wasp
#

I knew that.

lyric mountain
marble juniper
#

smort

#

omg how did you know

pale vessel
#

Haha, I knew that!

quaint wasp
#

I was just was testing you.

marble juniper
#

now make a function which returns if the number is odd

#

the hardest function ever

quaint wasp
#

uhh

#

one sec

marble juniper
#

proceeds to go on stackoverflow

pale vessel
#

n & 1

marble juniper
#

don't tell him

#

kekw

#

im gonna wait here

#

and wait for his copy paste

quaint wasp
#
function.create(odd) {
if number = 2 {
message.channel.send("blah blah blah")
}
#

see

pale vessel
#

npm i is-odd

quaint wasp
#

im smart.

marble juniper
#

omg

#

so smort

mellow kelp
#

what

queen needle
#

best way to make that

mellow kelp
#

hm yes

#

function.create

marble juniper
#

thats so smart I think it deserves a star

#

ngl

quaint wasp
#

uhh

#

yes.

#

wut this?

#

I got that few times now..

#

why does it corrupt?

pale vessel
#

because code is too good

marble juniper
#

naz

#

nah

mellow kelp
#

the code is too handsome

quaint wasp
lyric mountain
#

How tf you even reached that error message?

quaint wasp
#

Being so good at coding.

lyric mountain
#

Emir

earnest phoenix
#

you're touching something you're not supposed to be touching

quaint wasp
marble juniper
quaint wasp
#

I don't like being called by my name.

#

no need... please..

lyric mountain
#

Wait

quaint wasp
#

we all already know im supper duper smart.

lyric mountain
#

Why tf you have a folder named "_"?

quaint wasp
#

...

#

?

#

idk

lyric mountain
#

Your path

pale vessel
#

Something to do with VSC?

quaint wasp
#

Im too good.... too good..

pale vessel
#

Yeah we get it

earnest phoenix
#

did you install vscode... inside of your bot directory?

quaint wasp
#

uhh

pale vessel
#

No

#

Don't tell me

#

It does look like that

marble juniper
#
  1. you are trying to use a function that doesn't exist
  2. you have a parameter called odd and don't use it
  3. you are making an if statement without ()
  4. the parameter is called odd and not number
  5. you are mutating the value and not actually checking if the number is
  6. you are not returning any false or true
lyric mountain
#

..\Discord Bot\Microsoft VS Code\_\resources\app\extensions\git\dist\main.js

quaint wasp
lyric mountain
#

Wtf is tgat path

pale vessel
#

I think cry's right

lyric mountain
#

You're coding inside vscode folder

quaint wasp
#

wut?

#

no

marble juniper
#

wut?

#

yes

quaint wasp
#

how do I change that?

#

Also

#

Why do I feel like this is all a joke?...

earnest phoenix
#

did you follow a tutorial on how to install vscode

quaint wasp
#

no

lyric mountain
#

Like, OliyPls moment

earnest phoenix
#

you must've downloaded the portable version or something

quaint wasp
#

I never watched one..

marble juniper
#

why would you need a tutorial on how to install it in the first place

#

its so easy

pale vessel
#

Notepad++ Portable best editor

lyric mountain
#

Sublime text gang

pale vessel
#

I actually use that unironically (npp)

#

Should probably move to VSC or something

quaint wasp
#

..

earnest phoenix
#

i haven't used notepad++ since like 2015 because everyone was using it to edit minecraft config files

quaint wasp
#

bruh

quaint wasp
mellow kelp
pale vessel
#

I just picked something dark like solarized

mellow kelp
#

at least notepad++ is stupid fast

earnest phoenix
#

i jump between code editors and IDEs

quaint wasp
#

oh frick

pale vessel
#

Right

quaint wasp
pale vessel
#

Good job

lyric mountain
#

Smug, pls, create a new folder and put ur code there

#

Then properly install vscode

pale vessel
#

Change your database password?

quaint wasp
#

vscode?

#

Isnt that same thing?

lyric mountain
#

It is

quaint wasp
#

Visual Studio Code

pale vessel
#

You installed it in your bot folder

quaint wasp
#

ya

lyric mountain
#

But it's a miracle you haven't had issues given you're coding inside ur vscode folder

pale vessel
#

Why-

quaint wasp
#

isnt that were is should be?

marble juniper
pale vessel
#

No

lyric mountain
#

You see, vscode is supposed to be in Program Files

pale vessel
#

Don't go that far lol

lyric mountain
#

Or somewhere else

#

Everywhere EXCEPT inside your bot folder

marble juniper
#

why would you ever code in the vscode folder

quaint wasp
marble juniper
#

why tf would you ever do that

quaint wasp
#

now.

#

well..

#

Now its in my folder where all my projects are in.

earnest phoenix
#

also the fact that people store their bot files in their one drive folder instead of having a git folder and storing their projects there 👁️ 👄 👁️

quaint wasp
#

wait

pale vessel
#

What's git?

quaint wasp
#

yall talking about node modules, right?

lyric mountain
#

Git gud

earnest phoenix
#

who's rem

marble juniper
#

git gud

earnest phoenix
#

haha funny

pale vessel
#

Hah!

quaint wasp
#

git? wut that

pale vessel
#

I only know rem in CSS

mellow kelp
#

haha who's rem funny

quaint wasp
#

?

#

ram?

#

Isn't that like...

pale vessel
#

Ram bad

quaint wasp
#

a thing?

earnest phoenix
#

yeah

marble juniper
#
Git

Git () is a distributed version-control system for tracking changes in any set of files, originally designed for coordinating work among programmers cooperating on source code during software development. Its goals include speed, data integrity, and support for distributed, non-linear workflows (thousands of parallel branches running on differen...

earnest phoenix
#

i downloaded some the other day

lyric mountain
#

Git ()

placid iron
lyric mountain
#

Git is a function as it seems

marble juniper
#

I use the enterprise version

earnest phoenix
#

lol

marble juniper
#

to fit all my rem needs

#

lol

quaint wasp
#

thats what yall want me to move?

lyric mountain
#

Yk there's that star called betelgeuse

mellow kelp
#

i patiently wait for the day when computer ram will be called rem

mellow kelp
quaint wasp
#

is it pronouced be-te-l-goose?

mellow kelp
#

no

#

betelgeuse romane conti

#

DESU

quaint wasp
#

... ?

mellow kelp
#

that's actually a pretty cool name

quaint wasp
#

desu?

lyric mountain
#

D E E E S U

earnest phoenix
#

did you mean beetlejuice mmLol

quaint wasp
#

LMAO

mellow kelp
#

imagine telling your friends "yo my name is betelgeuse romane conti"

lyric mountain
#

Imagine being a royal kid

#

And having to tell your full name

quaint wasp
#

What is royal again?

marble juniper
#

who here can do the fizzbuzz?

#

cuz I can

#

lol

mellow kelp
quaint wasp
#

same.

earnest phoenix
#

back on track babes

quaint wasp
#

how tf do I deffine moment?

earnest phoenix
#

anyway you definitely need to uninstall vscode and reinstall it under your proper directory

quaint wasp
#

I got const moment = require('moment')

earnest phoenix
#

stop using your onedrive folder for your projects and start using git and github

lyric mountain
#

You just defined moment

earnest phoenix
#

stop storing on desktop

quaint wasp
#

its to trash.

lyric mountain
#

Wait wait wait

earnest phoenix
#

how so

pale vessel
#

What the fuck

quaint wasp
#

github is garbage.

earnest phoenix
#

how is it garbage

pale vessel
#

You're garbage

lyric mountain
#

Don't say that to our hub boye

marble juniper
#

WHAT THE FUCK DID YOU SAY

#

reeeee

mellow kelp
#

"several people are typing" KEKW

#

i should have taken a screenshot

marble juniper
#

you just don't understand the beauty of github

earnest phoenix
#

is it a case of "ooga booga im dumb consumer so product shit"

pale vessel
#

You've made a grave mistake saying that

lyric mountain
#

Github is the best thing after cheddar

marble juniper
quaint wasp
#

I feel like orange just is the best thing ever... but alr.

mellow kelp
#

every single developer in discord is about to dox you

earnest phoenix
#

github was only trash for a month when gitlab had it with more accessible features

earnest phoenix
#

then ms decided to make a lot of pro features free

#

and the github edu pack is amazing

mellow kelp
#

how does github keep track of its versions tho

marble juniper
#

if only I could use the edu pack

mellow kelp
#

does github use github?

marble juniper
#

kekw

earnest phoenix
#

probably

pale vessel
#

yes

lyric mountain
#

Github uses svn

quaint wasp
#

I think so

earnest phoenix
#

github remains the best platform for git projects

marble juniper
#

github uses github for github code

quaint wasp
#

svn?

lyric mountain
#

/s

earnest phoenix
#

also

#

did yall see github's globe

marble juniper
#

its hot

earnest phoenix
#

there's a whole article on how they built it

#

it's a nice read

marble juniper
#

true

quaint wasp
lyric mountain
#

Can we take a moment to appreciate google's new dark theme?

marble juniper
#

I readed the blog post

#

of the globe

#

lol

earnest phoenix
mellow kelp
#

where

lyric mountain
#

Yes

lyric mountain
#

Just a sec

earnest phoenix
#

djs is totally unrelated to git or github

lyric mountain
#

Gonna screenshot

mellow kelp
#

I NEED IT

marble juniper
#

true

earnest phoenix
#

git and github are two different things in the first place

earnest phoenix
quaint wasp
#

lol

marble juniper
#

rly now

mellow kelp
#

ngl that was a pretty good analogy @quaint wasp

earnest phoenix
#

like car and carpet

marble juniper
#

like cock and cocktail

#

a

quaint wasp
#

b

marble juniper
proven lantern
#

What's the difference between @invalid-user and <@!USER_ID>? what are the conditions where these show up?

quaint wasp
#

Me no dumbass. I know my ABCs' unlike you all. Me've been studing them for ever now. English is hard.

lyric mountain
#

Meh, only for pc currently

marble juniper
#

lol

lyric mountain
#

But I saw it yesterday

marble juniper
#

@compact lotus

#

there

lyric mountain
#

Suddenly google went black

mellow kelp
#

whoa

quaint wasp
earnest phoenix
quaint wasp
#

also

mellow kelp
#

@misty ibex

quaint wasp
#

google is a she from my point of view.

mellow kelp
#

wait it's not invalid

#

there's a user id 69

proven lantern
earnest phoenix
#

the user isn't in your client cache

#

can't do anything about it unfortunately

#

it's a clientside issue

marble juniper
#

ye

proven lantern
#

can i do a client.members.fetch() to fetch the user?

earnest phoenix
#

no, not that kind of a client

#

the client you're using right now to conversate with us

quaint wasp
marble juniper
#

but as far as I know you can just pass the user object into a string in discord.js and it would function as a mention

lyric mountain
quaint wasp
#

I think.

mellow kelp
marble juniper
#

for example you could do message.channel.send(message.author) and it would be a mention

mellow kelp
#

but google isnt

marble juniper
#

lol

lyric mountain
#

Idk then, give it a search

earnest phoenix
#

just use dark reader

mellow kelp
#

yea right

lyric mountain
#

I swear my google is dark

pale vessel
#

this

lyric mountain
#

In my pc

mellow kelp
#

don't wanna stay blind my whole life

earnest phoenix
#

dark reader turns any page into dark mode

marble juniper
#

google has an Experimental feature for forced dark mode

#

lol

pale vessel
#

I don't like it

#

Can't toggle it

proven lantern
placid iron
#

Dark reader turns dark pages into horrible looking pages. But it's worth it

earnest phoenix
pale vessel
#

no

proven lantern
#

it's the discord client of the member that doesn't have it in their cache right?

lyric mountain
#

Ig I've been lucky lol, didn't knew it was a thanos beta

pale vessel
#

he just said it's the client you're using right now to talk

proven lantern
#

it's not happening on my client

#

a user of my bot sent me a bug

earnest phoenix
#

ah

#

right

#

then yeah

pale vessel
#

then it's THEIR client

earnest phoenix
#

tell them you can't do anything about it

#

it's a discord issue

#

not your bot's

proven lantern
#

but their client should have the member cached since that member is in their discord server

earnest phoenix
#

not all members are granted to be cached

#

otherwise the ram usage would be 8 gigs

lyric mountain
#

Tell them to ctrl + f5

proven lantern
#

and i cant force their client to do a lookup

earnest phoenix
#

nope

proven lantern
#

dang

marble juniper
earnest phoenix
#

refreshing the client would only further flush the cache

#

would do the opposite of helping

#

Damn, i suspect they're on mobile that shows up as @invalid-user

proven lantern
#

they are

#

on mobile

earnest phoenix
#

I think i should modify the markdown rule of discord mobile on SimpleAST to show up as their ID just like PC instead of invalid user

#

a useful feature?? on discord?? not on MY watch

marble juniper
#

plot twist: they are actually named invalid-user and are trolling

proven lantern
#

lol

quaint wasp
#

can anybody like..

#

ya know

#

help fix this error saying moment is no function?

lyric mountain
#

Moment is no function

earnest phoenix
marble juniper
#

what do you not understand under "define"

quaint wasp
#

no.

marble juniper
#

do I have to give you a wikipedia defeniton of defenition

quaint wasp
#

no

marble juniper
#

lol

quaint wasp
#

define = means explain what it is..

earnest phoenix
#

cpp flashbacks

quaint wasp
#

I think.

lyric mountain
#

No

quaint wasp
#

yes.

#

Me smart.

#

I know stuff.

lyric mountain
#

Define means "make it exist"

quaint wasp
#

I think.

#

no

marble juniper
#

A definition is a statement of the meaning of a term (a word, phrase, or other set of symbols). Definitions can be classified into two large categories, intensional definitions (which try to give the sense of a term) and extensional definitions (which try to list the objects that a term describes). Another important category of definitions is th...

#

dfs

#

jsjfs

quaint wasp
#

bra

marble juniper
#

there

quaint wasp
#

were talking about define, not definition.

lyric mountain
#

Deutsch moment

mellow kelp
#

moment is not a function

#

moment is a joke

quaint wasp
#

Idk..

marble juniper
#

wikipedia makes it german when I visit and I hate it

quaint wasp
#

I feel like moment is a word..

marble juniper
earnest phoenix
quaint wasp
jolly mortar
#

i finnally got my bot to stay online without it crashing when someone dms it

quaint wasp
#

lol

earnest phoenix
marble juniper
earnest phoenix
#

I know lul

earnest phoenix
#

it's the reason why the client behaviour is never consistent mmLol

#

Adding anything to discord mobile is absolute pain

quaint wasp
#

guys.. cmon.. How do i fix this dum error?

quartz kindle
#

who was the idiot who thought that was a good idea

lyric mountain
#

Both german and russian sounds like everyone is cursing when arguing

marble juniper
earnest phoenix
#

their base is already a clusterfuck and then they're adding more clusterfuck to their already established clusterfuck

lyric mountain
#

Russian is more aggressive tho

marble juniper
#

smh

mellow kelp
#

blyat

jolly mortar
#

quick question, is using another discord bot lists allowed? hashflushed

marble juniper
#

I as a german born in germany disagree

quartz kindle
#

cyka

quaint wasp
lyric mountain
quaint wasp
#

by like... typing.

lyric mountain
#

At least not here

earnest phoenix
#

so type

quaint wasp
#

wut?

lyric mountain
#

Like, just don't advertise other lists

quaint wasp
#

I am typing.

earnest phoenix
#

i suggest having a stroke on your keyboard, you might end up writing garbage, just like netflix's shows

marble juniper
#

this person is making me feel a world of pain

earnest phoenix
#

🗿 He woke up from the wrong side of the bed

quaint wasp
quaint wasp
marble juniper
#

NetFlIx OriGinALs

earnest phoenix
#

Then it's rewind time

marble juniper
#

ahh thats hot

#

thats hot

lyric mountain
#

Netflex originot

quaint wasp
#

?

#

guys

opal plank
marble juniper
#

lol

lyric mountain
quaint wasp
#

why u curse?

earnest phoenix
#

That's what i tell you on discord.js help channels

#

Literally same behavior

marble juniper
#

We are developing a conversation in development

opal plank
#

I was today's years old before i realised caching all members is a horrible idea

#

on startup, at least

earnest phoenix
#

bombed cpu

opal plank
#

not even

#

just the gateway ratelimiting

quaint wasp
#

lol

earnest phoenix
#

that's interesting

#

I'm glad they removed the fetchAllMembers option from discord.js v13 KEKW

marble juniper
opal plank
#

thats exactlyh what im running into rn

#

its taking around 4 minutes just to cache all 450k users

marble juniper
#

lol

earnest phoenix
#

they're doing a really bad job at it

#

just like with anything else but that's beside the point

opal plank
#

like, all startup takes around 15s (with 5 shards), which is insanely good

#

d.js was emitting ready after 17 seconds on a single shard

marble juniper
#

I have the feeling discord cares more about the casual consumers than the actual devs

#

lol

earnest phoenix
#

yes

#

More like cares about none

#

they started catering to older audiences too

opal plank
#

nono

#

they care about the stickers voltrex

earnest phoenix
#

if it wasn't obvious enough from the UI enlargement

marble juniper
#

they also started targetting schools in quarantine

earnest phoenix
#

bigger buttons == more intuitive, that's how UX works right guys???????????

lyric mountain
#

Let's remember discord removed tableflip memes from mod settings

earnest phoenix
#

Yea, "omg stickers on discord!?!?!?! Money? Take it!"

pale vessel
#

and the startup text

opal plank
#

remember that time discord change the reaction button 5 times in 2 weeks?

marble juniper
#

big fat gift button

#

impossible to mis

pale vessel
#

moved to the left

lyric mountain
#

Discord is cleaning all gamer references

#

Soon it'll become...slack

marble juniper
#

yes

#

it is slack but evolving backwards

earnest phoenix
#

also the fact that they added a dark pattern in their app, put the nitro button in place of the upload button so you'll click on nitro because of muscle memory

delicate zephyr
#

yea

marble juniper
#

also the fucking layout of the fucking call buttons

delicate zephyr
#

I stopped accidentally clicking it after 1 day

marble juniper
#

just made to be clicked on by accident

pale vessel
#

same

lyric mountain
#

As if gift button was so constantly used that it had to be added near message field

marble juniper
#

true

earnest phoenix
#

if we're being honest, they're also selling our data too

marble juniper
#

im feeling generous today let me buy a gift out of nowhere and send it in the ser-
sniper proceeds to claim it

earnest phoenix
#

As if like if they care about any of those while the Note field still exists on user's profiles KEKW

#

just legally required to say they're not

opal plank
#

that goes into coonspiracy cry

lyric mountain
opal plank
#

none of the devs i ever spoke to, even in private, ever said they were selling data at all

marble juniper
#

lol

opal plank
#

discord gets plenty of money as is

earnest phoenix
#

because they're required to 🤷‍♂️ the amount of analytics they send is shady

marble juniper
earnest phoenix
#

but that's again

#

conspiracy

opal plank
#

the only analytics we ever see is just hitting the science endpoint

earnest phoenix
#

a topic for another day

opal plank
#

and you can even see what is being sent

quartz kindle
#

if you are a US company, you are legally required to share data

marble juniper
#

discord uses Google to store files so basically they technically sell the data to google

#

lol

opal plank
#

thats not how that works

marble juniper
#

am stoopid then

opal plank
#

what company EVER has the right to use data that you are paying them to store?

#

its like hiring a vault to put documents, and the owner goes on swooping on ur shit

pale vessel
#

What's the science endpoint again

#

Analytics?

opal plank
#

thats not how business works at all

#

open ctrl + shit + i

earnest phoenix
#

Discord literally tries to do everything perfectly then most of the time fails, then they just give up and make things like this

https://dis.gd/threads

Omg funny guys right? Right?????

marble juniper
#

sorry im stupid

opal plank
#

monitor outgoing packets

marble juniper
#

ok

pale vessel
#

oh right

opal plank
#

you'll see science enpoint being sent stuff soemtimes

#

check the payload

#

its nothing major

#

and im fairly certain all data hit on the science enpoint is taken as anynoymous iirc

earnest phoenix
opal plank
marble juniper
#

should have just made replys like they are now directly

#

and not use those ugly lazy markdown blocks

#

lol

earnest phoenix
#

Them saying they'll implement reactive embed buttons, UI improvements and stuff like that

Sure, maybe in 2077

opal plank
#

this is the science enpoint, everytime you open guilds and a couple other tasks, you'll see it sending data

earnest phoenix
#

they cheap out on their developers

opal plank
#

supposedly all this is anonymous

marble juniper
earnest phoenix
#

Yes

#

4 years of development, Cyberbug

marble juniper
#

kek

lyric mountain
#

Cybertruck

earnest phoenix
#

what's ironic is that discord's implementation is probably going to be shit, just like cyberpunk itself

marble juniper
#

Cyberstunk

lyric mountain
#

Cyberbruh

marble juniper
#

and source code gets stolen

earnest phoenix
#

it's embarrassing

marble juniper
#

true

#

lol

earnest phoenix
#

i would've grabbed a rope right there and then

marble juniper
#

absolutely emberassing

earnest phoenix
#

Cyberjunk, cyberbug, cyberdrugs, equivalent to discord's Implementions

proven lantern
#

@earnest phoenix the caching on is broken on mobile. they segment the member cache instead of having a global cache. make them fix it

earnest phoenix
#

last time i told the devs to do something i ended up calling them incompetent and getting muted

marble juniper
#

kekw

lyric mountain
#

Make clicker noises

mellow kelp
#

sounds like your average discord server

lyric mountain
#

They'll hear u

earnest phoenix
#

Mfs taking years to merge a PR

#

you know the client is one story

#

the backend must be dante's 9th circle of hell

#

did you know that user tokens got a new READY event besides the normal READY called READY_SUPPLEMENTAL

lyric mountain
#

The deeper u go the colder it becomes because hot air rises

#

So it's actually 0th circle of hell

earnest phoenix
#

the entire backend must be such a clusterfuck

#

What do you expect when even the markdown rules looks like a clusterfuck KEKW

lyric mountain
#

Markdown rule

proven lantern
#

same phone, same user, different discord guilds

lyric mountain
#

Mobile doesn't change older mentions in real time

earnest phoenix
proven lantern
#

no, the user is only in the guild where it is showing up on mobile

earnest phoenix
#

What

#

???

proven lantern
#

on desktop the name shows up even though @test_ben_test isnt in the guild

earnest phoenix
#

That's a bug or something that shouldn't happen

proven lantern
#

it;s like they are segmenting the cache

earnest phoenix
#

Users mentioned that are not in the guild should't be displayed as an actual mention, instead would be <@ID>

#

Called it, back-end is just a clusterfuck

quaint wasp
#

bra

earnest phoenix
#

I can also make the markdown rule of discord mobile do the same thing but that's just a bug

quaint wasp
#

I just got this

#

(node:9696) DeprecationWarning: Listening to events on the Db class has been deprecated and will be removed in the next major version.

earnest phoenix
#

Read what it says

#

Now tell me

quaint wasp
#

Is it bad?

#

I read it.

#

It just randomly poped up.

#

Its like an announcment..

earnest phoenix
#

So, if you read it, do you exactly know what it means? It's plain English

lyric mountain
#

Yeah, depreciation is bad

#

It means "any future update might not have that anymore"

earnest phoenix
#

I'm pretty sure he's confused about the first part of the error, you're basically listening to events in the class called Db which you shouldn't

mellow kelp
#

it's basically "obsolete"

proven lantern
earnest phoenix
#

hello i would ask for some help on how can i make this so colorful?

lyric mountain
#

Markdown syntax

mellow kelp
#

wait that language is that supposed to be

lyric mountain
#

```lang here
Text here
```

earnest phoenix
#

okey what lang ???

mellow kelp
#

im trying to figure it out

#

uhh

lyric mountain
#

Capitalized words are colored

#

Non capitalized are grey

mellow kelp
#

maybe its an oop language

lyric mountain
#

Try sql

mellow kelp
#

nope

lyric mountain
#

Vb

mellow kelp
#

nope

lyric mountain
#

Visual basic Has That Stuff

earnest phoenix
#

The markdown rule on discord mobile is correct, it's doing what it's intended to, the only thing that confuses users and developers is that, when the user is either not cached or is not in the guild, it just displays @invalid-user, which should be seperated, but you don't need to worry about this so yea, maybe wait until a fix is dropped at least @proven lantern

lyric mountain
#

Hm