#development

1 messages ยท Page 1632 of 1

modern granite
#

it does

viscid gale
#

so can't you call the bot yourself?

umbral zealot
#

try to ask on the repl.it guild, maybe?

modern granite
umbral zealot
viscid gale
#

I have a thing.. except the repl isnt turning off.. it makes an ngrok connection(it calls the ngrok connection in an interval too but idk)

#

ye ask the question there

modern granite
#

okay thanks

viscid gale
#

btw I came to ask if I can paste the link to something I made on github

#

no long talk, no pings, just the link

umbral zealot
#

For what purpose?

viscid gale
#

the "check this out purpose" ngl

#

it be y i ask

umbral zealot
#

that would count under advertisement, so no.

viscid gale
#

oof

modern granite
#

@umbral zealot one question

#

does the description of the bot must be in English only?

#

I mean

#

it's in russian

#

and I don't want to get some problems because of that

umbral zealot
#

no, there's no rule about language for top.gg

modern granite
#

okay, thanks

#

and what about the approval time?

umbral zealot
#

3+ weeks at the moment

modern granite
#

okay, thanks again

restive furnace
modern granite
#

bruh

#

I wrote to them about that

#

and they still didn't answer

#

don't make me nervous

#

๐Ÿ˜‚

umbral zealot
#

They absolutely 100% allow bots online 24/7

#

Their CEO literally asked my discord guide, on github, to make a tutorial on how to do it

crimson vapor
#

thats likely because it makes people more likely to buy the plan

icy patio
#

I want ask something to your guys

viscid gale
#

dont make me feel like a criminal lmfao

viscid gale
umbral zealot
#

It's not "anti-afk"

icy patio
#

I want bot send image how to do that

viscid gale
umbral zealot
#

It's a natural feature for web server hostings to shut down when they're not in use,

icy patio
#

Ok

umbral zealot
#

you want to send an image, or add an image to an embed?

icy patio
#

I just want send image

umbral zealot
#

what library and programming language are you writing your bot in?

icy patio
#

Js

bitter slate
#

JS is the best!

icy patio
#

Yeah but i newbe

umbral zealot
#

right so... discord.js?

icy patio
umbral zealot
#

this has all the ways to send file as well as messages

icy patio
#

Ok thank you

dusk scarab
#

SOmeone i need dire help and it takes two seconds. How do you do it so that if a message is sent in a certain channel, then the command will not be activated? Like message.channel.id('id') is not working for me

earnest phoenix
#

who is pro with discord giveaways?

#

I need help oof

umbral zealot
#

Well, what's your issue now?

#

how about describe it instead of asking for "experts" ๐Ÿ˜›

earnest phoenix
umbral zealot
#

but just.... ?

earnest phoenix
#

this: message.client.giveawaysManager.reroll(giveaway.messageID)

#

He send a message in the channel

#

I want to block this

#

just reroll but not send message

#

because I can't edit this message

umbral zealot
#

mmmkay? What exactly is this giveawaysManager ? Is that something you wrote or something you caught off npm or something?

earnest phoenix
#

its a npm for discord giveaways

#

like giveawaybot

#

etc...

umbral zealot
#

Then maybe you wanna speak to the developers of that thing to ask for support?

earnest phoenix
#

okay

umbral zealot
#

we have no way to know how they coded it

earnest phoenix
#

oh

modern granite
#

oh wait

#

I think I understood what the problem was @umbral zealot

#

so

#

I have a library

umbral zealot
#

yeah?

modern granite
#

called Cybernator

#

I installed it using the shell

#

but after sometime

#

the server thinks that it's not installed

#

and sends errors

#

and at last just turns off

#

now I need to understand how to fix that.

#

I mean

#

I wanted to make pages for the help command

#

and this library helped

#

but

#

it doesn't work really great

#

how to add pages to the help command?

#

easily

lyric mountain
#

see if there's a pagination lib for your language and current library

modern granite
#

yeah

#

Cybernator is a pagination library

#

but

lyric mountain
#

what language btw?

modern granite
#

python

lyric mountain
#

rip

modern granite
#

f

lyric mountain
#

but how isn't repl recognizing it?

modern granite
#

idk

#

I mean

#

I install it using the shell

#

it works just fine

#

but after 2 hours

#

it sends a lot of errors

#

saying there is no library like that

#

and when i refresh the page

#

I have to install it using the shell again

#

it's like an endless loop

lyric mountain
#

doesn't python have a dependencies file like java's gradle.build or node's package.json?

misty sigil
#

or rust's cargo.toml

modern granite
#

idk. I am not a professional in it, so can't say

lyric mountain
#

try that install_requires

modern granite
#

so, should I create a txt file and write every needed library inside?

#

so it will download them?

lyric mountain
#

idk, I don't code in python

modern granite
#

I mean, I am not really good, so I can just not understand at some point

lyric mountain
#

but search online regarding that file

modern granite
#

okay, thanks anyway

lyric mountain
#

there's probably a walkthrough out there

earnest phoenix
#

for repl.it you can have a pyproject.toml file ig

harsh blade
#

how do i make stuff like "client.on" on a seperate file?
Right now ive been coding everything to index.js.
Please help ๐Ÿ˜ญ

#

please do ping me

harsh blade
#

Eh?

lyric mountain
#

but all client.on should be in a single file

#

and be called exactly once

harsh blade
#

right

modern granite
#

KuuHaKu thanks for the help! It was useful. I hope no errors will happen this time!

lyric mountain
harsh blade
#

so its best to have all my "client.on" code in the same file?

#

my index.js already 13kib

lyric mountain
#

actually, you shouldn't have any command code in client.on

latent heron
#

kb size of a file isn't important unless you're dealing with DBs

lyric mountain
#

except for the handler

#

like, client.on calls the command handler -> handler calls the command

harsh blade
#

oh

quartz kindle
#

there is not best here, is just user preference

#

but having more smaller files can be easier to manage and maintain than few large files

proven lantern
#

any idea how much memory would i save switching from discord.js to discord.js-light? my bot's in about 350 discord servers and is using up 33% of the 1GB of ram.

quartz kindle
#

depends on what your bot does and what caches you need

#

im using 150mb ram with 8k servers

proven lantern
#

that not too bad. are you caching anything? i'm guessing the main trade off is more network usage and the bot being a little bit slower.

spare portal
#

my bot suddenly went offline and won't log back in

#

i haven't changed anything in the code

quartz kindle
#

discord caches are all off except for guilds

quartz kindle
#

try logging the debug event

proven lantern
#

