#development

1 messages Β· Page 1148 of 1

fringe axle
#

Thanks

earnest phoenix
#

Np

solemn latch
#

Could be an hour, could be 24 hours

sharp tendon
#

:sad:

#

Could be an hour, could be 24 hours
@solemn latch Okey

earnest phoenix
#

That's either ratelimit or connection problem, check your internet connection or if you host on a hosting website, check it's support, if ratelimit

#

Ratelimit would only last an hour on max

#

For voice channel connection

ionic dawn
#

Hi wave_hand

sharp tendon
#

I think it is a connection problem

midnight blaze
#

zzsound_quiz

faint prism
#

dude

#

5th time

delicate shore
earnest phoenix
#

As i said, i think he is lagging or his discord is out of sync

midnight blaze
#

zzsound_quiz

ionic dawn
#

@delicate shore web scrappin?

delicate shore
#

Ye is it web scrapping?

sharp tendon
#

As i said, i think he is lagging or his discord is out of sync
@earnest phoenix idk...

delicate shore
#

Becuase I couldn't find any API

opaque eagle
#

lol

midnight blaze
#

zzsound_quiz

ionic dawn
#

Dsnt look like

earnest phoenix
#

@delicate shore It's just an api

ionic dawn
#

What is this ment for?

delicate shore
#

Which one ?

slender thistle
#

@midnight blaze Do you realize which channel you are in?

faint prism
#

dude

solemn latch
#

hes been doing it for awhile tho

#

πŸ€”

delicate shore
#

Auto Tyler

earnest phoenix
#

@slender thistle His discord might be out of sync

delicate shore
#

Typer

opaque eagle
#

You can just use mathematics to calculate the distance between two lat/long coordinates

earnest phoenix
#

This happened to me before, idk wtf is going on

opaque eagle
#

You don't need an API for that

delicate shore
#

@delicate shore It's just an api
@earnest phoenix
Which one

ionic dawn
#

Auto Typer?

midnight blaze
#

us

#

no, I didnt

#

sry

solemn latch
#

we have been tagging you

misty sigil
#

or maybe he's testing a permission thing

quartz kindle
#

10 messages later lmao

earnest phoenix
#

@delicate shore What's the api Actually meant for tho

solemn latch
#

for the longest time

slender thistle
#

or maybe he's testing a permission thing
still wrong channel

sharp tendon
#

@earnest phoenix

#

It doesn't work on 4G either.

delicate shore
#

@delicate shore What's the api Actually meant for tho
@earnest phoenix
Umm what?

misty sigil
#

the thing is, bots can see here, shiv.

solemn latch
#

you can test any permissions in your own server

misty sigil
#

oh yea

solemn latch
#

or lack of permissions

ionic dawn
#

@delicate shore what do you want to do

faint prism
#

There is also 2 testing channels

sharp tendon
#

@solemn latch , It doesn't work on 4G either.

earnest phoenix
#

@delicate shore I mean does it have to calculate something like what's it's purpose? Maybe i got one

delicate shore
slender thistle
#

XP bots use that reasonably. Permission testing isn't a valid reason to continuously use commands in testing intended to be used for communication

ionic dawn
#

Yeah but what is that

#

Its a simple calc or does it require any data from somewhere else?

#

Explain the command purpose

earnest phoenix
#

I think it calculates the distance between coordinates and returns kilometers and time depending on the kilometers

#

Idk wtf is it supposed to be

paper cliff
#

it's simple

ionic dawn
#

Time based in walk car plane?

faint prism
#

@delicate shore Does that use a map api or do you actually calculate the coords difference with a math function?

solemn latch
#

that 120 minute cooldown timer

delicate shore
#

That's what I dunno

ionic dawn
paper cliff
#

if you need a map api or whatever, just use OpenStreetMap?

sonic lodge
#

you dont need an api for that

ionic dawn
#

Google maps provide coords

faint prism
sonic lodge
#

just find how long a degree of longitude / latitude is and you can calculate it yourself

paper cliff
#

ah i thought it was a real distance calculation, disappointed

faint prism
#

Use the the haversine formula

#

or a lib for it if you're lazy, but I wouldn't offload that to an api lol

delicate shore
faint prism
#

yes, that's the link I sent

solemn latch
#

[In fact, the earth is very slightly ellipsoidal; using a spherical model gives errors typically up to 0.3%1 – see notes for further details]

delicate shore
#

Ok

#

But that I have to scrape

solemn latch
#

0.3% off

#

too much ahhhh KEKW

faint prism
#

But that I have to scrape
@delicate shore wha-

#

What do you have to scrape??

delicate shore
#

just find how long a degree of longitude / latitude is and you can calculate it yourself
@sonic lodge
How

solemn latch
#

they have copy paste code on that webpage

delicate shore
#

What do you have to scrape??
@faint prism
Web-scrapping

faint prism
#

No

solemn latch
faint prism
#

It's a math function

delicate shore
faint prism
#

yes

#

but Implement the math function

#

Don't scrape that site wtf lol

amber fractal
#

I dont like your use of symbols as variable names

#

lmao

delicate shore
#

Ok

drifting wedge
#

what is the alisases command?

solemn latch
#

thats from the site

drifting wedge
#

im using py

solemn latch
#

docs

#

docs docs docs

paper cliff
#

Doctor House?

drifting wedge
#

i looked

#

didnt find anything

earnest phoenix
#

So as i've been creating functions, if a parameter is 0 and you use the ! operator on that parameter that's 0, it returns true even though the parameter exists, anybody know the reason behind this?

pale vessel
#

use ===?

solemn latch
#

!0
0 is falsy
inverse of false is true
if thats what you mean

amber fractal
#

yeah because Boolean(0) === false

solemn latch
earnest phoenix
#

Example:
Function

