#development

1 messages · Page 1113 of 1

umbral pollen
#

how to fix it ??

honest perch
#

@umbral pollen basic js

earnest phoenix
surreal notch
#

的好看到她们的话

umbral pollen
#

@honest perch i am still learning it

earnest phoenix
#

@surreal notch Where are you from?

umbral pollen
#

@honest perch pls help me

surreal notch
#

@earnest phoenix lol

honest perch
#

it says your issue

#

SyntaxError: Unexpected token {

earnest phoenix
#

@surreal notch 대답해 병신아

surreal notch
#

I don't know Chinese I just typed something

#

从未有过这种事业力了

faint prism
#

Korean I think

umbral pollen
#

@honest perch i know that it is a token error but how to fix it ??

surreal notch
#

@umbral pollen Google it first

#

😐

earnest phoenix
#

Asian

honest perch
#

@umbral pollen by getting rid of it

#

@sinful belfry

earnest phoenix
#

stop posting random pics here

#

this channel is english only

honest perch
#

can you tell this guy

earnest phoenix
#

No•1

faint prism
#
  1. Speak english. This way everyone can understand you. It is our lingua franca after all.
    #rules-and-info @earnest phoenix
surreal notch
sinful belfry
#

@earnest phoenix wrong channel

earnest phoenix
#

petition to add an iq test before joining the server

surreal notch
#

🤣 😂

earnest phoenix
#

Asian

#

No.1

sinful belfry
#

@earnest phoenix last chance

surreal notch
#

@earnest phoenix oliypls

earnest phoenix
#

Okay

sinful belfry
earnest phoenix
#

Yes

surreal notch
#

Petition accepted

honest perch
#

@sinful belfry he left lmao

tight plinth
#

bruh

slow fable
#

botghost sucks

#

lmao

#

but anyways i added a fake Listening to botghost status for my bot

dull badger
quartz kindle
#

activate your windows

dull badger
#

bruh

faint prism
#

I just realized the activate watermark isn't on my screen today. Nice

sudden geyser
#

activate linux

faint prism
#

activate a kernel

sudden geyser
#

onlyfx the error is sort of self-explanatory: the file cannot be parsed

quartz kindle
#

the problem is outdated node version

#

@dull badger is that glitch?

dull badger
#

yes

quartz kindle
#

you need to set node v12+ in your package.json engines

dull badger
#

ok

restive furnace
#

activate your windows
switch to linux for PEACE

#

aka no forcing you to activate anything

quartz kindle
#

activating windows is easy tho

lusty quest
#

not needed

#

not needed

dull badger
#

ye but i cant be busy with it

lusty quest
#

it only unlocks some customisation (win10 home)

quartz kindle
#

and most computers these days come with a windows key embedded in the bios, so you dont even need to (as long as you stick to the original edition)

delicate shore
#

is this web scrapping

#

this

sudden geyser
#

I don't know about that rank stuff though

delicate shore
#

which api

restive furnace
#

its not public

#

mods madr that bot

lusty quest
delicate shore
#

@restive furnace it is oublic

#

public*

#

i added in my server

restive furnace
#

getting votes isnt

#

from other bots

sudden geyser
#

yes it is I think

lusty quest
restive furnace
#

from there yes ^

delicate shore
#

Api button not working

#

there

restive furnace
#

just scrape CatShrug

lusty quest
#

then the API is not puplic for now

delicate shore
#

;-;

#

ok

quartz kindle
#

holy shit pokemeow is at 66k

#

it was like at 15k last month

lusty quest
#

this bot is exploding

weak rain
#

why - ping is bad

lusty quest
#

-ping or - ping?

pliant gorgeBOT
#

dslWaddle I'm alive!!!

lusty quest
#

interestening

quartz kindle
#

wait what

weak rain
#

minus ping

lusty quest
#

its a bug

weak rain
#

less than 0

lusty quest
#

happened to me usually when i host the bot on my PC

quartz kindle
#

why is DSL allowed to post here

#

lmao

lusty quest
#

my bot was running with -200ms off my pc

restive furnace
#

luca is allowed too

quartz kindle
#

ye but DSL kinda does nothing

#

lul

lusty quest
#

it just sends statistics to DBL

quartz kindle
#

i mean, no useful commands for users

dull badger
mild flower
#

if (!message.guild.me.hasPermission("SEND_MESSAGES")) return message.author.reply('Please give me permissions to send messages.')
This doesn't seem to be working and is causing an unhandled rejection error?

dull badger
#

whats eror

#

error

restive furnace
#

hasPermissions.

dull badger
mild flower
#

UnhandledPromiseRejectionWarning: Unhandled promise rejection.

lusty quest
#

run it in a try / catch block so you wont get the rejection

mild flower
#

k

lusty quest
#

but better fix the code. this helps more

dull badger
restive furnace
#

HOOPS is undefined...

#

probably

dull badger
#

no

#

i tryed to my token

#

but also error

lusty quest
#

either pass a string or a Value with token attached

#

did you name you client client or bot?

#

(client = new Discord.Client())

mild flower
#

hasPermissions is also not working

restive furnace
#

i think HOOPS is not defined

#

do you know what "strings" are?

#

^ to OnLy

mild flower
#

if (!message.guild.me.haspermissions("SEND_MESSAGES")) return message.author.reply('Please give me permissions to send messages.')
changed it to permissions no effect still

sudden geyser
#

OnlyFX you can hover over the red dot by the way

mild flower
#

oh wait

lusty quest
#

try permissions.has()

mild flower
#

i think i figured it out

#

try permissions.has()
no

blazing portal
#

if (!message.guild.me.haspermissions("SEND_MESSAGES")) return message.author.reply('Please give me permissions to send messages.')
changed it to permissions no effect still
@mild flower Because it's hasPermission and not haspermissions

mild flower
#

does capitalization really matter?

lusty quest
#

yes

blazing portal
#

yes

still merlin
#

Yes

lusty quest
#

did your IDE doesnt cry about it?

quartz kindle
#

rhythm reached 10 million servers

#

lmao

lusty quest
#

its scary. 10 Million servers and a shitton of shards

restive furnace
#

mee6 has 7 million

blazing portal
#

Accordign to Rythms website its 8 mil, where do you get the 10 from @quartz kindle ?

lusty quest
restive furnace
#

by inviting

lusty quest
#

nvm wrong link

quartz kindle
#

also

blazing portal
#

Ah, ty

restive furnace
#

mee6 is custom python? really? didnt know that...

#

and yagpdb is go, nice

quartz kindle
#

is it just me or is tatsu declining?

#

feels like everyone is bored of tatsu lol

mild flower
#

oh my gawsh

#

im such a big derp

#

it wasnt working

#

cus i was using message.author.reply instead of send

#

worked

#

now

quartz kindle
#

it will still throw errors if the user has DMs blocked

mild flower
#

yes

#

i put a .catch on the message.author.send

#

wait

gaunt schooner
#

entrate in vocale

mild flower
#

is there a way to send a dm to the server owner?

restive furnace
#

guild#owner.send

quartz kindle
#

you need to fetch the owner first

mild flower
#

welp

#

is there any better way to inform taht the bot doesnt have permissions to send messages?

olive narwhal
#

@quartz kindle how do you create bot?

#

i know how to code though

#

@quartz kindle

mild flower
#

@quartz kindle how do you create bot?
@olive narwhal go to ur discord applications and create a new aplpication

olive narwhal
#

ok thx

#

how do i add it to the bot list

quartz kindle
#

that triple ping lol

mild flower
#

anyways

olive narwhal
#

?

#

how do i add it to the bot list

quartz kindle
#

you code it first

mild flower
#

like can u not

olive narwhal
#

oh ok

quartz kindle
#

you only add it to the list once its working

mild flower
#

chat about creting bot here

#

ahem

silver dust
#

finished my bot

#

and applied

#

hope it gets approved

mild flower
#

is there any better way to inform that the bot doesnt ahve message perms than dmming the person that wrote it?

quartz kindle
#

the best way is to simply ignore it

#

the person should figure it out themselves

mild flower
#

but then what bout the unhandled promise rejections?

lusty quest
#

catch the error and send a message into the channel that the bot is unable to DM the user

quartz kindle
#

you catch them

sinful sorrel
#

any one can help me

#

(node:4388) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '0' of undefined

mild flower
#

catch the error and send a message into the channel that the bot is unable to DM the user
it wont have perms to send messages

blazing portal
#

as tim said, ignore it

mild flower
#

what about UnhandledPromiseRejectionWarnings then?

blazing portal
#

as tim said, catch it xD

mild flower
#

...

sinful sorrel
#

(node:4388) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '0' of undefined

lusty quest
#

message.author.send().catch(error => console.error(error), message.reply("No Permissions to DM you")) @mild flower this does both. it acknowledge the error and notify the user that it wont work

mild flower
#

i guess ill log it in my bot testing sserver

#

message.guild.me.hasPermissions is not a function???

#

wut

sinful sorrel
#

(node:4388) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '0' of undefined can anyone help me?

#

plss

lusty quest
#

@sinful sorrel your code?

sinful sorrel
#

wait

restive furnace
#

im just doing that, i declare the embed object (yes, my help menu is embed) and then just send to the author, if promise was rejected, then send in the channel, ez.

lusty quest
#

doesnt work with all commands

#

like i have a privacy-policy command that also sends the stored data from the user with it

restive furnace
#

it does?

#

just do like you would directly do it

sinful sorrel
#
        if (isNaN(args[0]))
            return message.channel.send("you need to send link..");
#

this is my code

#

@lusty quest

mild flower
#

how do i tell if a variable has over 120 letters

lusty quest
#

args is not defined

blazing portal
#

message.guild.me.hasPermissions is not a function???
@mild flowerhasPermission

mild flower
#

ye i fixed that

blazing portal
#

kk

sinful sorrel
#

args is not defined
@lusty quest how i fix

lusty quest
#

define args

sinful sorrel
#

var args = message.content.slice(prefix.length).trim().split(' ');

#

i added this

#

but still the same

blazing portal
#

how do i tell if a variable has over 120 letters
@mild flower if you mean a string, if(string.length > 120)

sinful sorrel
#

@lusty quest

#

sorry ping

mild flower
#

if (String.length(giveawayPrize > 120))

#

will this work

#

oh nvm

lusty quest
#

what is your output if you log your args?

sinful sorrel
#

what do you mean

mild flower
#

TypeError: String.length is not a function

faint prism
#

giveawayPrize.length > 120

mild flower
#

oh

faint prism
#

length is a property of an instance of the type String. Not a static function on its own.

delicate shore
#

hey

#

i need help

#

i accidently added

#

11 song listeners

#

but if i remove any of em it does not work at all

faint prism
#

I don't understand the issue

delicate shore
#

i am using npm package

#

called distube

faint prism
#

When you say,

accidently added
Do you mean that you need to undo the change?

delicate shore
#

this is what i mean

lusty quest
#

make sure you not nested events on accident

delicate shore
lusty quest
#

yea i look at it already

#

your code?

delicate shore
restive willow
#

making a bot called Justice: what would a good prefix be? i need it to be space-separated (like dank memer's pls)
ideas: jc justice jst jce j just

lusty quest
#

i dont get why you get so many canceled events

delicate shore
#

Yeh

#

so what should i do

i dont get why you get so many canceled events
@lusty quest

lusty quest
#

¯_(ツ)_/¯

delicate shore
#

;-;

lusty quest
#

i never used the package and dont really care about music bots

#

maybe its a bug in the package

delicate shore
#

@lusty quest how can i limi tit

#

limit it

#

there is something for limiting

#

i cannot recall

lusty quest
#

ask on the Support server for the package

#

i guess they can help you

delicate shore
#

they are not responding

faint prism
#

So if you're subscribing to an eventlistener 11 times, should you unsubscribe to the event listener at some point after using it?
Not to familiar with event handlers and delegates tbh

cinder patio
#

yes, you should remove the event listener if you don't want to listen to anymore events

delicate shore
#

how

#

i am not good at events either

#

({ limit: 1})

#

can i use something like this

faint prism
#

look where in your code you are subscribing to the event listener

olive narwhal
#

@quartz kindle what’s your bot??

lusty quest
#

@autumn widget

olive narwhal
#

Thx

delicate shore
#

@olive narwhal just do -bots @quartz kindle in #commands

lusty quest
#

its one of them

delicate shore
#

what was that

#

pls tell

#

my current code

cinder patio
#
const listenerFn = (someFunction) => {...}
client.on("event", listenerFn);

//When you want to remove the listener:
client.removeListener("event", listenerFn);
earnest phoenix
#

hey

#

i developed bot website

#

enjoy with this

#

👍

lusty quest
#

no one with more than 3 braincells will download random files of discord

delicate shore
#

I am not getting it

earnest phoenix
#

this my bot website. same templates

faint prism
#

<![endif]--> ?

#

I downloaded it, but I opened in an editor to check for JS scripts first 😛

#

Still not going to open it in my browser though

lusty quest
#

you know you can embed stuff inside files that launch in the brackground

faint prism
#

Are you saying that for an html file being edited as text?

#

Because I believe that for some files. Like sound files, video files, where the decoding can do some sketchy stuff if a bad actor is exploiting the software reading it

tight plinth
#

so i have a problem with my bot:
I have a json file which contains all english strings, but it seems that if i restart the bot it doesnt get "uncached" and doesnt update. The code to load it uses require, but when i eval "require('../languages/english.json')" the json file is apparently updated. any idea why? sorry if im not clear

lusty quest
#

wired

golden condor
#

Huh

#

That's very strange

delicate shore
#

hey @lusty quest js distube .on("playSong", (message, queue, song) => return message.channel.send( `Playing \`${song.name}\` - \`${song.formattedDuration}\`\nRequested by: ${song.user}\n${status(queue)}` ))

#

if i try this

#

it says unexpected token

#

return

faint prism
#

Sounds like a syntax issue

sand condor
#

remove the return

golden condor
#

Could you try making it a .js file instead?

#

Like module.exports = {}

delicate shore
tight plinth
#

erm, looks like js delete require.cache[require.resolve("./path-to-file"))];
worked

#

hm

#

lemme try doing that

golden condor
#

That might fix it

delicate shore
#

i am not seeing any syntax issue

faint prism
#

I only say that because a compiler referred to syntax characters as "tokens" typically

#

like { is a token

#

' and [ is a token, etc

delicate shore
#

ok

faint prism
#

Making me think, somewhere in there, you might have a missing symbol

delicate shore
#

i think i found the issue

#

it's not what u r talking about

#

but it might be issue

#

leme try

finite nimbus
#
# Mongo db url. (mongodb atlas)  
MONGO_DB_URL=  
```What to do there if i have database with port, host, username, name and password
faint prism
#

🤷‍♂️ I'm not familiar with JS specifically, just a few other languages

golden condor
#

But then it would.throw an error not execute multiple times

delicate shore
#

But then it would.throw an error not execute multiple times
@golden condor saying me

lusty quest
#

@finite nimbus user:password@url:port

earnest phoenix
#

i am use dbb

finite nimbus
#

Okey, thanks 😄

golden condor
#

and mongo:// for local or mongo+srv:// for clusters at the beginning

delicate shore
#

hey i think i almost solved it

lusty quest
#

if you use atlas they give you the entire connection string you just need to fill in your password

delicate shore
#

it now just sends it 2 times

#

how to solve that

#

my new code

#

it sends message two times

#

like this

#

ok nvm

#

@lusty quest it first says 2 then second time 3rd then 4 then 5

faint prism
#

Does this happen for other commands?

delicate shore
#

Np

#

no

#

@faint prism thanks i fixed it

#

i wasn't closing command box

#

like if (cmd=== "play")
code//

#

i forgot to close it with {}

faint prism
#

So a missing token 😛

delicate shore
#

yeh

#

xD

finite nimbus
#

@finite nimbus user:password@url:port
@lusty quest Okey, but i have database on hosting, and i have database name too

lusty quest
#

to define the database add /dbname at the end

#

you use MongoDB Atlas?

finite nimbus
#

Okey, where?
Behind the port?

lusty quest
#

yes

finite nimbus
#

you use MongoDB Atlas?
@lusty quest Idk, i have it on hosting.
Name of database: mo14017_pl-bots
UserName: mo14017_pl-bots
pass: secret :P
port: 27017
Host: mongo.ct8.pl

lusty quest
#

ok

finite nimbus
lusty quest
#

since you use the default port you dont need to define it

finite nimbus
#

ok

lusty quest
#

mo14017_pl-bots:<password>@mongo.ct8.pl/mo14017_pl-bots

delicate shore
#

ok @lusty quest i really need ur help now i tried everything that i could but couldnt solve it

lusty quest
#

ok?

delicate shore
#

ok

#

Super brain it keeps on sending message i am gonna cry

#

it sends same msg 5 times

#

idk why tf

faint prism
#

Should I use a SQLite DB or MongoDB?

finite nimbus
blazing portal
#

if(cry) dont();

finite nimbus
delicate shore
#

;-;

lusty quest
#

remove all event listeners (comment them out) and then enable them one by one until you get mutiple messages. if it happens at the first idk i would guess a bug in the Package

#

@faint prism depends. Tim got SQLite pretty good optimized but if you want to access it via a API use Mongo

delicate shore
#

ok

faint prism
#

Are you directly modifying your production code? @delicate shore

delicate shore
#

wym

lusty quest
#

the answer is probably yes

#

did you edit your bot or a test bot?

faint prism
#

@faint prism depends. Tim got SQLite pretty good optimized but if you want to access it via a API use Mongo
@lusty quest I was trying to use SQLite, and I setup a data access layer/context, but I'm getting a dependancy (missing DLL) on publishing. Unfortunately

delicate shore
#

edit

#

my bot

faint prism
#

You should look into Unit Tests

lusty quest
#

wired. your error auger

faint prism
#

Unit testing my commands is awesome

delicate shore
#

should i regenrate token

#

it may be a bug

#

because in between it stopped

#

then again started

faint prism
#

Unable to load shared library 'SQLite.Interop.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libSQLite.Interop.dll: cannot open shared object file: No such file or directory

#

running on Ubuntu (arm64). Only happens when reading/writing to SQLite db

finite nimbus
#
(node:57133) UnhandledPromiseRejectionWarning: MongoParseError: Invalid connection string
sudden geyser
#

[Python] [discord.py] I have a long docstring for one of my commands and to make it more readable, I obviously use line breaks. However, it causes issues with the default help command adding a line break in a weird location. ```python
@commands.command(brief="Shuts down the bot")
async def shutdown(self, context: commands.Context):
"""The shutdown command shuts down the bot by disconnecting from Discord and closing all processes. It may
take a few seconds to complete the shutdown."""

lusty quest
#

@finite nimbus did you added mongo:// infront?

finite nimbus
#

no

#

But now i added, and still same error

delicate shore
#

😭

lusty quest
#

sry mongodb://

#

mongo was ps command

weak rain
#

Hi

#

i added my friend after I applied for verification

lusty quest
#

and mongodb+srv:// if it is a cluster

weak rain
#

will my friends will still get the badge

lusty quest
#

if he is in your team he will get the badge. but beware currently all team members get Administrator Permission -> they can leak tokens etc

glass steeple
#

i have automates roled for particular channel, members will get roles by sending some message.

i want to stop giving roles as soon as role is given to 20 members, how can i do that?

finite nimbus
#
Connected to the database on mongo://mo14017_pl-bots:pass/mo14017_pl-bots
[2020-08-03 16:26:23] Uncaught Promise Error:
[2020-08-03 16:26:23] FetchError: request to https://discordapp.com/api/v7/gateway/bot failed, reason: Hostname/IP does not match certificate's altnames: Host: discordapp.com. is not in the cert's altnames: DNS:ct8.pl, DNS:forum.ct8.pl, DNS:moa.ct8.pl, DNS:panel.ct8.pl, DNS:pga.ct8.pl, DNS:pma.ct8.pl, DNS:poczta.ct8.pl, DNS:repo.ct8.pl, DNS:s1.ct8.pl, DNS:stats.ct8.pl, DNS:www.ct8.pl
[2020-08-03 16:26:23]     at RequestHandler.execute (/usr/home/Weberowsky/domains/polish-bots.ga/public_html/node_modules/discord.js/src/rest/RequestHandler.js:107:21)
[2020-08-03 16:26:23]     at processTicksAndRejections (internal/process/task_queues.js:97:5)
blazing portal
#

count the amount of roles given

lusty quest
#

add a loop and let it count to 20

glass steeple
#

count the amount of roles given
@blazing portal roles given means?

solemn latch
#

Every time you give the role

#

Count it

glass steeple
#

add a loop and let it count to 20
@lusty quest it's set for on_message

#

how can i set it on loop

lusty quest
#

then add a counter to your add role function

glass steeple
#

how? can u explain?

lusty quest
#

there are many ways for it

#

thats basic js

glass steeple
#

i'm confused

#

i'm using py

lusty quest
#

then idk

solemn latch
#

Also basic py

glass steeple
#

just tell me the logic, i will make it

blazing portal
#

create a variable, increment it everytime a role is given...

glass steeple
#
            await message.add_reaction(":white_check_mark:")
            count + = 1```
#

willit work?

#

role is given by on_reaction

delicate shore
#

yo @lusty quest does this makes sense

glass steeple
#

so eventually we have to give 20 reactions

delicate shore
blazing portal
#

testitandsee

delicate shore
#

it keeps logging same thing

#

again and again

lusty quest
#

i still dont download random files from Discord

delicate shore
#

;-;

#

^^^

lusty quest
#

nice token leak

delicate shore
#

@lusty quest u scared me

#

it is my test bot

#

which is only in testing server

sudden geyser
#

I think there's an IP in there as well

lusty quest
#

yep

delicate shore
#

doesn't matter

#

it's glitch ip

#

theu reset every 24 hrs

lusty quest
#

idk wait until someone on the package discord answers. if they dont look for a other package

delicate shore
#

idk wait until someone on the package discord answers. if they dont look for a other package
@lusty quest
Any suggestions?

#

I want features like echo

#

And etc which they were giving

lusty quest
#

i dont care for music bots so idk

#

worst case write your own package

delicate shore
#

;-;

#

Lmao

quartz kindle
#

what is the problem?

mild flower
#

how do i send a message to a specific channelID?

quartz kindle
#

you dont want those logs?

sand condor
#

what library

lusty quest
#

he has a yt api wrapper but some events are called mutiple times in a row

mild flower
#

bot.channels.cache.get(739833622814654497).send('test')

#

is this correct

sand condor
#

the id has to be a string

#

not a number

mild flower
#

k

#

bot.channels.cache.get('739833622814654497').send('test')}) dis work?

lusty quest
#

try and see

mild flower
#

k

lusty quest
#

if you get a error make sure the channel is cached

quartz kindle
#

channels are always cached in regular djs

sand condor
#

^

dull terrace
#

-botinfo @hallow rain

gilded plankBOT
#
Bot info
ID

491769129318088714

Username

Statbot

Discriminator

3472

Short Description

Server stats bot ★Dashboard, graphs, insights ★Channel counters w/ member counter, role online, clocks, statistics ★Roles using serverstats

Library

Other

Prefix

s?

Total Upvotes

5972

Monthly Upvotes

186

Server Count

70000 Servers | 70 Shards

Owner(s)

@marble junco
@south cliff
@storm oak

sand condor
sage bobcat
#

One message removed from a suspended account.

dull terrace
#

Ah yes sorry i'm failed

earnest phoenix
#

what bitrate would u guys recommend for a bot playing music

lusty quest
#

depends. default to lowest and add medium to high as a premium feature

earnest phoenix
#

i know have a bitrate of 192000

#

is that too much?

lusty quest
#

thats 192kbs its fine

obtuse jolt
mild flower
#

if (!message.guild.me.hasPermission("SEND_MESSAGES")) return message.author.send('Please give me permissions to send messages.').catch(err => {bot.channels.cache.get('739833622814654497').send('test')})

I do dis but still it shows that missing permissions error

lusty quest
#

so you leave every guild with more than 30 Bots?

earnest phoenix
#

@lusty quest is it too much or not enough

lusty quest
#

its fine

finite nimbus
#

I am searching for 24/7 free hosting.
No heroku, or glitch.

obtuse jolt
#

if they have less then 100 members yes @lusty quest

amber fractal
#

you could partition the collection instead of filtering it twice

earnest phoenix
#

spend the money you use for discord nitro on a vps @finite nimbus

sudden geyser
#

You could filter it once

earnest phoenix
#

there aint no good free hosting except from trials

sudden geyser
#

Then use the minus operator on the collection size

finite nimbus
#

spend the money you use for discord nitro on a vps @finite nimbus
@earnest phoenix I have discord nitro, because i win a giveaway

earnest phoenix
#

You can do a free trial

#

on some sites

#

maybe do that

sudden geyser
#

Though, to have less than 100 non-bot members and to have 30+ bots could return some false positives

obtuse jolt
#

how many bots is too many

#

30 is a lot of bots for a server with less then 100 members

lusty quest
#

@finite nimbus if you got a Credit Card Amazon AWS offers 1 year free

sudden geyser
#

99 members and 30 bots, for example. I typically handle a lot of bots just by having a little warning message in a logging channel, but if it needs to be fully automatic, that should be fine for now (because it won't work if the member count is over 100, could use some division).

lusty quest
#

maybe a dynamic one would be better.

obtuse jolt
misty sigil
#

anyone know how to parse stuff like 1d, 1h, 1m and so on

obtuse jolt
#

@misty sigil you can do it with ms

misty sigil
#

oh noice

obtuse jolt
#
ms(thing, { long: true })```
#

thats how you do it

sudden geyser
#

Yxri did you forget to leave the guild

mild flower
#

.catch(err => {bot.channels.cache.get('739833622814654497').send('test')}) this just gives me an unhandled rejection error

obtuse jolt
lusty quest
#

wont it blacklist the server again if someone uses a command? or did you got a second field in your database to prevent it

#

(if you appealed)

obtuse jolt
#

i suppose it would just keep blacklisting them over and over

#

i might have to add a blacklist bypass field to my database

lusty quest
#

add a field with whitelist and check it before executing the blacklist

obtuse jolt
#

yeah i know that

glass steeple
#

what's wrong here??

async def on_member_update(before, after):
    if len(before.roles) < len(after.roles):
        new_role = next(role for role in after.roles if role not in before.roles)
        if new_role.name in ('3PM IDP'):
            global count1
            count1 += 1
            print("count1 updated")```
olive narwhal
#

@obtuse jolt what’s your bot ?

obtuse jolt
#

-bots

gilded plankBOT
olive narwhal
#

Thx

#

I’ll add it to my server

obtuse jolt
#

awesome!

olive narwhal
#

But what does it do?

obtuse jolt
#

well when ive finished it, it will scan any files and links sent in the chat automatically and delete them if they're suspicious

olive narwhal
#

and what should you do if you’re not goes offline

#

Oh that’s rly nice!

obtuse jolt
#

well ive added alot of error handling so instead of crashing it just spams the console like heck

olive narwhal
#

Oh

obtuse jolt
#

ive only experience a bot crash once

#

which was a while ago

olive narwhal
#

Oof

#

Ok have a good day 👌 👍

obtuse jolt
#

you too

lusty quest
#

nice the bot page of your bot is broken in Tor based browsers YxriDev

obtuse jolt
#

why?

#

what happens

green kestrel
#

Lol satanic server count

obtuse jolt
#

eek

lusty quest
#

wait nvm its my Pihole i guess

obtuse jolt
green kestrel
#

I tried to install pihole on my gateway

#

It tried to take it over

#

Like chill out lol I have other uses for my router device than running your random stuff like a DHCP client

harsh moon
#

I wonder why my bot is so popular and I have not released it yet it has 700+ servers XD

olive narwhal
#

@obtuse jolt it says your not a owner of the bot

#

-bot

obtuse jolt
#

cringe @harsh moon

#

-owners 723209705568075808

gilded plankBOT
green kestrel
#

If you set it up as public bot, you released it

harsh moon
#

the bot just has one fact thing where one of the random messages is an invite link XD

olive narwhal
#

Ohhhh

obtuse jolt
#

what you didn't know it that jamess is my alt

harsh moon
#

well its not released its in beta and it will be technically released when I get accepted on top.gg

sullen harness
#

Oops wrong quote

olive narwhal
#

Lol

sullen harness
#

I wonder why my bot is so popular and I have not released it yet it has 700+ servers XD
@harsh moon How? It needs to be verified before it can pass more than 100 guilds?

harsh moon
#

nope

obtuse jolt
#

its not required yet

harsh moon
#

I have not verifed it

obtuse jolt
#

it will be soon

harsh moon
#

I plan to verify it soon

obtuse jolt
#

you should probably do it quick

olive narwhal
#

How do you verify it?

obtuse jolt
#

you do it in the developers dashboard

olive narwhal
#

OOP

harsh moon
#

I need to do one last thing before I verify it and that is make the two commands that I have not released yet have the data encrypted

olive narwhal
obtuse jolt
#

im trying to get my bot verified

olive narwhal
#

What are the two commands?

obtuse jolt
#

its so slow

olive narwhal
#

I use node.js

obtuse jolt
#

32 guilds

olive narwhal
#

and other

lusty quest
#

if everything works i could add it to a Guild with about 10k users, maybe there are some tech savy enought to add the bot

olive narwhal
#

Ok

#

👌

obtuse jolt
#

i mean

#

nothing doesnt work

#

its just about me adding things

olive narwhal
#

💩 rainbowpoop

#

Ok brb

obtuse jolt
#

S8 Software

olive narwhal
#

Ayy

#

Lmao

#

Brb

#

I’m back

timid blade
#

if i enable partials and receive an event for, say, a message deletion in a guild, and the guild is cached (as all guilds are) is it safe to assume that message.guild.id is defined? or no. using discord.js

olive narwhal
#

_/ Bruh _/

#

Eh I’m not sure

oak thorn
#

I changed the prefix from ! to ? but now Avrae won’t work on my server.

olive narwhal
#

Coding softwares are better than the dashboard in my opinion

#

@oak thorn what software do you use?

honest perch
#

how do i select the font color in canvas

olive narwhal
#

What software?

oak thorn
#

I am using “Avrae”, the dice bot, on our Discord server and tried to change the prefix from <!> to <?> and now the bot is not responding.

honest perch
#

nodejs

#

nvm

#

got it

sterile minnow
#

Hi does anyone know how you get if someone has nitro? Discord.js

earnest phoenix
#

How can I see in how many guilds my bot is connected to a voice channel?

#

while sharded

#

keep track of it yourself

strange trout
#

@sterile minnow you can't

earnest phoenix
#

i'm pretty sure you can

strange trout
#

Well yes but you'd need to go through auth

sterile minnow
#

ouf

strange trout
lethal pine
#

how to get verifed bot developer badge

#

?

misty sigil
#

Have bot in 75 servers

#

and verify yourself with ID

lethal pine
#

nice where ?

#

any link

sonic lodge
#

in the discord developer portal on your bot page

lethal pine
#

kk

#

thankx bro

summer torrent
#

Discord will send you a DM

lethal pine
#

i am in team group so whole group will get the developer badge @summer torrent

earnest phoenix
#

yes

#

Anyone having that shitty "Ref" module error?

#

where like every single thing fails to compile?

#

its annoying and because of it i cant install like any module anymore

cobalt eagle
#

Hi is there a way to make my bot restart automatically if it crashes ?

earnest phoenix
#

D.js v12 have nitro boost event?

amber fractal
#

it's a message

#

a system message

summer torrent
#

yes iirc

earnest phoenix
#

Nmw

#

You said it to me?

summer torrent
#

yes

quaint hound
#

@cobalt eagle you can use a process manager like pm2

earnest phoenix
#

Lemme check

#

Thank's nmw

summer torrent
cobalt eagle
#

@quaint hound and if i wanna do it on a raspberry pi ? (linux arm)

#

nvm i'm dumb

#

it's not a software

uneven crypt
#
member.roles.cache.map(r => `${r}`).join(', ')```how to make it ignore everyone role
#

and yes i defined member

pale vessel
#

filter(role => role.id !== message.guild.id).map()

olive narwhal
#

NEED HELP i use the botghost website and i need help with the following github url servers this bot is in ? whats that ?

earnest phoenix
#

botghost

olive narwhal
#

yess

uneven crypt
#

lol help with botghost???

olive narwhal
#

its wont let me add discord bot

earnest phoenix
#

"servers this bot is in" are servers you can provide to further "advertise" your bot. Please note, that these servers have to be on the discord server list (on top.gg)

format: serverid1, serverid2, ...

#

for example 264445053596991498, 613425648685547541

#

or 256988924390408193, 648230713690292224, 620221720569053185 you get the point

#

@olive narwhal

olive narwhal
#

im not a coder for a living im only 14

earnest phoenix
#

there are coders that are underage on here

olive narwhal
#

15*

#

ok

#

but

#

aw man i realy wanted to add my own discord bot, i cant now i even paid 99 dollers

opal plank
#

Oye got a stupid question. How do i get a property with a hyphen again? This is to access the property, but the parser isnt interpreting it the way i'd like

lusty quest
#

did someone here worked with chart.js and canvas? i try to make a dynamic config (the amount of datasets varies) the config i logs seems to be valid but the charts that are getting rendered are empty http://node0.s8s.app/XHUX

opal plank
#

it sets it as 'Client-ID' rather than Client-ID

earnest phoenix
#

thats just node.js showing it that way

faint prism
#

'

earnest phoenix
#

if you print it as string, it wont show like this

opal plank
#

nah its sending the wrong header

earnest phoenix
#

JSON.stringify(json)

opal plank
#

its ACTUALLY sending quotation

earnest phoenix
#

its not

#

i know its not

#

it may look like it, but it doesnt send that header

#

it sends a stringified version of that json, that would look like this

#
{"Prop1": "some value","prop2":"Some other value","prop3":["maybe","even","an","array"]}
#

so js 'Client-ID' will become ```js
"Client-ID"

#

@opal plank

opal plank
#

hmmmm

earnest phoenix
#

you removed the 's and it tried to take Client - ID as value

#

Client minus ID

lusty quest
#
  const reactions = message.reactions.cache;
         let array = [];
         let datasetValue = [];
      await reactions.forEach(async reaction=>
        array.push(reaction.count)
     );
     for (var j = 0; j < array.length; j++) {
         datasetValue[j] = [
         {
             label: `Option ${j+1}`,
             data: array[j],
             // The color of the line (the same as the fill color with full opacity)
             borderColor: "rgb(61,148,192)",
             // Fill the line with color
             fill: true,
             // Blue color and low opacity
             backgroundColor: getRandomColor()
         }];
         }
         console.log(datasetValue);
         
               const configuration ={
                   type: "horizontalBar",
                   data: {
                       labels: data.options, 
                       datasets: datasetValue    
                   },
                   options
               
               };
``` does someone know why the configuration is invalid? -> Canvas always  empty with no data
earnest phoenix
#

and since Client wasnt defined, it showed that error

opal plank
earnest phoenix
#

yes

#

you can take the " quotes too if you want

#

wont make a difference

#

@NMW003

#

@summer torrent

#

Boost and unboost same event?

#

I don't think so

opal plank
#

@earnest phoenix ty

earnest phoenix
#

JSON.stringify GWjianBEAND

summer torrent
#

@earnest phoenix idk

dull terrace
#

Is it possible with CSS to tell the difference between a PC and a mobile phone? I would like to change the location of some elements on the page of my bot and I'm afraid that the elements I will move will have a different display on mobile phone.

opal plank
#

VSC has the Object Explorer for that reason constantin

#

Though for some reason it isnt working on my debug session

plucky harness
#

when i start my bot it comes online and goes offline and thats whats happening for 30 minutes now

#

i also restarted whole process but no change

#

so i thought maybe my vps is bad

heavy marsh
#
message.member.user.fetchFlags().FLAGS
#

Is this not valid in Discord.js v12.2.0

plucky harness
#

so i tried in my pc and same thing happens

pale vessel
#

it's a promise

#

use then or await it

heavy marsh
earnest phoenix
#

@heavy marsh message.author.fetchFlags().then(console.log)

heavy marsh
#

ooh

solemn latch
#

Getting errors @plucky harness ?

plucky harness
#

can some1 help?

pale vessel
#

you should use user.flags if available

plucky harness
#

no

pale vessel
#

if not, then you fetch it

plucky harness
#

i was running bot earlier just restarted it

heavy marsh
#
UserFlags { bitfield: 131328 }

But how to get the names like - DISCORD_EMPLOYEE

earnest phoenix
#

@plucky harness Its obviously ur code

#

Put two & two together

#

VPS is.. Bad? But local machine also has the same issue?

plucky harness
#

@earnest phoenix the codes running fine for 2 months now and also not showing error?

earnest phoenix
#
UserFlags { bitfield: 131328 }

But how to get the names like - DISCORD_EMPLOYEE
@heavy marsh use .toArray()

#

Then you are error handling wrong, or ur code is borked

#

Maybe a breaking change in the library you are using

#

¯_(ツ)_/¯

heavy marsh
#

@earnest phoenix Worked thanks

earnest phoenix
#

Np

plucky harness
#

AttributeError: 'ConnectionState' object has no attribute '_ready_state'

#

getting this error

gray zealot
#

Hi 😄

props.help.aliases.forEach(alias => {
                           ^

TypeError: Cannot read property 'forEach' of undefined
```I keep getting this TypeError 🙂 any ideas on how to fix it?
solemn latch
#

Props.help.aliases is undefined

earnest phoenix
#

Wow!

lusty quest
#

can someone explain me why chart.js only Takes arrays and not array[0] ?

blazing ravine
#

who can help me

misty sigil
#

is it in your ready event?

blazing ravine
#

ye

#

when bot start

summer torrent
#

wait a bit

sonic lodge
#

setPresence acecepts an object, not a string

blazing ravine
#

i try setstatus

#

again not work

restive furnace
#

you need to wait

#

bot statuses arent working properly

#

like dnd, idle or online

blazing ravine
#

ioh oki

#

in bot ?

restive furnace
#

not yet

blazing ravine
#

ok thanks

lusty quest
#

i dont get how chart.js work. if i use a array inside of a array i can only display one dataset from the array. if i set in 2 datasets the same index in the array it displays both arrays but with the same data index

blazing ravine
#

@restive furnace

restive furnace
#

you need to wait

#

sometimes even a hour, sometimes only 10 srconds

earnest phoenix
#

What are you talking about!?

sharp stone
blazing ravine
#

@earnest phoenix setstatus

opaque seal
#

Is there a library which is able to get voice activity from the voice channels?

restive furnace
#

didnt cry explain this morning?

#

or what ever the time was at then

earnest phoenix
#

Quick question for any Javascript people

if (request.headers.get("cf-connecting-ip") !== "xx.xxx.xxx.xxx") 
  {
  // Return modified response.
    return new Response(maintPage, {
      headers: modifiedHeaders
    })
  }

How would I go about changing this to check 2 IPs instead of just the single IP?

faint prism
#

Iterate though a collection

restive furnace
#

&&

solemn latch
earnest phoenix
#
if (request.headers.get("cf-connecting-ip") !== "xx.xxx.xxx.xxx" && "xx.xxx.xxx.xxx") 

As such? @restive furnace

faint prism
#

request.headers.get("cf-connecting-ip") !== "xx.xxx.xxx.xxx" || request.headers.get("cf-connecting-ip") !== "xx.xxx.xxx.xxx"

#

you probably mean || or, otherwise if the first is true, so is the second

restive furnace
#

^

earnest phoenix
#

Tysvm

opaque seal
#

@earnest phoenix You said you were able to retrieve voice data from voice channels with C#. I'm using JDA right now and they are saying that is not documented on discord api so they don't have that neither. Was it documented in the C# library?

earnest phoenix
#

@opaque seal implemented in discord.net however not documented how to use it

#

it's just a Stream though which you can call ReadAsync and you get back an array of bytes

faint prism
#

I wish Discord had an official .NET library

lethal pine
#
@bot.command()
@commands.has_permissions(kick_members = True)
async def kick(ctx, member : discord.Member, *, reason = "No Reason Provided"):
    await member.send(f'You Have Been Kicked from the {ctx.guild.name}, Because: ' + reason)
    embed = discord.Embed(title=f'{ctx.guild.name}', color=0xF04E3F)
    embed.add_field(name='Kicked Name:', value=member.name + (f" has been kicked from {ctx.guild.name} "), inline = False)
    embed.set_footer(text='Shero', icon_url='https://cdn.discordapp.com/avatars/739120780960333906/3ede301ee4216557dbec102209ed1a18.png?size=256')
    embed.set_thumbnail(url=member.avatar_url)
    await ctx.send(embed=embed)
    await member.kick(reason=reason)
    await ctx.message.add_reaction('✅')```
#

my kick command is not working

#

please help

earnest phoenix
#

debug it

restive furnace
#

errors..?

faint prism
#

Breakpoints and check values in variables

restive furnace
#

yeah, breakpoints are the best thing to debug

lethal pine
#

ok

#

thankx

faint prism
#

gl

opaque seal
#

@opaque seal implemented in discord.net however not documented how to use it
@earnest phoenix So I guess it's the same with JDA

misty sigil
#

so messageReactionAdd works for starboard system right?

restive furnace
#

just "reverse-engineer" jda's source or smth

opaque seal
#

that's a lot of work

restive furnace
#

not really

#

just go to java discord api github

earnest phoenix
#

jda should be using native java types though

#

you should be able to see the return type

#

and then how to consume it

gritty bolt
#

I'm trying to get a link out of a message when a reaction is put onto it

misty sigil
#

how do i clear self stars?

#

it should be reaction.remove(user.id) right?

earnest phoenix
#

try and see

#

¯\_(ツ)_/¯

misty sigil
#

fine ig

solemn latch
#

the docs are really good for this type of stuff

gritty bolt
opaque seal
#

it should be reaction.remove(user.id) right?
@misty sigil reaction.users.remove(user)

misty sigil
#

ty

lusty quest
#

@solemn latch yea i get slowly to it to get it work with a single array for the data

solemn latch
#

so whats the issue?

#

@gritty bolt are you trying to get reactions on messages sent before your bot started?

lusty quest
#

.... i want to throw my NAS rn out of the window

gritty bolt
#

yes

solemn latch
#

use partials

tight plinth
#

how to check if an element is in an array?

gritty bolt
#

or im trying to get reactions that were put onto a message that was sent before the bot was made

#

but the reaction is put on after it joineds

solemn latch
#

yeah, by default that event only works for cached messages

#

partials fixes that

restive furnace
#

Array.isArray() @tight plinth

tight plinth
#

I mean

solemn latch
#

is in an array

#

.includes right?

tight plinth
#

ah it's includes

tight plinth
#

ty

solemn latch
#

np

#

^ info on partials

gritty bolt
#

I've been testing that code on messages that were sent after the bot came online and it doesn't work then either

heavy marsh
#
const badges = {
    "DISCORD_EMPLOYEE": "![official_support](https://cdn.discordapp.com/emojis/707638686724128880.webp?size=128 "official_support")",
    "DISCORD_PARTNER": "![partner](https://cdn.discordapp.com/emojis/707638685742661714.webp?size=128 "partner")",
    "HYPESQUAD_EVENTS": "![events](https://cdn.discordapp.com/emojis/739901806997668012.webp?size=128 "events")",
    "BUGHUNTER_LEVEL_1": "![bug_level1](https://cdn.discordapp.com/emojis/739901806834090054.webp?size=128 "bug_level1")",
    "HOUSE_BRAVERY": "![bravery](https://cdn.discordapp.com/emojis/739901806385168547.webp?size=128 "bravery")",
    "HOUSE_BRILLIANCE": "![brilliance](https://cdn.discordapp.com/emojis/739901806808662016.webp?size=128 "brilliance")",
    "HOUSE_BALANCE": "![balance](https://cdn.discordapp.com/emojis/739901806741553172.webp?size=128 "balance")",
    "EARLY_SUPPORTER": "![early](https://cdn.discordapp.com/emojis/739901806708260906.webp?size=128 "early")",
    "TEAM_USER": "![members](https://cdn.discordapp.com/emojis/688700604431728698.webp?size=128 "members")",
    "BUGHUNTER_LEVEL_2": "![bug_level2](https://cdn.discordapp.com/emojis/739901806670250078.webp?size=128 "bug_level2")",
    "VERIFIED_BOT": "![verifiedBot](https://cdn.discordapp.com/emojis/739901806884290591.webp?size=128 "verifiedBot")",
    "VERIFIED_DEVELOPER": "![developer](https://cdn.discordapp.com/emojis/739901806942879814.webp?size=128 "developer")"
};
${badges[member.user.flags.toArray().join(" ")]}
``` - It comes as undifined when the user has more than one. How can I fix this?
quartz kindle
#

you're joining them

solemn latch
#

double check your isuri isnt just rejecting everything @gritty bolt

quartz kindle
#

so if a user has flag1 and flag2, your code is doing badges[flag1,flag2]

#

which is not a valid object key

heavy marsh
#

ooh I see

#

How can I make it work

quartz kindle
#

loop over the flags

#

or map them

solemn latch
#

also, i think you might be feeding in everything after the url

for example
hi mom https://top.gg/api/docs wee woo wee woo
if this runs through the function
youd be sending
https://top.gg/api/docs wee woo wee woo
into the isuri function

gritty bolt
#

oh

#

how do I not do that

#

fixed the null issue btw

solemn latch
gritty bolt
#

oh so splitting until a space?

solemn latch
#

yeah, just grabbing everything before the first space, after the link starts

misty sigil
#

so say my bot sends this 3 ⭐ | #channel, how would i get it to read that number?

solemn latch
#

reading the number from your bots messages?

#

or from the reactions from the messages?

misty sigil
#

the message yea

pure lion
#

Jeremy

#

How do I use oxide host once I'm renting?

gritty bolt
#

how do I split until a space

solemn latch
#

ssh into it @pure lion

gritty bolt
#

like how do I put a space into those ""s

misty sigil
#

just yeet the code into the ftp

pure lion
#

Okay got it

misty sigil
#

and ssh into it

#

they helped me in the server

#

do you want the link?

pure lion
#

Ssh where

solemn latch
#

the ip of the vps

pure lion
#

Ok cool

gritty bolt
#

how do I split until a space @solemn latch

misty sigil
#

typically root@vpsip

#

then type the root password found in your email

solemn latch
#

i really like bitvise for ssh and sftp

restive furnace
#

use putty for easier

#

avtually no

#

but afterwards its easier

gritty bolt
#

oh thanks

solemn latch
#

^

#

bitvise is great for the first while

#

it opens both ssh and sftp on login

misty sigil
#

i used putty for starts

pure lion
#

What's root?

misty sigil
#

just the root user

solemn latch
#

the main user

misty sigil
#

the sudo dude

solemn latch
#

its the admin user of linux really

plucky harness
#

trying to run bot and its going offline and online for a while now

pure lion
#

I'm cumfused

solemn latch
#

root, is the admin account of your vps

pure lion
#

Where can I find that?

heavy marsh
#
const b = member.user.flags.toArray();
const ds = b.map(e => e.toString());

${badges[ds.join(' ')]}

Linked to this - #development message

solemn latch
#

find root?

pure lion
#

Ye

misty sigil
#

root is default

solemn latch
#

he is who you login as

#

"he"

faint prism
#

better hope root's password isn't default though

pure lion
#

""""he""""

solemn latch
#

lmao

faint prism
#

it

solemn latch
#

nah root is a he

pure lion
#

Is it literally root@ip

faint prism
#

or youraccount@ip

restive furnace
#

shroot is she

#

he has only root account

faint prism
#

Is that why #! <-- is called a shebang?

restive furnace
#

yes

pure lion
#

I'm so confused

tough relic
#

quick question: Is there a way for a bot to say what the next song is playing inside a voice chat?

pure lion
#

Jeremy what did you type in

heavy marsh
solemn latch
#

do you have your vps's ip?

pure lion
#

Yep

#

I've sshed into it

faint prism
#

Now type tree /

pure lion
#

And it filled <my fucking name>@ip

solemn latch
#

🤔

faint prism
#

oh wait, tree isn't a default package, nvm

pure lion
#

I typed in 'root@ip' this time

#

Jajajajaja

faint prism
#

Try top

silver dust
#

i need help

misty sigil
#

you're using cmd?

faint prism
#

That's my favorite command

silver dust
#

TypeError: Cannot read property 'forEach' of undefined

misty sigil
faint prism
#

Damn, beat me to it

solemn latch
#

you cant use .forEach on undefined things

pure lion
#

Wait a fucking minute

#

I just got a patron

#

Lmao

solemn latch
#

gz

pure lion
#

you're using cmd?
Ye

misty sigil
#

lmao same

silver dust
#

you cant use .forEach on undefined things
@solemn latch wdym?

pure lion
#

What did you type as root

#

Jaaj

solemn latch
#

if you do
undefined.forEach()

#

it gives you that error

silver dust
#

nope

#

command.aliases.forEach(alias => client.aliases.set(alias, command.name))

solemn latch
#

command.aliases is undefined

faint prism
#

alias.set that's what you want.
Not client.aliases.set

silver dust
#

so what i have to do?

solemn latch
#

🤔

silver dust
#

what

solemn latch
#

cant you just set aliases in the command

#

why alias.set?

faint prism
#

Lookup lambda syntax

#

It passes in an alias object foreach one in aliases

#

so you can directly interact with it

#

.forEach is the lamda shorthand for a proper foreach loop (at least it is in C#. JS might only do it that way idk)

solemn latch
#

is this not djs?

#

anyway, you can just have command.aliases set for every command to an array, populated or unpopulated.
or check if command.aliases is defined before foreaching aliases

quartz kindle
#

@heavy marsh very wrong

heavy marsh
#
const b = member.user.flags.toArray();
const ds = b.map(e => e.toString());
quartz kindle
#

i'll give you a hint

heavy marsh
#
const b = member.user.flags.toArray();
const ds = b.map(e => badges[e]);
``` - @quartz kindle got it thanks 🙂
dense patio
#

how do i send messages like embeds that include variables from an event to another shard (please ping me) - discord.js v11

solemn latch
#

broadcast it?

#

well, i guess it depends on your lib and how you shard

dense patio
#

yeah but when i broadcast it, it says that they're undefined

#

oh i can't believe i forgot to add that

earnest phoenix
#

Python multiprocessing memory sharing when? REEEEEEEE

#

3.8, don't @ me

dense patio
#

i have a client event that sends a message when my bot joins a new guild, but it only works if the guild is in the same shard as the support server

#

i looked up some solutions and the closest one i could find had the embed being made inside of the broadcast, using outside variables

#

but it still didn't work for me

misty sigil
#

use a webhook?

#

that might work

dense patio
#

how do i do that?

misty sigil
#

lib?

dense patio
#

discord.js v11

plucky harness
#

@lusty quest u here?