8k discord servers is taking up <150mb and my 350 servers are taking up over 300mb

viscid geode
#

Clutters*

severe pike
#

Yea i hate those critters in my main file!

#

๐Ÿชณ

viscid geode
#

I MADE A TYPO NOOOO

severe pike
#

xD

viscid geode
#

Lmfao

misty sigil
#

yea fuckin critters

viscid geode
#

Yeah

misty sigil
#

makin my code work funny

harsh blade
#

wt

severe pike
#

ahaha

viscid geode
#

I fokin hate em

severe pike
#

sa<e

viscid geode
#

๐Ÿ› they cause to many bugs

#

Well they are bugs

spare portal
#

nothing's changed

#

it literally just stopped all of a sudden and won't log in anymore

viscid geode
#

Could of been rate limited but very unlikely if it is not a big bot

#

As in server count

misty sigil
#

or you've used all 1000 identify calls

viscid geode
#

Yh

#

my bot gets rate limited so fricking much it has too many cmds

quartz kindle
#

if there are no logs

viscid geode
#

I swear every person with the "team" Role either has verified bot dev or early supporter lmao

#

Ik they are the owners basically

#

Btw

craggy pine
#

They are also previous bot developers n also skilled at coding vs a lot of the badge farmers who use bot makers or tutorials

viscid geode
#

Yeah

#

Ik

earnest phoenix
#
let deleted = (await channel.bulkDelete(mgs.slice(0, amount))).size()``` how is .size() not a function?
quartz kindle
#

size is not a function

#

its a property

viscid geode
earnest phoenix
#

oh duh

viscid geode
#

xd

earnest phoenix
#

im legit falling outta my chair laughing at myself lol

#

ecks dee

proven lantern
#
const {size: deleted} = await channel.bulkDelete(mgs.slice(0, amount))```
viscid geode
#

Lmao

quartz kindle
#

xD

proven lantern
#

that should work too

#

sneak change

quartz kindle
#

it was right before

#

now its wrong

#

lmao

proven lantern
#

sneak revert

sterile lantern
#

how do i detect message collector timeouts

#

collector.on('end') doesn't work

quartz kindle
#

it should

sterile lantern
#

apparently i have to catch it

#
message.channel.send(item.question).then(() => {
    message.channel.awaitMessages(filter, { max: 1, time: 30000, errors: ['time'] })
        .then(collected => {
            message.channel.send(`${collected.first().author} got the correct answer!`);
        })
        .catch(collected => {
            message.channel.send('Looks like nobody got the answer this time.');
        });
});```
#

from docs

#

ah wait

#

this is awaitMessages

#

hmm

quartz kindle
#

awaitMessages is different from messageCollector

sterile lantern
#

yeah

quartz kindle
#

you can simply not have it error

sterile lantern
#

this is after 10 seconds

#

but after 10 seconds it should send timeout embed

#
 mcollector.on('end', async mcol => {
    message.channel.send(timeout)```
#

meh screw it collectors are weird

#

ill use awaitMessages

quartz kindle
#

remove errors: time

#

and you dont have to catch it

sterile lantern
#

that was from d.js

#

docs

#

lol

quartz kindle
#

i know

#

but having it error on timeout is a choice

sterile lantern
#

o

#

ok

#
let choices = ['Test', 'Noob']
let answer1 = await a.channel.awaitMessages(m => m.author.id === message.author.id, { max:1, time:10000 })
if(!choices.includes(answer1.first().content.toLowerCase())) {
  message.channel.send('nooo')
}
#

how come this doesnt work

#

i probably lmessed something up

#

with the includes thing

quartz kindle
#

you need to check if answer1.first() exists

#

if it times out, answer1 is an empty collection

#

if(!answer1.size) return "no answer"

viscid geode
#

So my bot has an, urban command I feel I should make this NSFW channel only welp

sterile lantern
#
if(!answer1.size) return message.channel.send(timeout)
  if(!choices.includes(answer1.first().content.toLowerCase())) {
  message.channel.send('nooo')
}```
viscid geode
#

What sorta command u tryna make?

quartz kindle
#

that should work

sterile lantern
#

noob is in the array

sterile lantern
#

to earn coins

viscid geode
#

Ohh

quartz kindle
#

Noob is in the array

#

not noob

sterile lantern
#

either one doesnt work

#

its being lowercased

#

regardless

quartz kindle
#

yes

#

and your array is not lower case

misty sigil
#

yea so lowercase your arr elements

quartz kindle
#

so it will never match

sterile lantern
#

OH

viscid geode
#

yeah

#

xd

jolly mortar
#

so I made a fun bot where you mine blocks to level up by running &mine and it shows up an embed you can control by reacting to it but if 2 people are using it at the same time it slows down rlly bad, is there a way to make it run smoother?

earnest phoenix
#
async function normal (amount, channel, mtime) {
    let mgs = (await channel.messages.fetch({limit:100})).array().filter(m => (!m.pinned) && (m.createdTimestamp < mtime) && (m.createdTimestamp > (mtime - 1209600000)))

    if(mgs.size < 1) {
        return(0)
    } else if(amount > mgs.size){
        let deleted = (await channel.bulkDelete(mgs)).size
        return(await normal((amount - deleted), channel, mtime), + deleted)
    } else {
        let deleted = (await channel.bulkDelete(mgs.slice(0, amount))).size
        return(deleted)
    }
}``` can someone tell me what i did wrong other than api abooze?
safe creek
#

so i installed node.js for an project and it changed my browser to yahoo from google?

vivid fulcrum
#

you didn't install from official sources then

safe creek
#

but i did?

#

you want to check my pip list in case?

vivid fulcrum
#

i fail to see how pip is correlated to node

safe creek
#

it gets stored in the pip list

#

the stuff that gets downloaded

vivid fulcrum
#

just but- pip is for python packages

safe creek
#

so ive installed something bad then

misty sigil
#

pip and node

#

hmm

safe creek
#

Usage: npm <command>

npm install        install all the dependencies in your project
npm install <foo>  add the <foo> dependency to your project
npm test           run this project's tests
npm run <foo>      run the script named <foo>
npm <command> -h   quick help on <command>
npm -l             display usage info for all commands
npm help <term>    search for help on <term>
npm help npm       more involved overview

All commands:

    access, adduser, audit, bin, bugs, cache, ci, completion,
    config, dedupe, deprecate, dist-tag, docs, doctor, edit,
    exec, explain, explore, find-dupes, fund, get, help, hook,
    init, install, install-ci-test, install-test, link, ll,
    login, logout, ls, org, outdated, owner, pack, ping, prefix,
    profile, prune, publish, rebuild, repo, restart, root,
    run-script, search, set, shrinkwrap, star, stars, start,
    stop, team, test, token, uninstall, unpublish, unstar,
    update, version, view, whoami