function whatever(firstP, secondP) {
if (!firstP || !secondP) {
throw new Error("Expected both params");
}
}```
=>
```js
whatever(0, 1);```
<=
```js
Error: Expected both params``` and yea
#

0 => false
1 => true
In booleans

amber fractal
#

the only work around I know for what you want is if(!param && param !== 0)

pale vessel
#

what about if (secondP === undefined)?

earnest phoenix
#

I know the workaround this is js Number.isInteger() function

#

But yea just wanted to know the reason behind it

#

I know how to bypass it's falsy ness

amber fractal
#

I gues you could use === undefined

sonic lodge
#

or isFinite(param)

amber fractal
#

I mean those involve a lot more than === undefined

sonic lodge
#

true, im just assuming the params have to be numbers

weak rain
#

what to do if i want my bot to send a message whenever it is added or removed from a Guild

#

hm ok

zealous torrent
#

how 2 code

solemn latch
#

you cant 2 code, you have to 4 code

zealous torrent
#

how 4 code

slender thistle
#

-faq 3

gilded plankBOT
zealous torrent
#

no how to 4 code

#

not how 2 code

viral iris
#

(node:7312) UnhandledPromiseRejectionWarning: DiscordAPIError: Invalid Form Body
embed.image.url: Could not interpret "{'name': 'a.png'}" as string.

#

can any1 help?

slender thistle
#

?????????????????????????????????????????????????????

viral iris
#

(node:7312) UnhandledPromiseRejectionWarning: DiscordAPIError: Invalid Form Body embed.image.url: Could not interpret "{'name': 'a.png'}" as string.

#

no it's not

solemn latch
#

whats your code?

viral iris
#

canvas to embed

#
if (done === data.length) {
                                const buf = canvas.toBuffer('image/png');
                                let attachment = new Discord.MessageAttachment(buf, "a.png");
                                let embed = new Discord.MessageEmbed()
                                    .setImage(attachment)
                                    .setTitle('A')
                                    .setTimestamp()
                                message.channel.send(embed);
amber fractal
solemn latch
#

only 6%?

#

i think you need to attach the file @viral iris

amber fractal
#

setImage takes a url

#

you can attach the fine then use attachment://name I believe

fringe axle
#

@earnest phoenix how can I get the volume of the message author ID. The volume should be the volume, the user setted my bot's volume
Like:
You setted my bot's volume on 25
Bot: Volume: 25%

solemn latch
fringe axle
#

I know him. He's good.

solemn latch
#

πŸ€·β€β™‚οΈ its not "do not mention people randomly unless you know them"

viral iris
#

i think you need to attach the file @viral iris
@solemn latch i did

#

by the coanvas

misty sigil
#

just do not randomly @mention people

solemn latch
#

i dont see you attaching the file to the embed.

low shard
#

I need good radios

#

πŸ˜€

#

?

solemn latch
#

thats not really a complete thought, or question or anything

sinful belfry
#

^

#

you can probably find some on google

low shard
#

I need very good one

sinful belfry
#

this channel (which is for development) is not the one to ask

low shard
#

@sinful belfry ok

lusty lintel
#

dude

#

I boost this server

sinful belfry
#

is that relevant to development?

lusty lintel
#

@earnest phoenix

delicate shore
#
    <link
      href="https://cdn.glitch.com/df08f666-9280-420d-aa1e-87390a682bb0%2Frishtpushtlogo-90x74.jpg?v=1597248211629"
    />```
#

this is not working

#

or am i doing something wrong i am bad at html

sinful belfry
#

@lusty lintel dude, check the channel description and don't mention random people

lusty lintel
#

I need to msg him

earnest phoenix
#

@earnest phoenix
@lusty lintel hi

lusty lintel
#

dude check dms

earnest phoenix
#

What’s up bro

sinful belfry
#

really?

#

you just carry on?

lusty lintel
#

check dm ks

delicate shore
#

bru

sinful belfry
#

bruh

delicate shore
#

anyways

#
    <link
      href="https://cdn.glitch.com/df08f666-9280-420d-aa1e-87390a682bb0%2Frishtpushtlogo-90x74.jpg?v=1597248211629"
    />```
sinful belfry
#

-checkdms @lusty lintel

gilded plankBOT
delicate shore
#

this is my code

sonic lodge
#

you could like, dm him directly

misty sigil
#

try img?

slender thistle
#

Carry on

delicate shore
#

^

misty sigil
#

instead of link

solemn latch
#

is link even an element

#

πŸ€”

misty sigil
#

or is that not what you want

delicate shore
#

try img?
oh ok lemme try i am bad at html

slender thistle
#

Yes, it's a valid "element"

#

used in <head> though

misty sigil
#

<img src="imageurl" href="where it leads">

delicate shore
#

did not work either

misty sigil
#

theres probably more than that

delicate shore
#

no i want a logo

#

on top left

misty sigil
#

try src instead of href

slender thistle
#

I thought img didn't have href?

misty sigil
#

i swear it did

delicate shore
#

umm

#

what

#

it has become a loader

misty sigil
#

oop nope

delicate shore
#

instead of logo on top left

misty sigil
#

mb

slender thistle
#

I was about to say "give me an hour to create an .html file and use PyCharm to get available attributes" but you were faster than my laptop

delicate shore
#

umm

#

mb
@misty sigil do i need to use this

#

somewhere?

slender thistle
#

You need an img element

delicate shore
#

ok

misty sigil
#

its img element

#

img links can be added using <a> elements

slender thistle
#

aka nesting img in a

misty sigil
#

^

earnest phoenix
#

now we have to return the development to PY devs :))

#

it has been a long time JS devs took this Channel

delicate shore
#

ok

quartz kindle
#

py devs can go elsewhere

#

:^)

misty sigil
delicate shore
#

i cannot

#

i just cannot

#

figure that

#

i-

#

wanna die

solemn latch
slender thistle
#

<img src="https://MY-COOL.LINK/HERE">

#

to allow the user to click on the image and be redirected somewhere, you would have to make img element a child element of anchor tag (<a>)

misty sigil
#
<a href="">
    <img src="">
</a>``` for clickable images
#

regular images are just the ```html
<img src="">

delicate shore
#

<img src="https://MY-COOL.LINK/HERE">
i tried but di not work

#

it remains empty

earnest phoenix
#

then you got an invalid url

earnest phoenix
#

you also need to close the img tag iirc

#

what's your code

slender thistle
#

No, img is a single-tag element

delicate shore
slender thistle
#

or w.e you call them

earnest phoenix
#

Yuck glitch assets

pale vessel
#

what does decoding async do

earnest phoenix
slender thistle
#

PyCharm with HTML5 says it's valid

#

that's new

delicate shore
#

what does decoding async do
@pale vessel it's not html tbh

#

it's apm html

#

to be specific

#

smp*

slender thistle
earnest phoenix
#

isn't it kind of self explanatory

#

runs the loading in parallel

#

this is useful for pages with a lot of image assets

delicate shore
#

^

#

but how to solve it

earnest phoenix
#

Solve what?

#

that seems to be valid

#

are you sure none of the classes are hiding it

slender thistle
#

Tried inspecting it with browser's dev tools?

earnest phoenix
#

and that no elements are overlapping with it

delicate shore
#

if u want clean and clear code

    <img
      decoding="async"
      alt="Mobirise"
      src="https://cdn.glitch.com/df08f666-9280-420d-aa1e-87390a682bb0%2Frishtpushtlogo-90x74.jpg?v=1597248211629"
      class="i-amphtml-fill-content i-amphtml-replaced-content"
    />```