Specify configs in the ini-formatted file:
    C:\Users\forth\.npmrc
or on the command line via: npm <command> --key=value

More configuration info: npm help config
Configuration fields: npm help 7 config

npm@7.0.14 C:\Program Files\nodejs\node_modules\npm``` this is all correct right?
#

this is what i get from doing npm help

vivid fulcrum
#

can you tell us what you exactly did

#

lol

safe creek
#

i did npm install

misty sigil
#

what

#

npm install node?!

safe creek
#

no just npm install

#

and it installed

vivid fulcrum
#

you just said you installed node a few minutes ago-

#

are you high

safe creek
#

yes by doing what i just said

misty sigil
#

wha

safe creek
#

"are you high?"

misty sigil
#

i reckon you are

vivid fulcrum
#

you cannot use npm without node

#

node package manager

misty sigil
#

and where did you install node from?

safe creek
#

so i installed something bad then correct?

misty sigil
#

thats the main thing?

vivid fulcrum
#

you're being cryptic about what you did

safe creek
#

this

vivid fulcrum
#

what about it

safe creek
#

im answering @misty sigil question

misty sigil
#

if you donwloaded from there thats the official one

#

isnt it

vivid fulcrum
#

yes

safe creek
vivid fulcrum
#

but they said about 4 different things that contradict themselves now

misty sigil
#

wha

vivid fulcrum
#

so i do not know which statement is true by this point

misty sigil
#

??????????

safe creek
#

im confused

misty sigil
#

so am i

vivid fulcrum
#

so are we

safe creek
#

so are you readin what im saying

#

whats confusing to you

safe creek
#

elaborate

vivid fulcrum
#

you said 4 different things, all of them contradict eachother and none of them make sense

misty sigil
#

๐Ÿค” hmm

safe creek
#

all i wanted to know is if i installed something bad

vivid fulcrum
#

why are you being cryptic about what you did ๐Ÿ™„

safe creek
#

or not

vivid fulcrum
#

literally just say what you did step by step

safe creek
#

so

#

i opened my console

#

on my laptop

#

and typed in

#

npm install

misty sigil
#

you already had node installed then

safe creek
#

nope

vivid fulcrum
#

yes

safe creek
#

never used node

quartz kindle
#

npm install doesnt work without node

#

and npm install doesnt install node

misty sigil
safe creek
#

huh well i mustve forgotten then

vivid fulcrum
#

chances are npm install in fact actually did nothing unless you had a package.json (and some packages in the package.json) in the directory where the console opened

safe creek
#

i mustve had it installed if your saying it wont work if i have node installed

#

if thats the case im good

#

and my questions solved

quartz kindle
#

what npm install does, is it installs all packages from the package.json file in whatever folder you opened cmd in

safe creek
#

i see

vivid fulcrum
#

"my fridge isn't working!!"
"did you plug it in"
"well my microwave is plugged in so the fridge should work too!"

safe creek
#

well i guess im ok

#

im tired and could careless at this point

quartz kindle
#

the correct term would be "couldn't care less" xd

sterile lantern
#
 let money = db.all().filter(data => data.ID.startsWith(`money`)).sort((a, b) => b.data - a.data)
 let bank = db.all().filter(data => data.ID.startsWith(`bank`)).sort((a, b) => b.data - a.data)```

is it possible to add these two values
#

and then put it on a leaderboard

exotic galleon
#

my discord bot has been added to the server i want it to message the server owner and a random room on the server

vivid fulcrum
#

um

#

maybe don't?

exotic galleon
sterile lantern
#

because you're violating discord tos im p sure

vivid fulcrum
#

your bot should only interact with users when your users initiate the interaction first

#

aka

sterile lantern
#

yeah

vivid fulcrum
#

your bot responds to actions, it shouldn't be doing an action on its own

sterile lantern
#

because

#

i need to splice each

#

to get the id

#
for (var i in money)```
#

i want to do this to two values

#

for (var i in money & bank)

#

that wont work but thats what i mean

#

o i got it to work

#

but its not adding the values

viscid geode
sterile lantern
#

ok i have a new issue

#

so basically, the #1 user should be the one with the most in their bank

#

but

#

its showing their coin balance as someone with the highest coin balance

#

they don't have 56 coins in their wallet

#

they have 0

#

but the person (me) has 56 coins in their wallet

#

so its showing that at #1

#

hmm

#

ill just make sep lbs ig

viscid geode
#

O.O

#

show a, brief part of the code

#

or screen shot all of it if possible

sterile lantern
#

i found out the issue nw

#

it was because

#

i make the numbers depending on the highest amount of balance

#

and since bank overrules wallet that happened

blissful coral
#

Is there a way I can convert each of the vars to be inputted into ejs so I can run functions with my bot on it

earnest phoenix
blissful coral
#

don't dm server owner though

#

Just a channel

#

Bad idea

delicate zephyr
blissful coral
#

DB storing

delicate zephyr
#

why not use form action posting

#

and make a backend api

blissful coral
#

You got a point

hasty mulch
#

Can I do that in the function?

earnest phoenix
#

ofc you can do something like amount = int(amount), but type hinting it is cleaner imo

hasty mulch
#

Nvm, doesnโ€™t work in the function

delicate zephyr
#

You need a parser iirc

blissful coral
#

For what part?

#

I have body-parser loaded into my app

delicate zephyr
#

wait

#

nvm

#

you need to put

#

name="thing" in your input tags

blissful coral
#

Yeah I didn't think that would affect it

#

oh ok

delicate zephyr
#

brain go weee

blissful coral
#

Niceeeee

#

lmfao I forgot

torpid crown
#

I have add a command to Disbale/enable features in my bot like Disbale encome system I this allowed?

lyric mountain
#

Yes disbale encome

boreal iron
#

๐Ÿ‘€

torpid crown
#

I mean like this

#

I have already added and it works when the bot first joins the encome system will be on until someone who has the perm or a admin(mod) to control it

lapis violet
#

trying to embed my commands page that'll fit below my description in top.gg nicely

#

without any sort of border or smaller sized frame

#

anyone got an idea?

lucid prawn
#

how do i make my bot status refresh

boreal iron
#

Just use an iFrame

#

And adjust it with css to get rid of scrollbars, borders etc.

#

Media queries or simple min/max width rules are able to deal with different screen sizes etc.

#

@ benji

boreal iron
lyric mountain
#

But sincerely, are you serious about "encome"?

solemn vine
#

how to i get emoji's from other servers

old cliff
#

Buy nitro

old cliff
#

Android mome t

warped ravine
#

what is the solution for this error?

old cliff
#

Your bot doesn't have the required permissions

#

You need manage_invites permission

cobalt torrent
#

@earnest phoenix are you trying to import db from another file?

lament rock
#

Does anyone have any idea if it's possible to change dynamically generated type properties to be optional? I'm trying to write an ORM and the def is created from a sample object, which this dynamic type is used for the column defs when selecting and also the return value. I would hate to write the definitions multiple times if I didn't have to

https://cdn.discordapp.com/attachments/405285983794364417/817660148548894770/unknown.png
https://cdn.discordapp.com/attachments/405285983794364417/817660217789644810/unknown.png
https://cdn.discordapp.com/attachments/405285983794364417/817660310193307679/unknown.png

static sinew
#

how can i install 7.0.0-b21 version of quick.db in repl.it because its showing error
help me pls

bleak spire
#

@static sinew what language?

static sinew
#

js

royal herald
#

i think thats js

#

npm i quick.db@7.0.0-b21

bleak spire
#

Yea

static sinew
#

it showed an error that it cant find my index.js file after it

royal herald
#

what is ur current version of quick.db?

bleak spire
#

If it not working type npm uninstal quick.db than install it again

royal herald
#

^

static sinew
royal herald
#

npm uninstal quick.db

#

and then npm i quick.db

static sinew
#

ok

static sinew
static sinew
#

and stuck at it

royal herald
#

wait a 5min

static sinew
#

ok

#

anyone pls tell

#

how can i show leaderboards on latest version of quick.db or install older one with no errors on repl.it

night swan
#

์•ˆ๋…•ํ•˜์„ธ์š”

#

ํƒ‘ ์ฅ์ฅ๋‹˜

dusky sundial
earnest phoenix
#

is there any npm package for levels? Except discord-levelling, should be able to display rank card?

marble juniper
#

just do it without an npm package

#

lol

earnest phoenix
#

any idea?

marble juniper
#

just don't use a npm package

#

you don't need an npm package to make a leveling system

earnest phoenix
#

pog moment

#

my bot got approved

marble juniper
#

cool but you don't need to post that into development

lusty quest
#

nice i somehow managed to get the node build tools to get uninstalled, but idk how and now node-gyp-build fails, i guess its time to wait a hour again for the installer to finish

alpine hornet
#

Can someone possibly help me out with bot development? I'm a quick learner, Just need a rundown.

marble juniper
alpine hornet
#

I remember being told how to a year ago, there was a site that had a step by step tutorial on how to get the bot online. I just can't find the site. Is that the site? ^^ @marble juniper

#

Wait it is. Pog, thanks homie.

marble juniper
#

yeah

alpine hornet
#

Mind adding me on Discord?

marble juniper
#

that guide is probably the best you can find

tribal siren
#

hey

#

i wasn't here for a while

#

so

#

uh

#
    await message.channel.createWebhook(message.author.username, {
        avatar: message.author.avatarURL()
    }).then(hook => {
        hook.send(message.content);
        db.delete(`number-${message.channel.id}`)
        db.set(`number-${message.channel.id}`, message.content)
        hook.delete()
    })```
#

it says DiscordAPIError: Unknown Webhook

tribal siren
alpine hornet
tribal siren
#

if you need it

alpine hornet
#

My brain is broken.

undone rose
#

Anybody here know about Python graphics libraries I could use that are able to make something like this? https://cdn.tanners.space/yglj
Digital gauges where needles would actually need to move in real time as data gets sent to the program

#

not bot dev but I figured maybe one of you nerds knows something abt Python bc I dont ever use it

old cliff
#

Use Pillow

misty sigil
#

I assume you could just re-render it every frame

old cliff
#

^

undone rose
#

It would get data at a rate of 10hz

#

and run on a raspberry pi

old cliff
#

You could render it everything data comes

#

Or render each second

#

For mean data of that second

undone rose
#

It would need to render and display 10 images a second

#

And these images would be around 1920x1080

old cliff
#

Would use too much cpu

#

What are you using it for ?

undone rose
#

A digital dash for a car, like in that photo

old cliff
#

If html then you can use graphs

undone rose
#

So the computer needs to fit behind the dash of the car

#

lmao

#

Maybe smthn like a game engine would be better but then I need to figure out sending the data to the game engine via python

old cliff
#

Python graphics could work there

undone rose
#

good

#

Man I was hoping I wouldn't have to like

#

generate each image one by one that seems kinda really dumb

alpine hornet
misty sigil
#

I mean

undone rose
#

I feel like there's a much better method

misty sigil
#

you could use html or something like that

old cliff
#

Yes and use a graph lib

#

With custom css

undone rose
#

Yeah I would need to use Python to get the data so maybe that's the best bet

#

python server running to pass the data

old cliff
#

And python flask backend to power the front end

misty sigil
#

you could just integrate the server into python

undone rose
#

That is what I said

#

lol

#

ty

#

I'll look into wat can be done, definitely sounds like the easiest route

old cliff
#

I like your sharex server

undone rose
#

tyty

#

it's getting completely rewritten whenever I get not lazy

old cliff
#

Great ๐Ÿ‘

alpine hornet
#

Directions unclear. I am still lost lol.

undone rose
#

tfw

old cliff
alpine hornet
# old cliff Just do `npm i discord.js`

Thanks for the help, I'm gonna leave it to my development team to do this stuff. I'll just manage the server, and behind the scenes work. I am literally looking like a lost dog.

#

Thought I'd give it a shot, and got lost.

earnest phoenix
#

Hello, so for my rank command i've always used to fetch the levels of the guild and sort them descending. But as the bot grows it joins bigger guilds with thousands of level documents. My issue is that i want the rank of the user & their level data without fetching all docs from the guild. Is that something possible? Because it starts to take time to fetch all the docs from the db. Here is what i use currently:

const data_sorted = await lvl.find(
  { guildID: message.guild.id }
).sort([['totalXp', 'descending']]).lean();
const rank = data_sorted.findIndex(x => x.userID == member.id);
const levelData = data_sorted.find(x => x.userID == member.id);
old cliff
#

You can cache the data and fetch every 6 hours for each guild

#

And show data is updated every 6 hours

onyx hare
#