pale vessel
#

check console

delicate shore
#

and yes

#

i used Mobirise

#

because i suck

#

but some of the things i made myself

pale vessel
#

press f12 and go to console

delicate shore
#

ok

#

but

#

i am on mac

pale vessel
#

just inspect element

delicate shore
#

i just went to console anyways

reef cypress
#

Hi

delicate shore
#

carry on

#

um

weak rain
#

will this work if i want my bot to send a message whenever it is added from a Guild

  let channel = message.guild.channels.cache.find((x) => (x.id === "739469830343753778"))

  let wembed = new discord.MessageEmbed()

  .setColor("RANDOM")
  .setThumbnail(member.user.avatarURL())
  .setDescription(`${client.guild.create.name}`)
  client.channels.cache.get(channel).send(wembed)
})```
delicate shore
#

it says a error flapeze

#

DevTools failed to load SourceMap: Could not load content for https://phrygian-bittersweet-rest.glitch.me/ww.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

earnest phoenix
#

will this work if i want my bot to send a message whenever it is added from a Guild

  let channel = message.guild.channels.cache.find((x) => (x.id === "739469830343753778"))

  let wembed = new discord.MessageEmbed()

  .setColor("RANDOM")
  .setThumbnail(member.user.avatarURL())
  .setDescription(`${client.guild.create.name}`)
  client.channels.cache.get(channel).send(wembed)
})```

@weak rain https://tryitands.ee

reef cypress
#

will this work if i want my bot to send a message whenever it is added from a Guild

  let channel = message.guild.channels.cache.find((x) => (x.id === "739469830343753778"))

  let wembed = new discord.MessageEmbed()

  .setColor("RANDOM")
  .setThumbnail(member.user.avatarURL())
  .setDescription(`${client.guild.create.name}`)
  client.channels.cache.get(channel).send(wembed)
})```

@weak rain discord.js

pale vessel
weak rain
#
  console.log("I am Ready to Go")
  client.user.setStatus("idle");
  client.user.setActivity(`Bot on Maintainence`)

})```
i m unable to set activity and status at the same time
slender thistle
#

client.guild.create doesn't exist

earnest phoenix
#

it says a error flapeze
@delicate shore that error is irrelevant, it's just looking for the sourcemap of the js code and it can't find it

slender thistle
#

Use setActivity once

pale vessel
#

wait, where did you define message? @reef cypress

delicate shore
#

i have not used js anywhere

weak rain
#

client.guild.create doesn't exist
@slender thistle u know js too?

delicate shore
#

bru

#

he is

#

a-

weak rain
#

Use setActivity once
@slender thistle wdym i want to set both

delicate shore
#

leave it

weak rain
#

hm

slender thistle
#

Doesn't setActivity support statuses

delicate shore
#

its guildCreate

solemn latch
#

iirc yes

pale vessel
#

use setPresence

#

or you can just provide presence in client options

delicate shore
#

its guildCreate
@weak rain

weak rain
#

hm

delicate shore
#

ok anyways

weak rain
#

but

solemn latch
#