I tried doing ascii art using a embed and it went horribly wrong ๐Ÿ˜‘ anyone know how I can get it to work? (Js)

old cliff
#

I know what happened

lusty quest
#

iirc discord just butchered the formating

old cliff
#

Your ascii was larger than the embed allowed

#

So formating got ripped

#

Just make it so that chars after a specific limit are sent in new line

earnest phoenix
#

Seems like i found something. I could fetch the data of that one member and try to use this. To count all documents above that person by the totalXp.

old cliff
#

What if person is last rank?

#

You'll still be fetching all values

earnest phoenix
#

It won't matter if they're last rank.

#

Wow yes, it did improve dramatically.

eternal osprey
#

hey guys i recently made a command that saves voice chats

#

and saves it in pcm file format

misty sigil
#

ok

#

sure

eternal osprey
#

however, how would i convert it to mp3?

#

well if anyone knows the answer, please ping!

torpid crown
#

And i will be adding more items to the shop

restive furnace
torpid crown
#

But i waana test something real quick

cinder patio
#

what does encome mean

#

you mean income?

pale vessel
#

economy?

zenith terrace
#

yea I think economy

summer torrent
#

anyone here using kurasuta?

torpid crown
#

Bruhh

#

Now i have to change lot of names in the commands

pale vessel
torpid crown
#

Ty guys for telling me

#

Should change the $onlyAdmin to $onlyPerms?

pale vessel
#

ยฏ_(ใƒ„)_/ยฏ

old cliff
#

Nah

pale vessel
#

change it to $onlyFans I guess

old cliff
#

Depends on you

torpid crown
#

OnlyPerms for the users who has permission to use the command

#

I will be changing it

#

I have to check if it exists

leaden lake
#

does anyone know how I can modify the announcement icon ? I am trying to do it but the only thing I can do, is to remove it ๐Ÿ˜… I can't replace it

using CSS

quartz kindle
#

what announcement icon?

umbral zealot
#

I presume this one

leaden lake
#

yeah this one

quartz kindle
#

i dont remember ever seeing that

leaden lake
#

yeah, I done it but I can't change font size

#

look at some profile, if they done an announcement, it will be shown on page

#

upper the long description

viscid gale
#

ok, since sending links would count as advertising, I'll talk about it instead(dm me if ur interested)
I have something called HideJS and it is a system that will take your backend callback function and modify it so that you can return HIDDEN client side script

Return frontend script to client that CANNOT be viewed by client side user. After all, why obfuscate code when you can just HIDE it

Like I said, directly message me if you're interested >:D

cinder patio
#

that doesn't sound like a good idea tbh

viscid gale
#

how so though?

#

i mean obfuscation of client side script exists in attempts to hide its ways from the user

cinder patio
#

because there's nothing wrong with obfuscating the javascript files

#

And if someone steals you can just file a lawsuit

viscid gale
viscid gale
cinder patio
#

yeah it's not a good idea because obfuscating already does a good job

viscid gale
#

but if lawsuits are on the table why try to hide it in the first place?

cinder patio
#

obfuscating your code isn't only done for hiding it, it also makes it smaller

viscid gale
#

because it aint the methods in terms of copywright sense.. it's methods of communicating with their server, stuff that needs to be loaded client side but they dont want the user to be able to imitate

viscid gale
vivid fulcrum
#

Return frontend script to client that CANNOT be viewed by client side user.
this statement is just false lol

leaden lake
vivid fulcrum
#

anything the client receives, the client can see

viscid gale
vivid fulcrum
#

would it be through websocket traffic

#

or anything

#

there is SSR

#

server sided rendering, where the rendering is done by the server, so the client doesn't really see everything

viscid gale
#

if i post the link here it's advertising so just dm me if u wanna find out

vivid fulcrum
#

but that statement is just false

pale vessel
#

new pfp ๐Ÿ‘€

cinder patio
#

it's not advertising if we're asking you to give the link, I think

viscid gale
#

ohh ok

#

i'll give an example of a running one just in case the mods get edgy for posting a repository

pale vessel
#

@vivid fulcrum did you lose your main or just decided to use an alt for some reason?

vivid fulcrum
#

i lost access to the main

pale vessel
#

good job

vivid fulcrum
#

i contacted support but no response whatsoever

earnest phoenix
#

What is the meaning of a shard?

pale vessel
vivid fulcrum
#

splitting a big thing into a bunch of smaller things

pale vessel
#

well that sucks

cinder patio
viscid gale
viscid gale
vivid fulcrum
#

is this supposed to do anything

#

because it doesn't

viscid gale
#

open the link in a new tab

cinder patio
#

can't even open dev tools because of the popup

vivid fulcrum
#

i did

#

it doesn't do anything lol

viscid gale
#

this is what it shows me..

vivid fulcrum
#

it doesn't show anything for me

viscid gale
#

are you opening it in some place that doesn't use alert?

vivid fulcrum
#

no

#

desktop firefox

viscid gale
#

hm.. this IS strange.. lemme load it on firefox and see

cinder patio
#

doesn't even load for me because of that

viscid gale
#

ik..

#

ik what that alert means.. but for not seeing an alert?

#

thanks for the feedback.. different browsers seem to work very differently with my code(even though im not trying)

vivid fulcrum
#

i've said it before and i'll say it again

#

you can't hide front code from the client

#

even if you encode it in something

#

the code for decoding is going to be on the front

viscid gale
vivid fulcrum
#

oh but you can't

#

lol

cinder patio
#

using a websocket and evaling the code, I guess? Unless the dev tools allow you to see websocket transfers as well

vivid fulcrum
#

google and me having problems proves that you can't

viscid gale
#

people obfuscate sometimes because "hiding is impossible"

#

but it is.. im just not sure what's going on with my tabs and urs

vivid fulcrum
#

for other uses, use wireshark

#

you can see all traffic with wireshark

viscid gale
vivid fulcrum
#

i literally... didn't?

viscid gale
#

o..k

vivid fulcrum
#

you cannot hide it

#

you're an idiot if you think otherwise

viscid gale
#

until someone who wasnt the brightest, strongest or most charming found out that the world was round

#

people said it was flat

#

it's not like i said i hacked the nsa or some impossible chit

#

I just gotta get my code to work with other browsers.. gonna run some experiments

#

be back later today :D

vivid fulcrum
#

if i tell you "i want this chocolate"
and you tell me "then eat that chocolate"

i cannot eat the chocolate before you give me the chocolate

#

once you give me the chocolate, it's over, i have it, i can do anything i want with it

#

anything the end user receives can be read

#

you didn't invent anything new

viscid gale
#

things like headers that you can't imitate

vivid fulcrum
#

it would be really funny if all you did was SSR and pretend it was something new lol

viscid gale
#

things like headers request information that give contexts that you cant replicate

vivid fulcrum
#

what

#

are you on about

#

lol

viscid gale
old cliff
#

@vivid fulcrum new light theme pfp ?

vivid fulcrum
viscid gale
#

ok cya

boreal iron
#

Emotions are jumping from frustration to be pleased within seconds in this channel okeh

vivid fulcrum
#

how do people not get that if you send something to the client, the client is going to be able to read it no matter what

#

otherwise the browser would not be able to execute whatever was sent to the client

outer perch
#

I'm somewhat excited, I'll be learning React today ๐ŸŽ‰

vivid fulcrum
#

you're in for a ride, react is so much fun

outer perch
#

~(^o^)~

feral aspen
#
(node:24) UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Permissions
at RequestHandler.execute (/home/container/node_modules/discord.js/src/rest/RequestHandler.js:170:25)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:24) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 88)

It says To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict

#

How can I do that?

summer torrent
#

"DiscordAPIError: Missing Permissions"

feral aspen
#

I know.

#

This stupid error won't shut up.

#

I putted an intense amount of try catch blocks on all events, and stuff, but yet won't stay shut.

vivid fulcrum
#

node file --unhandled-rejections=strict

#

that's probably because you have a misunderstanding of promises

feral aspen
summer torrent
#

just restart the process

vivid fulcrum
#

it would do what the error says it would do, kill your node process on an unhandled promise rejection

#

anyway

#

the reason why try catch is not working is because you're not awaiting the promise

#

also

#

instead of wrapping in a try catch

feral aspen
vivid fulcrum
#

...just check if you have permissions to execute the action in the first place

feral aspen
#

I did.

#

For example.

#

I am getting 300 errors an hour.

vivid fulcrum
#

you missed something somewhere

feral aspen
#

God knows why, I think it's from the events.

lusty quest
#

events dont need permissions

vivid fulcrum
#

they're doing an action in the event

feral aspen
#

Sometimes the bot doesn't have permissions to send messages from the events.

#

Like guildMemberAdd

vivid fulcrum
#

sure, you can wrap in a try catch and forget about it, but remember that it's still costing you a request and contributing to the global ratelimit

#

that's why you should always check if you have permissions to do the action in the first place

#

also also

#

remember that channel permissions have priority over guild permissions

vivid fulcrum
#

wherever you're executing an action ๐Ÿคทโ€โ™‚๏ธ

feral aspen
#

I'm not able to know what is causing this error to develop.

vivid fulcrum
#

before executing your command, first check if your bot has permissions to execute the command in the first place

#
//pseudo
//take this as fun command that sends an embed
async execute() {
//if we don't have send message permissions OR embed link permissions here, lets not execute the command
if(!sendMessages || !embedLinks) return;
//if we got here, we know the bot has permissions to send messages and send embeds


await send(...);
}
#

just a small example

#

you should do these checks before executing any sort of action

#

banning, kicking, sending a message, executing a command...

cosmic forum
#

is there a way to view pdf files uploaded to discord without it downloading?

vivid fulcrum
#

no

cosmic forum
#

ah

outer perch
#

I'm already happy on how this is going, even if I haven't written any code yet xD

feral aspen
#
const { MessageEmbed } = require("discord.js");
const { cyan } = require("../../other/colors.json");

module.exports = {
    config: {
        name: "dice",
        aliases: [],
        usage: "!dice",
        category: "fun",
        description: "Rolls a dice!",
        noalias: "No Aliases",
        accessableby: "Members"
    },
    run: async (bot, message, args) => {
        
        // This was before.
        /*const dice = Math.floor(Math.random() * 5) + 1;

        const embed = new MessageEmbed()
        .setDescription(`Your dice landed on ${dice}!`)
        .setColor(cyan)

        return message.channel.send(embed);*/

        // This is after
        if(!sendMessages || !embedLinks) return;
        const dice = Math.floor(Math.random() * 5) + 1;

        const embed = new MessageEmbed()
        .setDescription(`Your dice landed on ${dice}!`)
        .setColor(cyan)

        await return message.channel.send(embed);
    },
};
#

Like that?

vivid fulcrum
#

yes, but sendMessages and embedLinks is just a placeholder in my pseudo code, you need to replace that with actual permission checks in djs

pale vessel
#

await return is not a thing

vivid fulcrum
#

also that

feral aspen
#

can't I just return?

vivid fulcrum
#

you cannot await a return

#

you probably meant to do return await

feral aspen
#

Yes, I guess that.

vivid fulcrum
#

returning without the await will return Promise<Message>

#

returning with the await will return Message

feral aspen
#

.. and must be in async.

earnest phoenix
#

Hey, I have a problem:
const logsnuke = message.client.channels.cache.find(channel => channel.name === 'suggestion')
My bot is in 2 servers, I test a nuke command, but he sends the logs in the wrong server.
How to return if its not the server where the command has be executed?

vivid fulcrum
feral aspen
#

Put the if statement check

vivid fulcrum
feral aspen
#

.. or can I make it in the message.js?

earnest phoenix
#

?

vivid fulcrum
vivid fulcrum
earnest phoenix
#

or just

#

const logsnuke = message.client.channels.cache.find(channel => channel.name === 'suggestion')
to
const logsnuke = message.client.guild.channels.cache.find(channel => channel.name === 'suggestion')

#

works this?

vivid fulcrum
#

guild is not a property on a client

earnest phoenix
#

oh

vivid fulcrum
#

you're close though

earnest phoenix
#

so I need to do what?

vivid fulcrum
#

take a guess

earnest phoenix
#

idk

vivid fulcrum
#

guess

earnest phoenix
#

but

#

idk

feral aspen
#

WoopS <---

earnest phoenix
#

:/

vivid fulcrum
#

and i'll tell you if it's correct or wrong, and where you went wrong

earnest phoenix
#

euhhh

vivid fulcrum
earnest phoenix
#

const logsnuke = message.guild.client.channels.cache.find(channel => channel.name === 'suggestion')

#

?

vivid fulcrum
#

lose the client

#

and then it'll be correct

earnest phoenix
#

const logsnuke = message.guild.channels.cache.find(channel => channel.name === 'suggestion')

#

?

vivid fulcrum
#

yes

#

see, it wasn't that hard

#

i'm telling you to guess because it makes you think

earnest phoenix
#

oof