why does the guild create say its a member πŸ€”
client.on("guildCreate", async (member) => {
guild create emits a guild

delicate shore
#

@delicate shore that error is irrelevant, it's just looking for the sourcemap of the js code and it can't find it
@earnest phoenix ok

weak rain
#

i wrote guildCreate only

#

oh lol

solemn latch
#

and your using message somewhere theres no message

delicate shore
#

why does the guild create say its a member πŸ€”
client.on("guildCreate", async (member) => {
guild create emits a guild
it gives a object called guild
and to get member just use guild.owner

pale vessel
#

uh no

slender thistle
#

welllllllllllll

#

no

delicate shore
#

guild.owner

#

sorry

slender thistle
#

there's no guild.member

delicate shore
#

typo

#

typo

#

guild.owner

#

it was a typo because i read his code

weak rain
#

i got guildCreate from djs guide

slender thistle
#

They are telling you replace member in the function parameters with guild

weak rain
#

kk

delicate shore
#

and shivaco

#

did u find any solution

#

for me? uwu

slender thistle
#

just inspect element
this is the best I've got for your case

#

Make sure your element isn't being hidden by your CSS/JS or other elements

delicate shore
#

OK

#

it's not

#

do i need ./?

slender thistle
#

Well, if you are looking for a parent folder

delicate shore
#

yes

#

i am

#

noooooo 😒 did not ork

#

work

#

oh guys i never sent u my whole code

#
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, minimum-scale=1"
    />
    <img
      decoding="async"
      alt="Mobirise"
      src="assets/df08f666-9280-420d-aa1e-87390a682bb0%2Frishtpushtlogo-90x74.jpg"
      class="i-amphtml-fill-content i-amphtml-replaced-content"
    />```
slender thistle
#

Hold the fuck up

#

Are you adding that in your <head>?

delicate shore
#

yesss

dire obsidian
#

Guys is there function to get a random user from a server?

slender thistle
#

welllllllllll

#

there you go

weak rain
#

i tried the same code and made it guildDelete from guildCreate and kicked my bot from 1server

#

but didnt work

slender thistle
#

An image is an element the user views, so it needs to be in body instead

delicate shore
#

oh

#

but

#

it is

#

o

dire obsidian
#

Guys is there function to get a random user from a server...

weak rain
dire obsidian
#

guild.user.random?

delicate shore
#

did not work

#

either

#

shivaco

slender thistle
#

show your full HTML

delicate shore
#

full?

slender thistle
#

all of your .html file content

delicate shore
earnest phoenix
#

yikes

delicate shore
#

Why

#

;-;

slender thistle
#

Isn't meta supposed to be in head?

delicate shore
#

well it is

slender thistle
delicate shore
#

wha

#

can there be more than one body elemt?

#

in single code

slender thistle
#

I highly doubt that

earnest phoenix
#

how do you add spacing on an embed for mobile phone? Right now everything is stacked and it's ugly af

#

you don't

#

you can't control how anything is displayed to the end user

slender thistle
#

not on Discord, at least

earnest phoenix
#

discord resizes accordingly to the device screen size

misty sigil
#

unless ofc you use canvas

#

or something similar

solemn latch
#

sadly the amount of control you have is pretty much non existant

earnest phoenix
#

i notice dank does it with their shop

#

so it's possible in some way

#

if you're going this deep into frameworks you might just migrate over to an SPA framework like react or angular, you'll have a much cleaner structure and there's already established frameworks (i personally use material-ui for react) @delicate shore

#

maybe they have blank values they are displaying

#

i can't navigate through your code from how messy it is

delicate shore
#

I-

#

i am about to di e

#

die

earnest phoenix
#

:+1:

#

I saw a tutorial online and it had this line of code:

var WH = process.argv[4] || 4;

Why is || there in a variable declaration even though it is a comparison operator in JavaScript

faint prism
#

can there be more than one body elemt?
@delicate shore Wouldn't make sense to

<html>
  <head>
    <!--All your script,css, metadata links-->
  <head>
  <body>
    <!--All your visual stuff-->
  </body>
</html>
slender thistle
#

if process.argv[4] is a falsey value, 4 is assigned instead

solemn latch
#

its actually extremely useful for things where you don't know what your getting

#

for example, in an avatar command
const target = message.mentions.users.first() || message.author
will get a mentioned user if there is one, or get the author of the message if there isnt one

earnest phoenix
#

ooohhh

solemn latch
#

then you dont have to if else everything

earnest phoenix
#

ooohhh

solemn latch
#

or in cases of default values
const cooldownAmount = command.cooldown || 3

will get the cooldown from the command, if there isnt one, itll default to 3 seconds.

#

lots of little uses

earnest phoenix
#

Cool

faint prism
#

JS has odd syntax

earnest phoenix
#

Yep

#

That's why I asked

lusty lintel
#

dude

faint prism
#

How would I implement that in C#?

lusty lintel
#

can I give donation

faint prism
#

command?.cooldown != null ? coolDownAmount = command?.cooldown : coolDownAmount = 3 maybe?

slender thistle
#

what the fuck?

#

I thought you could do s = q || a in C#?

faint prism
#

Never have before

#

Maybe I just don't know that syntax

#

Ik you need to be careful to avoid null references

earnest phoenix
#

Is it a TERRIBLE idea to use JSON instead of a database package

#

I tried to

faint prism
#

I thought you could do s = q || a in C#?
@slender thistle You can do
bool s = bool q || bool a
but if it was anything other than boolean datatypes, I don't think so

slender thistle
faint prism
#

πŸ™‚

solemn latch
#

Json databases are known for being unstable.
In order to make a json database stable ish, you'd have to put in more work than just using a normal database.

slender thistle
faint prism
#

c'mon
@slender thistle Convert from 0 or 1?

slender thistle
#

0 to a boolean

faint prism
#

hm

#

bool.Parse(int)?

slender thistle
#

(bool)0 doesn't work πŸ˜‚

faint prism
#

bool class might have a parse extension

slender thistle
#

What does bool.TryParse expect?

faint prism
#

bool.TryParse(object, out bool varName)

slender thistle
#

oh shit, forgot out

earnest phoenix
#

Json databases are known for being unstable.
In order to make a json database stable ish, you'd have to put in more work than just using a normal database.
@solemn latch i wanna use the database in other programming languages too

restive furnace
#

(bool)0 doesn't work πŸ˜‚
thats C type cast, ofc not, but you dont need to even do that in C/++

slender thistle
#

.......

#

it's expecting a string?

faint prism
#

TryParse returns a bool on if Successfully Parsed or failed, out is the actual output

solemn latch
#

Most databases work with the vast majority of popular languages @earnest phoenix

faint prism
#

it's expecting a string?
@slender thistle I saw that lmaooo

solemn latch
#

Or can be implemented anywhere

earnest phoenix
#

Most databases work with the vast majority of popular languages @earnest phoenix
@solemn latch mongoose included?

faint prism
#

Just don't try to cast

#

use a Ternary operation

slender thistle
#
        string xs = "false";
        int x = 0;
        if (bool.TryParse(xs, out bool yeet)) {
            x++;
            Console.WriteLine(x);
        }
        else {
            x--;
            Console.WriteLine("gay");
        }
#

returned 1 aka true

faint prism
#

bool result = someInt == 1 ? true : false

restive furnace
#

how you would do that in C btw ^? ok quick google search covered that up

slender thistle
#

why did I think that was double assignment

faint prism
#

because inline Ternary operations look weird πŸ˜›

slender thistle
#

oh right

#

πŸ˜‚

faint prism
#

also

#

that code block may be incorrect

#

the if(TryParse()) is for if it parsed successfully or not

#

bool yeet is the resulting parsed string to bool

slender thistle
#

did it parse like if ParamString == "false" or am I missing something?

#

oh, so I'm supposed to check yeet instead?

solemn latch
faint prism
#
        string xs = "false";
        if (bool.TryParse(xs, out bool yeet)) {
            yeet ? Console.WriteLine("YEH") : Console.WriteLine("NAH");
        }
        else {
            Console.WriteLine("Parse failed");
        }
slender thistle
#

Oh

faint prism
#

Or something like that

#

maybe ternary wasn't appropriate there

slender thistle
#

But how would parsing it fail and bool returned false?

#

wouldn't that mean the "true" branch just won't run?

#

I can't English tonight, excuse me

faint prism
#

Not sure what you mean exactly lol

#

TryParse returns 2 things

slender thistle
#

Why would yeet ? Console.WriteLine("YEH") : Console.WriteLine("NAH") run if parsing failed?

earnest phoenix
#

I wanna make a welcome text on my server. its a private bot.
@earnest phoenix dm the user bruh

faint prism
#

TryParse's signature is for if parsing operation is successful
The output or out is the actual bool.Parse(string)

earnest phoenix
#

member.send("yo");

golden condor
#

Should I try learn c#?

earnest phoenix
#

The simplest you can get

faint prism
#

Why would yeet ? Console.WriteLine("YEH") : Console.WriteLine("NAH") run if parsing failed?
@slender thistle It wouldn't, only if the parsing was successful

earnest phoenix
#

Should I try learn c#?
@golden condor nope

#

Learn JS

golden condor
#

Is java or kotlin worth learning?

faint prism
#

YES

slender thistle
#

I think I'm getting the logic

solemn latch
#

You should then get the channel you want to send to

faint prism
#

C# all the way

golden condor
#

@earnest phoenix fuck off

modest crane
#

Should I try learn c#?
@golden condor yes

solemn latch
#

And send a message to that channel

faint prism
#

I think I'm getting the logic
@slender thistle Read the dotnet docs πŸ˜‰

golden condor
#

So I should try learn c#

slender thistle
#

Implying I'm smart enough to understand, that is πŸ˜‚

golden condor
#

How would I use it on Ubuntu

slender thistle
#

But thanks, will do when I need more help with C#

golden condor
#

Like what program do you recommend

modest crane
#

How would I use it on Ubuntu
.net core

faint prism
#

np

golden condor
#

For editing

modest crane
#

and vs code

faint prism
#

I enjoy how unforgiving C# is πŸ˜›

golden condor
#

Or do I just need the compiler

#

Ok I'll just use my normal editor

solemn latch
#

Look at the docs

slender thistle
#

I can already see how unforgiving it is πŸ˜‚

golden condor
#

C# seems nice

earnest phoenix
#

in server
@earnest phoenix that's a little more complex but the main bulk is to get a config command with a welcome channel set and a welcome message (if you wanna copy MEE6) then just do bot.channels.cache.get("welcome channel id").send("welcome message with user ping");

slender thistle
#

I remember slapping LINQ queries everywhere in my C# assignments instead of doing everything manually

golden condor
#

Is jvm any good to learn?

slender thistle
#

that's how lazy I was

faint prism
#

Linq is great

earnest phoenix
#

Java sucks hail JavaScript

golden condor
#

Shut up

faint prism
#

Java isn't anything like JS lol

earnest phoenix
#

Lol

modest crane
#

wut

golden condor
#

Other languages exist

slender thistle
#

Java Virtual Machine (JVM) is a engine that provides runtime environment to drive the Java Code or applications.
sooooo uhhh

faint prism
#

Java is more like C#

slender thistle
#

Do you mean "should I learn Java"

golden condor
#

Yeah

#

Lol

quartz kindle
#

jvm is to java like node.js is to javascript

earnest phoenix
#

umm maybe

slender thistle
#

honestly depends on your use case

faint prism
#

Java sucks though I don't like it (my opinion)

sudden geyser
#

Java is okay

golden condor
#

I want to try c# or java, which should I go for?

sudden geyser
#

I like Kotlin more though

faint prism
#

dotnet all the way

earnest phoenix
#

Java sucks though I don't like it (my opinion)
@faint prism aWeSoMe GrAmMaR

faint prism
#

ikik

slender thistle
#

I intend to use C# for actual software like applications but WPF is pain in the ass to do as a beginner

quartz kindle
#

wait i have a meme for this convo

faint prism
#

Nahhh

earnest phoenix
#

Lol

faint prism
#

I intend to use C# for actual software like applications but WPF is pain in the ass to do as a beginner
@slender thistle Let me do a tutorial sometime for you

delicate shore
#
            <span class="navbar-logo">
              <amp-img
                href="https://cdn.glitch.com/df08f666-9280-420d-aa1e-87390a682bb0%2Frishtpushtlogo-90x74.jpg?v=1597248211629"
                layout="responsive"
                width="54.72972972972973"
                height="45"
                alt="Rishtpusht"
                class="mobirise-loader"
              >
                <div placeholder="" class="placeholder">
                  <div class="mobirise-spinner">
                    <em></em>
                    <em></em>
                    <em></em>
                  </div>
                </div>
              </amp-img>
            </span>```
quartz kindle
golden condor
#

Python seems to be becoming big

faint prism
#

I enjoy teaching

delicate shore
#

this is not working

#

but it is better than before

#

now it says a picture icon and rishtpusht along iwth

slender thistle
#

I don't intend to use Python for anything other than Discord bots

golden condor
#

Should I try c# or java/kotlin?

earnest phoenix
#

I hate Python it is too slow

delicate shore
#
            <span class="navbar-logo">
              <amp-img
                href="https://cdn.glitch.com/df08f666-9280-420d-aa1e-87390a682bb0%2Frishtpushtlogo-90x74.jpg?v=1597248211629"
                layout="responsive"
                width="54.72972972972973"
                height="45"
                alt="Rishtpusht"
                class="mobirise-loader"
              >
                <div placeholder="" class="placeholder">
                  <div class="mobirise-spinner">
                    <em></em>
                    <em></em>
                    <em></em>
                  </div>
                </div>
              </amp-img>
            </span>```
quartz kindle
#

shouldnt use python not even for discord bots :^)

restive furnace
#

try c

delicate shore
#

see this

golden condor
#

Which is better/has more use cases?

delicate shore
#

pls

slender thistle
#

Tim please I'm a lazy ass :^)

earnest phoenix
#

shouldnt use python not even for discord bots :^)
^

quartz kindle
#

xD

#

whats wrong pcgamer

modest crane
#

Should I try c# or java/kotlin?
@golden condor try both

delicate shore
#

@quartz kindle it's not working

golden condor
#

I intend on that

#

Which shall I try first

#

Idk

restive furnace
#

kotlin is like python btw

delicate shore
restive furnace
#

the syntax is similar

delicate shore
#

it keeps doing this

faint prism
#

What about Lisp :3

delicate shore
#

instead of logo

golden condor
#

I'll go c# because java can be weird

faint prism
#

yeah

earnest phoenix
#

Which is better/has more use cases?
I love JS because it makes it easy AF to make a web dashboard for your bot because both use JS and you don't need to do translation (or smth) jazz

faint prism
#

C# ftw

golden condor
#

is the file extension .cs?

delicate shore
earnest phoenix
#

no

sudden geyser
#

Should I try c# or java/kotlin?
@golden condor if you want all the stuff Java has but don't want to use it directly and prefer better syntax try Kotlin. Really you could try both C# and Kotlin and make your decision

golden condor
#

I'm asking a developement question.

delicate shore
#

is the file extension .cs?
asking me?

faint prism
#

yes

golden condor
#

No

modest crane
#

is the file extension .cs?
yes

delicate shore
#

;-;

golden condor
#

Ok

earnest phoenix
#

Use Kotlin and make an Android app

delicate shore
#

can anyone pls look into my problem πŸ₯Ί

faint prism
#

nah

#

use xamarin with C#

earnest phoenix
#

can anyone pls look into my problem πŸ₯Ί
@delicate shore just ask instead of begging

golden condor
#

I am gonna do both, but I'll do cs first

earnest phoenix
delicate shore
#
            <span class="navbar-logo">
              <amp-img
                href="https://cdn.glitch.com/df08f666-9280-420d-aa1e-87390a682bb0%2Frishtpushtlogo-90x74.jpg?v=1597248211629"
                layout="responsive"
                width="54.72972972972973"
                height="45"
                alt="Rishtpusht"
                class="mobirise-loader"
              >
                <div placeholder="" class="placeholder">
                  <div class="mobirise-spinner">
                    <em></em>
                    <em></em>
                    <em></em>
                  </div>
                </div>
              </amp-img>
            </span>```
#

i did like 6 times

#

scroll up

golden condor
#

mobirise KEKW

delicate shore
#

i know

#

but still

golden condor
#

Just code html my dude

delicate shore
#

i want to do apm

#

amp*

golden condor
#

You can do that in normal html

modest crane
#

mobirise Thonk

faint prism
#

Wish I had perms to screen share in voice channel lol. Code walkthroughs would be fun

delicate shore
#

but still callum

#

did u figure it out?

golden condor
#

Mobirise is littered with watermarks

delicate shore
#

the problem

earnest phoenix
#

hmmmm

golden condor
#

@faint prism you can't?

earnest phoenix
#

Are you tryna make an img element

#

amp-img?????

golden condor
#

You should be able to screen share

earnest phoenix
#

huh

#

href

faint prism
#

nope

golden condor
#

O

earnest phoenix
#

isn't it supposed to be src

golden condor
#

Is it because you have no roles?

faint prism
earnest phoenix
golden condor
#

I can add you to my bot if you want

faint prism
#

yeah

#

my bad

delicate shore
#

Are you tryna make an img element
@earnest phoenix yes

earnest phoenix
#

Cc

#

Are you tryna make an img element
amp-img?????
huh
href
isn't it supposed to be src
@delicate shore try that

delicate shore
#

;=;;

#

ok

earnest phoenix
#

pretty sure href is for a elements

#

and src for img

viral iris
#

how to compare the build, and when the build changes send image ?

earnest phoenix
#

???

#

Sorry but we can't understand your English, maybe try asking in some other language in #memes-and-media

viral iris
#

huh

vapid bluff
#

Hey

#

I have a question

earnest phoenix
#

shivaci once told a guy to come to shitpostfor support in other languages so

viral iris
#

idk how to compare the build and when the build changes send image 😐

earnest phoenix
#

TheKidEdits what's your question

quartz kindle
#

what build

#

lmao

earnest phoenix
#

Hey
I have a question
What's your question

viral iris
#

πŸ™‚

vapid bluff
#

@earnest phoenix So, My question is that, I want the bot to add reactions and when a user clicks a reaction, It switches to another embed

#

Like CarlBot

earnest phoenix
#

Try smth like message.awaitReactions

faint prism
#

Reaction event handler

vapid bluff
#

Like, If you click ➑️ It switched to next page

#

Can I have a link to it

earnest phoenix
#

The edit part is easy

#

The message.awaitReactions is a little hard

#

Can I have a link to it
why not search it up yourself

#

me always clicks the terrible tutorials

faint prism
#

Keep a collection of pending message Ids or something

quartz kindle
#

tip: use a custom emoji, not a default one

#

and use partials

earnest phoenix
#

Like, If you click ➑️ It switched to next page
@vapid bluff same

#

i use that system

#

works prefectly

#

tip: use a custom emoji, not a default one
permission missing for fuckinf help command KEKW

quartz kindle
#

just give it perms with the invite url lul

earnest phoenix
#

just give it perms with the invite url lul
The guy who added changes the URL permissions query lul

quartz kindle
#

if you dont do that, well, you should lol

earnest phoenix
#

can i ask a question in a fancy way
owo what's this in javascript

quartz kindle
#

a reference to the current context

#

can be anything, depending on other stuff

earnest phoenix
#

so if i do this inside bot.on() then it will reference bot?

faint prism
#

If it's inside the bot class. ||Idk JS :)||

misty sigil
#

||lmao what||

earnest phoenix
#

mattthew FTW

#

quicko ask a development question so mods don't kill us

#

bot.on === client.on right?

#

like simmalar

#

No

#

Not always

misty sigil
#

Depends

earnest phoenix
#

If you defined client as bot then

misty sigil
#

if bot = Discord.Client() yes

earnest phoenix
#

The name can be changed

#

Even to owo

misty sigil
#

if bot = "gneusregursh" then no

earnest phoenix
#

LOL

#

owo

#

And it'll still work

#

why would u do that

#

owo.on

#

strife.on

misty sigil
#

lmao why not

earnest phoenix
#

sounds epic

misty sigil
#

i could do c.on

earnest phoenix
#

ye

misty sigil
#

just anything my client is declared as

solemn latch
#

Owo.on("owo"

quartz kindle
#

if you console.log(this) inside a bot.on("bla", something => {}), you get the global context because there is no context, and arrow functions do not have their own context
if you console.log(this) inside a bot.on("bla", function(something) {}) then you get your bot client, because a regular function has its own context

earnest phoenix
#

WoW

golden condor
#

So I want to start learning c#, what do I need to install on my system

#

(using ubuntu)

faint prism
#

So I want to start learning c#, what do I need to install on my system
@golden condor dotnet sdk

golden condor
#

On

#

*ok

faint prism
golden condor
#

Allow me to just boot it up

#

Ok installing

faint prism
#

You can build, test, publish, and even run C# code with the dotnet package

earnest phoenix
#

Since new discord.js giveaway function is difficult

#

i made it today

#

finally

golden condor
#

@faint prism how do I run it? Is it dotnet ?

faint prism
#

ye that's the command

golden condor
#

Ok

#

Ty

faint prism
#

after the package is installed

#

np

golden condor
#

Worked

earnest phoenix
#

What is an npm package

faint prism
#

What is an npm package
@earnest phoenix Bad code someone else made, that you shouldn't be using, but you couldn't be fucked to write yourself

earnest phoenix
#

lul reactions on Callum's message

solemn latch
#

discord.js is an npm package

#

for example

earnest phoenix
#

Bad code someone else made, that you shouldn't be using, but you couldn't be fucked to write yourself
@faint prism lol what

faint prism
#

You asked, lol

earnest phoenix
#

lol

faint prism
#

A lot of bad code on npm

earnest phoenix
#

that was funny but ain't helpful

faint prism
#

It's code other people make

#

That you can use

solemn latch
earnest phoenix
#

ewww

golden condor
earnest phoenix
#

compact

solemn latch
#

eww, only seeing 10 messages at once

faint prism
#

@golden condor dotnet new console -o myNewProject/
Will scaffold out a console app project

golden condor
#

what

earnest phoenix
solemn latch
#

true

golden condor
#

eww, only seeing 10 messages at once
@solemn latch it's an ss

#

i didn't show all

solemn latch
#

i meant non compact

earnest phoenix
#

i don't wanna look like I'm minimodding but i get too angry at smol stuff so just deal with it

#

Also

#

What is a node module

silk quail
#

Uu hi

#

Lol

earnest phoenix
#

Lol

golden condor
silk quail
#

Lol x2

modest crane
#

you also need the sdk

golden condor
#

ok

#

will do

earnest phoenix
#

What is a node module

drifting wedge
#

what do you guys think about making a minecraft wiki thing?

#

for my bot?

#

i think its a good idea lol

earnest phoenix
#

Cool

faint prism
#

Good idea

solemn latch
#

i think your focus should be learning python first

drifting wedge
#

coulndt find any other bots

#

@solemn latch

#

yes i should

#

w

modest crane
drifting wedge
#

and i am trying lol

earnest phoenix
#

Anything helpful === community will appreciate it

solemn latch
#

node modules come in a few forms
packages are modules, you can also make your own.

earnest phoenix
#

Cool

#

I'll make mine

#

Someone said he made his own discord libary is that possible?

quartz kindle
#

node's ecosystem has too many shit packages tho lmao

solemn latch
#

yeah

earnest phoenix
#

Someone said he made his own discord libary is that possible?
@earnest phoenix of course

#

discord.js

#

is that difficult

#

and tim made discord.js-light

#

is that difficult
@earnest phoenix of course NOT

#

he said he made his own OP

#

If you try then it's easy

#

with cool stuff

misty sigil
#

OP?

silk quail
misty sigil
#

whats an OP MegaThonk

silk quail
solemn latch
#

Operator

earnest phoenix
#

thonkku OP???

solemn latch
#

its op

quartz kindle
#

overpowered

silk quail
solemn latch
quartz kindle
#

original poster

misty sigil
#

thank you tim

silk quail
#

Binod lol

earnest phoenix
#

overpowered
@quartz kindle thanks for kinda ruining the joke

silk quail
#

πŸ˜‚

quartz kindle
#

im op

silk quail
misty sigil
#

yes you are KEKW

silk quail
#

πŸ˜‚ πŸ˜‚

earnest phoenix
#

owo what's this the difference between .mjs extension and .js extension

quartz kindle
#

js is known as commonjs, it uses the regular requires and old way of doing stuff

misty sigil
#

mjs is some new fancy js afaict

quartz kindle
#

mjs is known as ecma modules, it uses import instead of require and a ton of different things

earnest phoenix
#

ecma?

misty sigil
#

yes

earnest phoenix
#

mjs is known as ecma modules, it uses import instead of require and a ton of different things
So that's why using require throws a reference error in .mjs files

quartz kindle
#

yup

earnest phoenix
#

f

#

also

#

i probably can't use require to get stuff other than variables right

quartz kindle
#

you can get anything

#

as long as you export it

earnest phoenix
#

huh

#

i tried function REEEEE = require("REEEEE"); but it doesn't work or maybe the syntax is wrong or maybe i am a dumbass

solemn latch
#

do you have a module named REEEEE

earnest phoenix
#

lmfao that was for just demonstration

#

i did have a module named smth else

#

and i referenced the file path correctly too

quartz kindle
#
let REEEE = require("REEEE");
console.log(REEEE("bla")); // bla5

// REEEE.js
module.exports = function(a) {
  return a + 5;
}
earnest phoenix
#

Of course

glass steeple
#

I'm using guild.roles but it's saying guild not defined

#

can anyone help

quartz kindle
#

you're either not getting the guild from anywhere or you're trying to get a guild where it doesnt exist

#

show code for context

dire obsidian
#

Can i host a bot on a potato?

split goblet
#

Validation errors:

This application has been inorganically grown, so we cannot accept your application for verification at this time.

misty sigil
#

ok

split goblet
#

Unfortunately I couldn't get a developer tag :( I already have the 76 discord and nothing

dire obsidian
#

Ghost servers?

digital ibex
#

you need to wait for a response from discord

modest crane
#

not really

#

Q: I received an "inorganic growth" error when I attempted to verify my bot. What does this mean? How do I resolve this?

If you're seeing an inorganic growth warning when attempting to verify, that means we determined that a significant number of the servers your bot is in are owned by the same user or set of users. This is considered inorganic and disqualifies a bot for verification. You will need to examine your bot's guild membership and work to fix this issue before being eligible to apply for verification.

Note that our Support team cannot typically undo this flag, and you will need to work to fix this issue on your own.

pure lion
#
    if (!botID || !await client.users.fetch(botID).catch(console.log) || !await client.users.fetch(botID).bot) return

it always returns, even if its a valid bot ID that belongs to a bot

split goblet
#

they said if I don’t answer by October 7th, I don’t know what it’s going to be, I just know I got the 76 disagreements.

amber fractal
#

can you even .catch an awaited promise?

pure lion
#

yeah

sonic lodge
#

i dont think you can use await like that

#

not exactly too sure

solemn latch
#

what even does !await mean

#

dont await? KEKW

misty sigil
#

lmao

quartz kindle
#

you cant !await bla, you need to !(await bla)

modest crane
#

they said if I don’t answer by October 7th, I don’t know what it’s going to be, I just know I got the 76 disagreements.
@split goblet you need to search for ghost servers or multiple servers with the same owner, then make the bot leave that servers

split goblet
#

People have some official member of discord on that server?

opal plank
#

who needs Sync code when you can !await everything? WeSmart

pure lion
#

oh ty tim

#

lmao

solemn latch
pure lion
#
if (!botID || !(await client.users.fetch(botID).catch(console.log)) || !(await client.users.fetch(botID).bot)) return

still invalid

split goblet
#

@split goblet you need to search for ghost servers or multiple servers with the same owner, then make the bot leave that servers
@modest crane As well?

modest crane
#

People have some official member of discord on that server?
no, discord can get info about the servers your bot is in

#

just do what i said

solemn latch
#

for example, if you or someone spam created a bunch of servers, and invited your bot. its inorganic growth

pure lion
#

heh

split goblet
#

Entendi

#

I created several servers to get 75 hahaha I regret it :(@modest crane

pure lion
#
User {
  id: '718932190112776203',
  bot: true,
  username: 'aleBot',
  discriminator: '9340',
  avatar: 'f3dec8acd0c00aff08ad3380aec7060c',
  flags: UserFlags { bitfield: 0 },
  lastMessageID: null,
  lastMessageChannelID: null
}

so this is logged after i do the promise ting so the .bot thing doesnt work either

#

for sOme reason

split goblet
earnest phoenix
#

@pure lion show code

pure lion
#

nvm we good

#

:D

solemn latch
#

perfectly done, dont need to add any other elements or css

pure lion
#

shut up

#

Poo

#

im new to front end

split goblet
#

AlguΓ©m br

solemn latch
#

joking :p

pure lion
#

anyway what does your frontend look like woo

#

x)

solemn latch
#

terrible

pure lion
#

still better than mine

solemn latch
quartz kindle
#

@pure lion (await bla).bot

#

otherwise you're doing Promise.bot

pure lion
#

ah got it

#

also i fixed

#

im excited for my botlist lmao

#

@solemn latch assuming it has oauth2 flow n shit

loud horizon
#

Can anybody tell me how do i set a status for my bot

#

I forgot

quartz kindle
#

if its not in this server, then it was kicked. check #mod-logs

solemn latch
#

i think eren approved your bot, might want to talk to them, because im not seeing here

quartz kindle
#

did you check modlog?

#

what is your bot's id?

misty sigil
#

@visual shale

#

should be here

#

it wasn't kicked

quartz kindle
#

hmm yeah then ask mods

oak cliff
#

it looks like it was approved but missed being invited

#

ill get it here :)

#

invited :)

earnest phoenix
#

how do i invite my bot to this server

oak cliff
#

-faq 1

gilded plankBOT
solemn latch
sonic lodge
#

that happens if the message was sent in dms

solemn latch
#

you also probably should check if its a command first

#
if(command){
things you need for the command
}

not

things you need for the command
if(command){
}
sonic lodge
#

message.member is null in your case because the bot received a message to its dms, not from the server

solemn latch
#

you need to check if your in a server before doing sever specific things

sonic lodge
#
if (message.guild) {
  // the message was sent in a guild channel
}```
#

are you confused

opal plank
#

can always check channel type too

quartz kindle
#

or just do if(!message.member) return

opal plank
#

or that

sonic lodge
#

the error: TypeError: Cannot read property 'roles' of null

#

you are getting this error because message.member is null

#

therefore you need to check if the message.member is not null before continuing

solemn latch
#

your still using message.member before the check

pure saddle
#

bruh

solemn latch
#

see, using message.member.roles before the check

sonic lodge
#
if (!message.member.roles.cache.find // ...
//   ^^^^^^^^^^^^^^ you are still using message.member here as if it weren't null
  if (!message.member) return;
// move this statement before "!message.member.roles.cache.find"
if (!message.member) return;

if (!message.member.roles.cache.find // ...
remote hull
#

does anyone know how to set up the thing on your discord server where you react to an emoji and it unlocks a new catagory?

solemn latch
#

you mean, how make a bot that does it? or how to use a bot that does it?

remote hull
#

use a bot

solemn latch
#

you should really learn js basics before making a bot

remote hull
#

some one in a diffrent channel sent me here

pure saddle
#

you should really learn js basics before making a bot
^^

solemn latch
#

yeah, he misunderstood what you wanted @remote hull
you should go to the bots support server for help with the bot.

pure saddle
#

learn js basics

quartz kindle
#

@earnest phoenix checking should be the first thing you do

remote hull
#

@solemn latch where is that

solemn latch
thick gull
#

he needs the how2search

solemn latch
#

yeah, too lazy to go find it

#

rip lack of commands for users

oak cliff
#

-how2search

gilded plankBOT
#

To find a bot that you need please try searching on the website the main feature you need. You may need to refine your search term, but with just a little effort you can find the bot you need. If you still haven't found a bot that suits your needs, then try searching google for it.

earnest phoenix
#

How is topgg’s search feature made?

thick gull
#

some guy is sitting down and when a search query happens he compiles a list of bots

#

ctrl f in the json db

golden condor
#

Lmao

#

When a bot is added

#

He manually adds it to the queue

opal plank
#

does D.js has a way to handle upload emojis or am i gonna have to manual request em? 002_think

#

havent found anything on the docs

golden condor
#

you can upload emojis

opal plank
#

well yeah that bit i know, but you got a doc on it?

golden condor
#

Sec

misty sigil
#

<guild>.emojis.create

misty sigil
#

ty woo

opal plank
#

ty

golden condor
#

GuildEmojiManager#create

#

Gosh darnnit you beat me

#

Fuck being on mobile

solemn latch
#

yeah, feels bad when people beat you

#

go to paste it, just as you do someone else pastes it

golden condor
#

I had just loaded the page

solemn latch
#

was supposed to add an ai to my battleship game today, but i just cant find the motivation pandasad

opal plank
#

also related, any way to check avaliable slots?

golden condor
#

Uh

opal plank
#

well all this i can do via axios

golden condor
#

I suppose

opal plank
#

but just wondering if d.js has it

golden condor
#

You can check how many emojis you've used

solemn latch
#

the only way to get more slots it by nitro boosts right?

golden condor
#

Yeah

solemn latch
#

then youd have to look at the number of boosters

golden condor
#

Yeah

solemn latch
#

compare to the number of emoji's currently

golden condor
#

It's easier than making a raw request

opal plank
#

wait wait

#

boosters returns emoji count?

golden condor
#

You can look at the level

#

No

#

We explained

#

@solemn latch just use .premiumTier

solemn latch
#

level 0 servers have 50 slots
level 1 100 slots
level 2 150
level 3 250

opal plank
#

well yeah that bit im aware

#

though im still unsure how i'd get the count for animated/png ones

#

cache i assume?

#

and filter isAnimated() ?

solemn latch
#

does animation affect number of slots?

opal plank
#

guild.emojis.cache => filter a => a.isAnimated()

#

50 animated, 50 static

#

i i were to upload an animated emote and all 50 are used but not the normal ones i'd get an error

solemn latch
#

hmm

#

yeah, probably filter the counts

#

or maybe reduce

opal plank
#

that'd be another way too

#

get count and then deduce from the total

#

aight, thats it, ty yall

solemn latch
#

honestly surprising its such a pain