boreal iron
feral aspen
lusty quest
#

the first pinned message of this channel strikes again i guess

feral aspen
#

Btw, cry. Should all my message.channel.send(...) have an await before them? like await return message.channel....

#

Like in all my commands?

#
returning without the await will return Promise<Message>
returning with the await will return Message
lusty quest
#

doesnt send() returns a promise?

#

so you could .catch() it

vivid fulcrum
#

once again await return isn't a thing

but it's really up to you, if you don't await you'll return Promise<Message> and the command execution won't wait for the send to finish

if you await you'll return Message and the command execution will wait for send to finish

boreal iron
#

If you wanna await the result to do others things after, if not no

vivid fulcrum
#

if you ask me, awaiting is better in all cases, follows the async all the way pattern

feral aspen
vivid fulcrum
#

yup

feral aspen
#

Thank you! That fixes my Missing Permissions error, hope so, right?

#

I do hope so.

vivid fulcrum
#

for the most part, the checks will prevent the command from executing if the bot doesn't have enough permissions

vivid fulcrum
#

you can further expand this by allowing replies on what permissions are missing etc.

#

the limit is your imagination

#

design it however you want

feral aspen
#

Yes, I know!

#

Thank you! :)

boreal iron
#

Just keep a logical structure and donโ€™t check if a client is allowed to use a command after it has been executed already

#

that tip should immediately promote me to a god like role

safe creek
#

anyone else have problems trying to connect to the vsc market place

sudden geyser
#

No.

pale vessel
#

No.

earnest phoenix
#

uuuhhh

#
     message.guild.createChannel('test',[{
     type: 'role',
     id:args[0],
     permissions:328896
    }])
    .catch(console.error);
#

message.guild.createChannel is not a function

warped ravine
#

Requests invite privileges for invite commands not included in the bot I don't know why I'm looking for an expert who can help

vivid fulcrum
#

you don't have permissions for whatever you're trying to do

#

from what i'm seeing it's fetching invites

#

which would mean you don't have permissions to manage invites

feral aspen
#

391 results.

warped ravine
vivid fulcrum
#

??

feral aspen
#

oh ffs my nodemon

#

OH GOD.

warped ravine
vivid fulcrum
#

well it's clearly trying to do something with the invites

#

also

feral aspen
vivid fulcrum
#

you're using djs v11 or earlier

#

update to v12

warped ravine
vivid fulcrum
#

sucks to be you

#

you're going to have to update soon enough regardless as v11 is granted to break this year

warped ravine
vivid fulcrum
#

no

boreal iron
#

huh... I'm smelling a new business project

warped ravine
#

i understand

vivid fulcrum
#

your best bet is changing your code gradually by going through the changelog

livid lichen
#
bot.GetServerCount = async function(){
    const promises = [
      bot.shard.fetchClientValues('guilds.cache.size'),
    ];
    
    Promise.all(promises)
      .then(results => {
        const totalGuilds = results[0].reduce((acc, guildCount) => acc + guildCount, 0);

        return totalGuilds
      })
  }

  bot.GetUserCount = async function(){
    const promises = [
      bot.shard.broadcastEval('this.guilds.cache.reduce((acc, guild) => acc + guild.memberCount, 0)'),
    ];
    
    Promise.all(promises)
      .then(results => {
        const totalMembers = results[0].reduce((acc, memberCount) => acc + memberCount, 0);
        
        return totalMembers
      })
  } 
``` Hi! Can someone help me out? Both of these functions come out as undefined. Anyone know why? I used await when calling the function.
viscid gale
cinder patio
#

chrome

viscid gale
#

very interesting.. do u got some strange settings on chrome?

#

i tried opening chrome all kinds of ways.. gonna try chromium and see if it does that

cinder patio
#

I don't think so

earnest phoenix
# vivid fulcrum well, it isn't
const Discord = require('discord.js');
const { deletionTimeout, reactionError, reactionSuccess, pinEmojiId } = require('../../config.json');

module.exports = {
  name: 'setlogs',
  description: `Crรฉe des channels pour les logs du serveur.`,
  usage: 'nuke',
  requiredPerms: 'ADMINISTRATOR',
  permError: "โŒ Tu n'as pas la permission !",
  async run(message, args, prefix) {
    const staffRole = (args[0]);
    if (!args[0]) {
    let msg = await message.channel.send(`Conseil de pro : ${prefix}setlogs (id du role Staff)`);
    msg.delete({ timeout: deletionTimeout });
    return message.react(reactionError);
    }
     message.guild.channels.create('test',[{
     type: 'role',
     id:staffRole,
     permissions:328896
    }])
    .catch(console.error);
  }
}
#

yes

#

but not works

vivid fulcrum
#

check the doc link i sent you for create

#

there's a sample on how to use it properly

ebon ibex
#
exports.run = async (client, message, args) => {

const clausping = new Discord.MessageEmbed()

.addField(`**Pong!!**`, `**${client.ws.ping}** ms`)
  
return message.channel.send(clausping)
  
  
}
  
exports.conf = {
  enabled: true,
  guildOnly: false,
  aliases: ["ms"],
  permLevel: 0
};

exports.help = {
  name: 'ping',
  description: 'Ping Command',
  usage: 'ping'
}; ```
this is not working, what is the problem
vivid fulcrum
#

you tell us

#

it's your code

viscid gale
#

tor and firefox(well tor is modded firefox in the first place) return nothing..(I think firefox tries to use a normal xhr like fetch or xmlhttprequest separate from the script loading and if it doesnt get anything.. don't load the script ig)

#

but as for the chrome doing that. still didnt see that yet

#

be back soon

ebon ibex
#
exports.run = async (client, message, args) => {

const clausping = new Discord.MessageEmbed()

.addField(`**Pong!!**`, `**${client.ws.ping}** ms`)
  
return message.channel.send(clausping)
  
  
}
  
exports.conf = {
  enabled: true,
  guildOnly: false,
  aliases: ["ms"],
  permLevel: 0
};

exports.help = {
  name: 'ping',
  description: 'Ping Command',
  usage: 'ping'
}; ```
this is not working, what is the problem??
who can say, i dont have many times
vivid fulcrum
#

you tell us

#

it's your code

#

x2

ebon ibex
#

yes

#

this is so easy command but not working

ebon ibex
#

should i delete args?

earnest phoenix
#

Delete and test

ebon ibex
#

ok

vivid fulcrum
#

@viscid gale i just opened your site in edge and it took me less than a minute to get your script

viscid gale
vivid fulcrum
#

you have a decoder

#

which i can use to decode

#

lol

viscid gale
#

no it aint a decoder

#

like i said

ebon ibex
#

not working @earnest phoenix

viscid gale
#

u didnt find the hidden script

earnest phoenix
#

message.js

viscid gale
#

thanks for proving my point lol

pliant harness
#

-bots

gilded plankBOT
pliant harness
#

What

vivid fulcrum
#

you're straight up doing a request that fetches the script

pliant harness
#

What is DeathABot

vivid fulcrum
#

...

#

you're not very bright are you

pliant harness
#

Me?

vivid fulcrum
#

no

pliant harness
#

k

viscid gale
#
alert('HIDDEN SCRIPT >:D\nAt...\n/')
#

you didnt find that anywhere now did you

viscid gale
#

dig as long as u like

pliant harness
#

-bots

gilded plankBOT
pliant harness
#

Huh

boreal iron
viscid gale
#

fr ^^

sick fable
#

can someone please tell me why my bot isnt sending welcome messages

#

i enabled intents too

viscid gale
#

if it's so simple.. pls find the script

pliant harness
#

sry

viscid gale
#

the earth is not flat, client side script can be hidden from user

feral aspen
#

Hey, cry. Is it a good idea to do this?

livid lichen
#
bot.GetServerCount = async function(){
    const promises = [
      bot.shard.fetchClientValues('guilds.cache.size'),
    ];
    
    Promise.all(promises)
      .then(results => {
        const totalGuilds = results[0].reduce((acc, guildCount) => acc + guildCount, 0);

        return totalGuilds
      })
  }

  bot.GetUserCount = async function(){
    const promises = [
      bot.shard.broadcastEval('this.guilds.cache.reduce((acc, guild) => acc + guild.memberCount, 0)'),
    ];
    
    Promise.all(promises)
      .then(results => {
        const totalMembers = results[0].reduce((acc, memberCount) => acc + memberCount, 0);
        
        return totalMembers
      })
  } 
``` Hi! Can someone help me out? Both of these functions come out as undefined. Anyone know why? I used await when calling the function.
pale vessel
#

you're not returning anything

viscid gale
#

for bot.GetServerCount u return nothing

sick fable
#

๐Ÿฅบ โค๏ธ

pale vessel
#

GetUserCount too

livid lichen
pale vessel
#

you didn't use return for Promise.all

viscid gale
#

technically but that's a function INSIDE the then

livid lichen
#

So, how would I fix it?

pale vessel
#

return the Promise.all?

livid lichen
#

as a const value?

pale vessel
#

Just add return I guess

cinder patio
livid lichen
#

Okay. Thanks!

pale vessel
viscid gale
# cinder patio

now to make sure ur not capping.. I'm gonna change the hidden script to a comment.. do the same thing and senda pic

pale vessel
#

what

cinder patio
#

multiple people already told you it's possible and proved it

pale vessel
#

you're just making requests

vivid fulcrum
#

it's loading an iframe lol

pale vessel
#

bru

#

why

vivid fulcrum
#

you're not really smart

livid lichen
#
bot.GetUserCount = async function(){
    const promises = [
      bot.shard.broadcastEval('this.guilds.cache.reduce((acc, guild) => acc + guild.memberCount, 0)'),
    ];
    
    return Promise.all(promises).then(results => {
      results[0].reduce((acc, memberCount) => acc + memberCount, 0);
    })
  }``` This would work... right?
vivid fulcrum
#

bet you're embarrassed rn @viscid gale

livid lichen
#

Okay!

viscid gale
#

it is possible

pale vessel
#

you can't

vivid fulcrum
#

no it isn't

#

youre a moron

feral aspen
#
try {
                        rMember.roles.add(role.id).catch(e => {
                            embedError.setDescription(tryError);
                            return await message.channel.send(embedError);
                        });
                    } catch (err) {
                        embedError.setDescription(tryError);
                        return await message.channel.send(embedError);
                    };

Cry, how can I async this?

vivid fulcrum
#

half of this code seems to be stolen anyways

viscid gale
pale vessel
viscid gale
#

nicee

#

ok.. so u found it..

pale vessel
#

they're literally requests with headers

#

????

vivid fulcrum
misty sigil
#

bruh

#

i found it too

#

same method

vivid fulcrum
#

also you're copying window objects lol

misty sigil
#

just in the network tab of devtools

summer torrent
viscid gale
cinder patio
#

The blue part of your code is there to fool people, it doesn't really do anything, the red parts make a post request to the same URL, and _pw seems to be a secret one-time key which gets the script

vivid fulcrum
pale vessel
lusty quest
viscid gale
vivid fulcrum
viscid gale
#

bruh

lusty quest
#

just the docs are shite

vivid fulcrum
#

...you're copying the window into another object

#

lol

summer torrent
vivid fulcrum
#

you're a clown

lusty quest
viscid gale
viscid gale
misty sigil
#

ez

vivid fulcrum
#

LMFAO

torpid crown
#

I have seted all the modrate commands to $onlyPerms[ban;kick;Error msg)] the meaning the user's hwi has one of those permission ban or kick he will be able to use is this that command is this allowed too?

livid lichen
#

@pale vessel Servers: undefined Users: undefined Didn't work. Should I share my code?

vivid fulcrum
#

if you hid the front code then the browser wouldn't be able to render it,, how isn't that going inside of your head???

#

stop embarrassing yourself

viscid gale
misty sigil
#

this is genuinely the worst thing i've seen in here so far

earnest phoenix
#

message.guild.channels.create('test')
message.channel.overwritePermissions(args[0], { READ_MESSAGES: true, SEND_MESSAGES: false})
.catch(console.error);

viscid gale
earnest phoenix
#

I have a error :/

livid lichen
#
bot.GetServerCount = async function(){
    const promises = [
      bot.shard.fetchClientValues('guilds.cache.size'),
    ];
    
    return Promise.all(promises).then(results => {
      results[0].reduce((acc, guildCount) => acc + guildCount, 0);
    })
  }

  bot.GetUserCount = async function(){
    const promises = [
      bot.shard.broadcastEval('this.guilds.cache.reduce((acc, guild) => acc + guild.memberCount, 0)'),
    ];
    
    return Promise.all(promises).then(results => {
      results[0].reduce((acc, memberCount) => acc + memberCount, 0);
    })
  }
``` Code.
vivid fulcrum
#

because you keep claiming you're doing the impossible

#

when you aren't

#

you're just clowning

#

honk honk

misty sigil
#

or maybe it was that dude who couldn't make an object after 6 months of js