#development

1 messages ยท Page 645 of 1

high lava
#

It'll automatically create it's own database entry with that name on connection

#

It also has a very detailed documentation that you can follow

#

Don't use a sample-database. They're not exactly meant to be used :P

bleak vortex
#

im using typescript btw

earnest phoenix
#

you shouldn't rely on discord as your data source, especially not on the user's username and discriminator

west spoke
#

Use ID at least

earnest phoenix
#

someone can change the channel name anytime, the channel can get deleted, the user can change their username/discriminator

#

for tickets it's best to store the channel id in a database

west spoke
#

^

bleak vortex
#

but i didnt change my name or discriminator

#

๐Ÿ˜•

west spoke
#

Use

#

Id

bleak vortex
#

Fine

#

the channel name will be 20 characters long tho

west spoke
#

that's fine...?

bleak vortex
#

yes it is

#

idk

west spoke
#

The ID is gonna be the same length as normal

bleak vortex
#

yes

#

oh it worked lol

#

idk how but thx

earnest phoenix
#

imo using id in the text channel looks bulky an unappealing and it still doesnt solve the issue of someone changing the channel name and your thing breaking

robust acorn
#

ID always remains the same

earnest phoenix
#

for my mod bot which has a case system i rely on id saved in a database only, you're proofing your bot that way

bleak vortex
#

i could put the id in a map

#

and remove it from the map after the ticket gets closed

earnest phoenix
#

better, but presents a problem of not being persistent

#

the map'll get reset if the process gets closed

bleak vortex
#

like if the bot restarts

#

?

earnest phoenix
#

yes

bleak vortex
#

i cant even read that

#

i dont know c#

pale marsh
#

What's the problem? I know C#

earnest phoenix
#

nah it's nothing with me, they had a problem with text channels and i suggested a database system instead of relying on text channels

bleak vortex
#

there's no problem

#

:)

pale marsh
#

Ah okay

bleak vortex
#

i have a problem though

#

i can't figure out how to add permissions to created channels

earnest phoenix
bleak vortex
#

yeah i use a clone too

#

i can use paste.mod

opaque eagle
#

What's the easiest way to make a chart out of values in a postgres db?

#

rn my bot is recording the # of players in a game into a db once each minute, but I'd want to make myself a dashboard where we see the values per month/year in sort of a dynamic way where u can scroll and move around the graph

amber fractal
#

Isnt that like

#

against tos

#

if they dont consent

opaque eagle
#

well I used the word "bot" cuz this is supposed to be about bot dev or so I think

slender thistle
#

If the users are not informed

opaque eagle
#

not a discord game/presence

#

like it's the views of a html5 game I made

slim heart
#

how can i tunnel local ports? so like if i have something hosted on :25565 (joke but fr) and i wanna make it able to be connected by localhost:123123 is there some sort of command line something thatll let me do that without using nginx or something like that
non http btw
temporary too

vague chasm
#

make a redirect on the second webserver?

slim heart
#

all local

#

but yes the redirect. theres no way i can find to do this properly tho

#

without something bulky and uneeded like nginx

high lava
#

Can't you just tell whatever's on port 123123 to connect to Minecraft?

#

It's local anyway. No port forwarding needed

vague chasm
#

yea

dusky marsh
#

Is a message link just guildId/channelId/messageId?

earnest phoenix
#

yes

dusky marsh
#

thank you

young hill
#

Would 500ms be a good delay between messages for a bot?

earnest phoenix
#

what for

pale marsh
#

Depends on how many messages in total you're sending

abstract crow
#

What are some good node modules to use for creating an image like mee6 or some other bots?

hardy wing
#

hello! what programming language do i need to know to create a bot?

abstract crow
#

Depends on what ya want. I recommend js

mossy vine
#

@hardy wing any language that can do http requests really

hardy wing
#

looks like im gonna have to learn one

#

I only know c#

mossy vine
#

yes..

hardy wing
#

visual studio

#

ahaha

earnest phoenix
#

there's a few libs for c#

hardy wing
#

ohh I can use C# for discord?

earnest phoenix
#

yes

mossy vine
#

yes

hardy wing
#

is there a specific software that I can use? for creating discord bot?

earnest phoenix
#

you mean IDEs?

mossy vine
#

any code editor

#

literally any

hardy wing
#

so I can use Visual Studio?

earnest phoenix
#

yes

mossy vine
#

of course

hardy wing
#

thats just basically what we are using in school

mossy vine
#

for C# development, visual studio is probably the best ide

hardy wing
#

i mean i see

inner jewel
indigo sun
#

uh

#
npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/rxjs-8e24fc07/_esm2015/internal'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/rxjs-8e24fc07/_esm2015/internal'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/rxjs-8e24fc07/_esm2015/internal'

npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/rxjs-8e24fc07/_esm2015/internal'

npm WARN tar ENOSPC: no space left on device, write

npm ERR! cb() never called!


npm ERR! This is an error with npm itself. Please report this error at:

npm ERR!     <https://npm.community>


npm ERR! A complete log of this run can be found in:

npm ERR!     /tmp/npm-cache/8.15.1/_logs/2019-06-28T21_29_30_798Z-debug.log```
#

what did mean

prime cliff
#

๐Ÿ‘€ no space left on device

#

What did you break

indigo sun
#

i broke glitch

#

apparently

mossy vine
#

yeah dont use glitch. if builder is right and it is indeed a storage issue, youre screwed

indigo sun
#

then what should I use

earnest phoenix
#

a proper vps

indigo sun
#

such as?

hushed berry
#

check pins

mossy vine
#

there are a few pinned in this channel

bright spear
#

Wait what

#

@indigo sun uh try running enable-pnpm in console

smoky mica
#

I'll update it and make it look better, but for now does the page look alright?

muted ridge
#

Looks fine to me.

smoky mica
#

Alright ty.

muted ridge
earnest phoenix
#

meh

#

overly basic

#

needs more indentation to make it more readable

bright spear
#

yeah, doesnt look like theres much/any css + not very detailed

#

also the short description isnt very useful

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

indigo sun
#

do you genuinely have like... issues? you seem to have extreme reactions to literally everything and I'm beginning to doubt that it's a meme.

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

tulip wave
#

Seems like it

slim heart
#

@inner jewel i need it for windows, i found a bunch of those but only for linux

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

high lava
#

You don't need to ping me in Dev

sage bobcat
#

One message removed from a suspended account.

inner jewel
high lava
#

Why do you use Async/Await with Accounts but a callback with Gold?

#

Also, you completely Butchered the callback

#

You have a callback function in JSON code

slim heart
#

right perfect ill just set up a batch script around it ty

high lava
#

@sage bobcat

#

You also put a callback INSIDE of a callback that leads to nothing INSIDE of JSON code

rugged kelp
#

what code for player online ? think3d

sage bobcat
#

One message removed from a suspended account.

rugged kelp
#

No

sage bobcat
#

One message removed from a suspended account.

high lava
#

That's not the wrong server

sage bobcat
#

One message removed from a suspended account.

rugged kelp
#

on server

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

rugged kelp
#

yes

high lava
#

@rugged kelp client.user.setActivity('whatever')

rugged kelp
#

no

high lava
#

Oh. I can't help you there bud

rugged kelp
#

offline and online members

high lava
#

Haven't done anything like that by myself. Just server user count

rugged kelp
#

yes

#

user online count

high lava
#

Guild.memberCount is for the amount of member in the server, online or not

rugged kelp
#

for online ?

high lava
#

Again, not so sure about that

#

Yeah. Not that I could see. Unless somebody else can help you with that, I can't see anything about checking online vs offline status

#

Just the total amount of member in the guild

#

nvm. found it. lmao

slim heart
#

just for context .members will only be thing presented to the client meaning some members may be uncached so use .memberCount for the total number of members

high lava
#

GuildMember.presence.status has that info

#

There you go

#

Now I don't think it's a good idea to check this all at once due to maybe being rate limited, but doing so for like a single user's status at a time is fine

slim heart
#

na you can filter through it no requests needed

high lava
#

Then yeah, there you go

#

Oh yeah. Because of the members collection

slim heart
#

something like js Guild.members.filter(x=>x.presence.status === 'online').size

high lava
#

I keep forgetting collections are a thing

rugged kelp
#

:/

slim heart
#

wait i jsut depred

#

its not .count?

#

im so lost

high lava
#

@sage bobcat You may just want to scrap that code and do it again, but this time use await like you did with accounts, since I know you can at least do that

slim heart
#

jesus derp moment, .size*

high lava
#

I was about to say, it may be .size

slim heart
#

my brain went partypoop

high lava
#

I've been tired all day. sucks

#

Ok. back to offtopic

rugged kelp
#

message.guild.online.memberCount It's good ?

slim heart
#

no

#

filter through the members Collection

high lava
#

message.guild.members.filter(x=>x.presence.status === 'online').size

#

That's what you want. lol

#

Just change online to offline for offline people, dnd for dnd people, etc

#

It's documented

rugged kelp
#

thnaks

high lava
#

np

rugged kelp
#

Why ? think3d

high lava
#

It tells you why

#

channels is underfined

rugged kelp
#

and how to define ?

high lava
#

You define channels

#

or use the proper property

rugged kelp
high lava
#

You probably meant to use channel*

rugged kelp
#

:/

slim heart
#

@rugged kelp on line 8 you spelled mentions wrong

rugged kelp
#

oh

#

oo

slim heart
#

But yes thatโ€™s the only help youโ€™ll get you need to learn how to read error messages yourself

rugged kelp
#

=] thanks

high lava
#

Why did I think that was a custom class? I need to do normal js again

ember atlas
#
const client = new discord.client();
               ^

TypeError: discord.client is not a constructor

What does it mean it's not a constructor? Never had this issue ever

smoky spire
#

capital c

abstract crow
#

Show more code, you may have defined discord as D

#

And capital C for .Client ^

drowsy sentinel
#

it's .Client() not client()

#

Capitalization matters.

abstract crow
#

I use capital D so that could also be it, but regardless you need a capital C for .Client

ember atlas
#
const discord = require('discord.js'); 
const client = new discord.client(); 

client.on('ready', () => { 
    console.log('Online!')
    client.channels.get('594346571450155008').send(`I am online!\nIn ${client.guilds.size} servers and for ${client.users.size} users!`)
    client.setActivity('In Development', { type: 'PLAYING'})
}); 

client.on("message", (message) => {
    if (message.content.startsWith("ping")) {
      message.channel.send("pong!");
    }
});

client.login('token')
abstract crow
#

Yeah ok so then it is just new discord.Client()

#

Sorry about that then, some just do capital D so I figured that I would ask

ember atlas
#

So capitalize c?

smoky spire
#

yes

abstract crow
#

new discord.Client();

#

Yep

ember atlas
#

Wait client.setActivity isnt a function?

abstract crow
#

Make sure you capitalized the .Client not the const client

ember atlas
#

i did

scenic kelp
#

I think it's client.user

ember atlas
#

its now const client = new discord.Client();

#

oh wait

#

im missing that smh

scenic kelp
smoky spire
#

what linguine said

abstract crow
#

Yeah he is right

drowsy sentinel
#

You can't change the activity for Client, you change it for ClientUser

ember atlas
#

I see

drowsy sentinel
#

client.user, please read the documentation.

ember atlas
#

I mean smh

#

Ive used it b4 just forget the user

#

dont assume i havent read docs

drowsy sentinel
#

If something doesn't work, you can always try googling it with the keyword discord.js. But in the case of "setActivity" just type it under search in the d.js docs.

scenic kelp
#

Half the time it's quicker just to ask lul

drowsy sentinel
#

Yes, but that's not how you grow. Keep the comments constructive and helpful please.

ember atlas
#

I mean I have read the documentation, all I did was forget user.

#

For someone who doesn't read things like that very well its difficult so I ask if I dont understand the docs.

drowsy sentinel
#

It's all good Boss, continue coding your heart away. ๐Ÿ˜„

ember atlas
#

Anyways, ty for the help

earnest phoenix
#
Parmesan LinguineToday at 4:12 AM
Half the time it's quicker just to ask lul```

by the time you get an answer in chat you could've already read it in the docs ๐Ÿ˜‰
drowsy sentinel
rugged kelp
drowsy sentinel
#

I do not speak Romanian, but I assume you want a mail feature.

rugged kelp
#

No how to create system :))

robust acorn
#

what library do you use?

scenic kelp
#

That's a very vague description

#

what system do you want to create?

rugged kelp
#

Mail

scenic kelp
#

Yes I saw the image above

robust acorn
#

you have to tell us which library you are using.

rugged kelp
#

What?

robust acorn
#

what computer language are you using?

drowsy sentinel
#

Programming language and bot library.

rugged kelp
#

Discord.js

#

Yes

robust acorn
#

so you want everything sent to the bot's DM to you?

rugged kelp
#

Es

#

Yes*

robust acorn
#

and send messages back?

rugged kelp
#

Yes

#

I need tutorial

#

How ? ://

#

Modmail

robust acorn
rugged kelp
#

?

smoky spire
#

(the second link is current)

drowsy sentinel
#

@rugged kelp Nu vฤƒ vom da codul. Trebuie sฤƒ รฎnvฤƒศ›aศ›i sฤƒ citiศ›i singuri.

rugged kelp
#

Google translate is trash xD

drowsy sentinel
#

Yes it is.

rugged kelp
#

I need tutorial

#

:((

robust acorn
#

refer to the documentation above for reference

rugged kelp
#

Im noob mindblown blobawkward spanzurate

robust acorn
#

so you already have an existing bot (with features)?

drowsy sentinel
robust acorn
#

If you know how to send messages, it shouldn't be too hard to make a mailing system

#

On message, have your bot check if a channel is a DM channel and have it send you the same copy of the message including User ID or something to reach back. Then, make a command that only you can use with the User ID and the message to send back to the person which would appear in their DM.

#

Try setting up a code and if you still need help, feel free to ask questions here ๐Ÿ˜„

rugged kelp
#

Oof

#

It s complicate for me

#

:((

uncut badger
#

hey guys i'm new here

#

I hope to learn with you ๐Ÿ˜„

earnest phoenix
#

hii

#

any one there online

#

any one know hindi

#

i have a qustion

#

then ask it

#

you know @earnest phoenix hindi

#

no

#

@earnest phoenix
you see the icon of this group

#

when we tap the icon is rotating how?

#

nitro boost perk

drowsy sentinel
earnest phoenix
#

@drowsy sentinel
what is this

drowsy sentinel
#

An article explaining the features of server boosting by Discord themself.

earnest phoenix
#

@drowsy sentinel plz you setup in my server

drowsy sentinel
#

That's not how that works. Read the article buddy.

earnest phoenix
#

how you setup in this servee

drowsy sentinel
#

We have been boosted by 34 people. You need a minimum of 2 to have a animated icon.

#

Read the article, if you have any questions DM me.

earnest phoenix
#

i nees 2 people in my seever

slender thistle
#

Stop

earnest phoenix
#

@earnest phoenix
why

#

this is my problem

#

plz help

drowsy sentinel
slender thistle
#

You are spamming, and in wrong channel, in addition to that

earnest phoenix
#

there's no problem, you need 2 nitro users to boost your server. even if you manage to get two nitro users the question is whether they'll boost the server, you should really read the article

muted ridge
#

Are there any downsides of running two bots locally on my computer--as in, one for testing and one for public use?

drowsy sentinel
#

Local hosting isn't bad especially for the development process of the bot. You can host your bot locally even after releasing shortly until it picks up momentum. As long as you have the memory for the bot including a strong connection for low latency, you'll be just fine. You won't have strong protection or customer support, but if you can keep stable uptime it'll work just fine.

#

@muted ridge ^

muted ridge
#

Ah, I understand. Thank you for answering, Duane. madesmile

cunning oxide
#

Anyone have any good tutorials/insight for a sticky mute? I want the user to stay muted even if they leave and rejoin the server. (JS)

slender thistle
#

Save user ID in database, on user join, see if the bot is in DB

cunning oxide
#

@slender thistle so within the event?

slender thistle
#

On the user join event, check if the user is still muted /shrug

cunning oxide
#

Fair enough

hollow coral
#

Anyone here knows a good image manipulation library for JS? More specifically, I want to make profile pages with it, kinda like with Tatsumaki and other bots.

drowsy sentinel
#

I think most people use canvas.

red atlas
#

@hollow coral JIMP

brazen mulch
#

help i have a hacker problem

#

on my friends server

cursive dagger
#

Is it ok i DM you @brazen mulch ???

brazen mulch
#

no

#

my friend isnt owner

#

!!!

cursive dagger
slender thistle
brazen mulch
#

the hacker is online!

earnest phoenix
#

hello

cursive dagger
cunning oxide
#

Hello everyone -- quick question. I'm trying to add command subdirectories to my handler but something seems to be going wrong. I'm using Klaw. Here is the code: js klaw("./commands/").on("data", (item) => { const cmdFile = path.parse(item.path); if (!cmdFile.ext || cmdFile.ext !== ".js") return; const response = client.loadCommand(cmdFile.dir, `${cmdFile.name}${cmdFile.ext}`); if (response) client.logger.error(response); }); But I'm getting the response: [2019-06-29 17:44:22]: LOG Loading Command: /Users/justinalexander/Downloads/guidebot-master/commands/Utility [2019-06-29 17:44:22]: ERROR Unable to load command /Users/justinalexander/Downloads/guidebot-master/commands/Utility: Error: Cannot find module '../commands//Users/justinalexander/Downloads/guidebot-master/commands/Utility'

#

I can't tell if I'm being stupid, or idk.

cunning oxide
#

Nvm I got it I was being stupid

drowsy sentinel
earnest phoenix
#

okay, I am sorry

#

anyone know how I can host my own smtp server

#

so i can send emails from my own domain name under my own server

#

rather than using gmail as a host or something

#

nodemailer seems good but it uses an external smtp server

quartz kindle
#

use something like sendmail or postfix i guess

earnest phoenix
#

dw i decided to just use roundcube php smtp server

topaz turtle
#

hello help me

earnest phoenix
#

send the issue to the app creator

#

we don't offer help with bot makers

topaz turtle
#

@earnest phoenix I know man delovepers write on this they can help me

earnest phoenix
#

no, they don't

topaz turtle
#

why?

#

@earnest phoenix

#

why?

cunning oxide
sage bobcat
#

One message removed from a suspended account.

opaque eagle
#

Is there a way to access environment variables in browser JavaScript?

earnest phoenix
#

what do you think

opaque eagle
#

:(

earnest phoenix
#

if it were to be possible, it would be a huge security risk

#

use common sense

versed fern
#

Say I have an image that I generated via PIL. How do I send that image?

earnest phoenix
versed fern
#

1.2.3

west spoke
#

Send the file you saver

#

I use pil for my profiles

slender thistle
#

Is it possible to send the image generated by PIL or should it be converted into discord.File though

versed fern
#

so I just pass it into a discord.File object and send it normally?

west spoke
#

It can be sent using .png

#

Ig..

versed fern
#

๐Ÿ‘Œ

slender thistle
#

To pass binary data, consider usage of io.BytesIO. eh

west spoke
#

discord.File("image")

versed fern
#

ty

sage bobcat
#

One message removed from a suspended account.

sudden geyser
#

Maybe (err => console.log(err)) because that would just return a function?

amber fractal
#

you have to if there is an error log it

warm marsh
#
if (err) console.log(err); // Use that 

(err => console.log(err) // Don't use. Not there.
nocturne echo
#

hey so am stupid

#

and uh

#

how do i get developer role

quartz kindle
#

you add a bot to the list

nocturne echo
#

i did

quartz kindle
#

then wait for it to be approved

nocturne echo
#

oh

ionic compass
#

yeah not sure what happened here, dont wanna restart it. think attaching visual studio debugger will help me?

nocturne echo
#

uh buddy

#

u should probably restart

ionic compass
#

it's funny though because the bot is fully functional, just no console access

nocturne echo
#

u wot

#

different host?

ionic compass
#

nope, the console log is running on a different thread, and when it crashes (like this) it doesnt kill the bot

#

i think it's a weird glitch in my consoleIO class

nocturne echo
#

impossible

earnest phoenix
#

help how unable my bot from responding to other bots

nocturne echo
#

if(msg.author.bot)return;

#

@earnest phoenix

earnest phoenix
#

wait

#

im using python XD

nocturne echo
#

o uh

cursive dagger
#

@earnest phoenix on_message right?

earnest phoenix
#

yes

cursive dagger
#
if message.author.bot:return
#

Sorry forgot about spoonfeeding rule

earnest phoenix
#

really?

#

๐Ÿคฆ

cursive dagger
#

but yes that if how you do it. I advice you to use d.py context manager thou @earnest phoenix

west spoke
#

Depends on how much code you have written imo

slender thistle
quartz hill
#
let size=0;
  client.guilds.forEach((guild) => {
    size +=guild.members.filter(member => !member.user.bot).size;
  });

Does this function return the number of users on all servers where the bot is located?

slender thistle
#

Should

quartz hill
#

but I need a number of unique users .

#

How can I do it?

slender thistle
#

Doesn't d.js have something like bot.users weirdsip

nocturne echo
#

.each?

#

array of users and select them with each

#

i think

topaz fjord
#

@slender thistle that's only cached users

slender thistle
#

weirdsip alright, noted

quartz hill
#

I couldn't figure out how.
but trying now

dusky marsh
#

If the owner of a guild isnt cached and it is crashing the bot due to the guild.owner being undefined, how would i cache that user

#

discord.js

mossy vine
#

<Guild>.fetchMembers() should work

dusky marsh
#

ah, idk why that didnt cross my mind, i always seem to forget about the various fetch methods, thank you

rugged kelp
#

How to hide link ?

nocturne echo
#

embed

#

just do a embed

quartz hill
#

addfield("title", "[name}(link)");

#

richembed

inner spruce
#

Is it a bot or webhook? ^^

rugged kelp
#

it;s bot

nocturne echo
#

wizzie what lang

rugged kelp
#

romanian

#

discord.js

#

xD

inner spruce
#

What are you using rn to display the above?

#

a messag.channel.send([url]) and a messag.channel.send(embed) ?

quartz hill
#

let msgEmbed = new Discord.RichEmbed();
msg.channel.send(msgEmbed.addField("title", "name"));

rugged kelp
inner spruce
#

remove line 9

#

Example:

const exampleEmbed = new Discord.RichEmbed()
    .setColor('#0099ff')
    .setTitle('Some title')
    .setURL('https://discord.js.org/')
    .setAuthor('Some name', 'https://i.imgur.com/wSTFkRM.png', 'https://discord.js.org')
    .setDescription('Some description here')
    .setThumbnail('https://i.imgur.com/wSTFkRM.png')
    .addField('Regular field title', 'Some value here')
    .addBlankField()
    .addField('Inline field title', 'Some value here', true)
    .addField('Inline field title', 'Some value here', true)
    .addField('Inline field title', 'Some value here', true)
    .setImage('https://i.imgur.com/wSTFkRM.png')
    .setTimestamp()
    .setFooter('Some footer text here', 'https://i.imgur.com/wSTFkRM.png');

channel.send(exampleEmbed);
earnest phoenix
#

what are you doing

#

just place the link in <>

inner spruce
#

๐Ÿคฆ

earnest phoenix
#

ah never mind im blind

inner spruce
#

XD

earnest phoenix
#

thought they wanted to hide the embed and keep the link

rugged kelp
inner spruce
#

no

mossy vine
#

thats just wrong wtf

inner spruce
#

Wait.

mossy vine
#

so first of all you are creating an empty embed

inner spruce
#
        const embed = new MessageEmbed()

        .setColor('#dc3545')
        .setTitle(`Something went wrong`)
        .setDescription(`<@${message.author.id}>, you forgot to mention a user.`)

        message.channel.send(embed)
#

Example ^

amber fractal
#

The channel doesnt exist

mossy vine
#

and then trying the embed.. to the embed

earnest phoenix
#

(node:2460) UnhandledPromiseRejectionWarning: Error: 403 Forbidden What is this error?

mossy vine
#

wrong token

earnest phoenix
#

Wtf

mossy vine
#

or something

robust acorn
#

what did you try to do?

earnest phoenix
#

Change my bot avatar

mossy vine
#

if its from dbl just reset your token

rugged kelp
#

@inner spruce And where is link ?

mossy vine
#

oh lmao

earnest phoenix
#

wrong token is 401, 403 is not being allowed to do something

robust acorn
#

wrong credentials

mossy vine
#

oh right

#

keep forgetting whats the difference

slender thistle
#

TIL

inner spruce
#
        const embed = new Discord.RichEmbed()

        .setColor('#dc3545')
        .setTitle('TITLE HERE')
        .setUrl('URL HERE')
        .setTitle(`Something went wrong`)
        .setDescription(`<@${message.author.id}>, you forgot to mention a user.`)

        message.channel.send(embed)

๐Ÿฅ„

earnest phoenix
#

new Discord.RichEmbed()

inner spruce
#

For embed documentation

#

My bad.

#

I have it set to MessageEmbed()

earnest phoenix
#

Oh k

amber fractal
#

On master it's MessageEmbed

earnest phoenix
#

@earnest phoenix And how i can fix the error?

amber fractal
#

on stable it's RichEmbed

#

You cant

inner spruce
#

Ahh figured why ๐Ÿ˜„

amber fractal
#

you dont have access

earnest phoenix
#

Its a api error?

amber fractal
#

It's forbidden

earnest phoenix
#

what are you trying to do that causes the error

#

So how i change my bot avatar

amber fractal
#

You do that through discord

earnest phoenix
#

Changing my bot avatar with bot.user.setAvatar('link')

robust acorn
earnest phoenix
#

yeah but its just changing the icon of the application

#

Not the icon of the bot

inner spruce
#

navigate to bot

#

...

robust acorn
#

go to the bot section

amber fractal
#

there's 2 different places

inner spruce
#

๐Ÿ˜„

earnest phoenix
#

i'm dumb

rugged kelp
#

How do I make the bot give the number of members on a five,

#

?

amber fractal
#

What?

inner spruce
#

shoe? ๐Ÿ‘ž ?

earnest phoenix
#

bot.users.size

inner spruce
#

@rugged kelp check out the FiveM documentation of what you are using

#

And look for an API

#

@earnest phoenix he meant FiveM

#

Not Discord Server

earnest phoenix
#

setAvatar should be working fine, no idea why it isn't ๐Ÿค”

inner spruce
#

@earnest phoenix does the bot still run without .setAvatar?

earnest phoenix
#

it might be d.js' source that's at fault

#

wot?

amber fractal
#

It works for me

inner spruce
#

Like without that piece of code. Does your bot still start?

#

Or also error out?

earnest phoenix
#

it's not me who has the problem

inner spruce
#

oops

amber fractal
#

client.user.setAvatar works for me

earnest phoenix
modern sable
earnest phoenix
#

look off topic

quartz hill
#

let size=0;
client.guilds.forEach((guild) => {
size +=guild.members.filter(member => !member.user.bot).size;
});
console.log(size);
console.log(client.users.size);
size result 14k but client users size 20k
Which one is right? Unique number of users required. and not bots

rugged kelp
earnest phoenix
#

Proof?

#

You mean footer?

rugged kelp
#

yes

#

No

earnest phoenix
#

@rugged kelp

rugged kelp
#

do you have code ?

earnest phoenix
#

Show your code

#

For the reason

rugged kelp
#

Ok

earnest phoenix
#

What do you have

rugged kelp
earnest phoenix
#

okay so look

#

<prefix>report @user [Noob](https://cdn.discordapp.com/)

rugged kelp
#

where ?

earnest phoenix
#

When you do the command

#

Or you can do this wait

#

.addField('Reason', `[${rreason}](${rproof}`) 

#

Just define rproof

rugged kelp
#

how define rproof ?

#

it's good ?

earnest phoenix
#

No wait

#

Add a )

#

At the end of rproof})`)

rugged kelp
#

Ok

quartz hill
#

I write again, I apologize.
let size=0;
client.guilds.forEach((guild) => {
size +=guild.members.filter(member => !member.user.bot).size;
});
console.log(size);
console.log(client.users.size);
size result 14k but client users size 20k
Which one is right? Unique number of users required. and not bots

rugged kelp
#

@earnest phoenix

earnest phoenix
#

Yes

rugged kelp
#

how to define rproof ?

peak quail
rugged kelp
peak quail
#

@rugged kelp you did $(bla bla) not ${bla bla}

earnest phoenix
#

Wdym jeff

split hazel
#

variable names cannot have spaces in them either

rugged kelp
#

It's not good look

earnest phoenix
#

The error is not that speedy

rugged kelp
earnest phoenix
#

@rugged kelp const rproof = define

split hazel
#

i see

slender sphinx
#

Can any one look into this and tell me why it won't remove the users reaction upon changing the page or just straight up fix it for me? I've been stuck on this for like 3 months now. Here's the link https://pastebin.com/WAdkYepQ

rugged kelp
earnest phoenix
#

@peak quail ../ in commands.js

peak quail
#

hmmmm

earnest phoenix
#

In the index its ./

rugged kelp
#

@earnest phoenix

#

it's good ?

earnest phoenix
#

wtf no

rugged kelp
#

oh

earnest phoenix
#

You need to define rproof like rreason

#

Because rproof its a link

rugged kelp
#

and how to define ?

earnest phoenix
#

You need to slice all text before a specific character

#

Like >report @user [reason] | [proof]

rugged kelp
#

idk

earnest phoenix
#

slice all before the | and then you got the link for the proof

#

Its not hard

rugged kelp
#

do you have code please ? : (

earnest phoenix
#

But i can't spoonfeed

somber verge
#

maybe use .split("|") and take [1] out of it

#

and strip it from whitespace

peak quail
earnest phoenix
#

^

peak quail
#

xD

earnest phoenix
#

Hmm weird

neat falcon
#

@peak quail have you tried ../../

peak quail
earnest phoenix
#

@peak quail put the entire folder

#

C:/User/Folder

peak quail
#

?

earnest phoenix
#

The link of the folder

peak quail
#

In console ?

earnest phoenix
#

No lol

#

In command.js

peak quail
#

xD

warm marsh
#

@peak quail require path

const path = require('path');

// later in code
const pull = require(path.join(__dirname, '..', 'commands',  dirs, file));
#

or use path.resolve(__dirname, '..', 'commands', dirs, file);

peak quail
#

i need it also in line 5 lol

warm marsh
#

then add it.

wet ferry
#

Hey All!

I was wondering how to get vote webhooks to work!

peak quail
warm marsh
#

You missed a ")"

#

before .filter

#

after `

#

Also probably should change the name of the variable on line 6 from const pull to const commands

#

So you don't get an error for that.

#

Also, Before you had fs.readdirSync()

#

make sure you put that back

peak quail
#

can you cange it? i dont understannd this xD

const { readdirSync } = require(`fs`)
const path = require('path');

module.exports = (bot) => {
const load = dirs => {
  const commands = require(path.join(__dirname, '..', 'commands'.filter( d => d.endsWith(`.js`))));
    for (let file of commands) {
      const pull = require(path.join(__dirname, '..', 'commands',  dirs, file));
        bot.commads.set(pull.config.name, pull)
        if(pull.config.aliases) pull.config.aliases.forEach(a => bot.aliases.set(a, pull.config.name))
      }
    }
    ["normal", "Owner", "moderation"].forEach(x => load(x))

}```
warm marsh
#
const util = require('util');
const fs = requrie('fs');
const path = require('path');

const readdir = util.promisify(fs.readdir);

module.exports = async (bot) => {
    const load = async (dir) => {
        const CommandDir = await readdir(path.resolve(__dirname, '..', 'commands', dir).filter(file => /\.js$/i.test(file));
        if (CommandDir.length == 0) return console.log('No files found');
        for (let file of commands) {
            const pull = require(path.resolve(__dirname, '..', 'commands', dir, file);
            bot.commands.set(pull.config.name, pull);
            if (pull.config.aliases) pull.config.aliases.forEach(alias => bot.aliases.set(alias, pull.config.name);
        }
    }
    ['normal', 'Owner', 'moderation'].forEach(subDir => load(subDir);
}
#

But you should really learn how to do that yourself.

split hazel
#

@warm marsh Try not to spoonfeed

warm marsh
#

I know.

#

But would take for ever if help them fix every single issue individually.

quartz hill
#

client.users.filter(member => !member.bot).size
I wrote something like that. Why is the number of users constantly changing?
14-15k between each query has 200 users difference.
I'm doing an interrogation every minute.

warm marsh
#

discord

#

it's correct though

#

client.users.filter(user => !user.bot).size;

peak quail
#

@warm marsh i think you donยดt did that in a editor, right ?

warm marsh
#

Yeah

#

did it in discord

#

probably done something wrong.

peak quail
#

thare are 4 misstakes lol

warm marsh
#

Yeah

#

Discords code blocks are a little mad.

#

4 mistakes being?

peak quail
warm marsh
#

ok

#

If you ready the output bit on vsc

#

will tell you that expected ")"

#

just add them before ;

#

Will show you.

rugged kelp
#

with worker or Worker ?

dusky marsh
#

worker

rugged kelp
#

ok

#

thanks

#

โค

dusky marsh
#

Did you redeploy and sometimes it takes a second

rugged kelp
#

k

#

@dusky marsh

restive light
#

Node bot.js: 217 })
Unexcepted token: )

217 means 217nd line?

tulip wave
#

Yes

restive light
#

unexcepted token: )

#

what should i do?

topaz fjord
#

@warm marsh mines out of date

#

This is the new one made by fishy

restive light
#

''' //voicechat
client.on('message', message => {
if (!message.guild) return;

if (message.content === 'join') {
if (message.member.voiceChannel) {
message.member.voiceChannel.join()
.then(connection => {
message.reply('I have successfully connected to the channel!');
})
.catch(console.log);
} else {
message.reply('join a vc channel man');
}
}
}); '''

#

Unexcepted token: )

grim aspen
#

you failed kind of

#

it's with anything in between both of the 3

restive light
#

just answer my quest

grim aspen
#

usually it means you might've put an extra )

earnest phoenix
#

Hard to read

#

Use code block

#
``` <- copy this```
frail ocean
#

Welp

#

What kens did but either side of the code

restive light
#

with }) "Unexcepted token: )
when i remove it, missing ")"

earnest phoenix
#

Code missing a ) somewhere

restive light
#

When i put it, "Unexcepted token: )

warm marsh
#

Fair

#

was just grabbing the stuff from the website @topaz fjord

restive light
#

why you should far away from js

amber fractal
#

Or why you shouldnt use notepad as your code editor

#

or have 1K lines of code in your main file

restive light
#

I tested on vs2010 and code editors

#

There are no 1544 lines

amber fractal
#

Then send the code

split hazel
#

We cannot help if you don't post some code or errors

#

Otherwise we'll be guessing

amber fractal
#

No

#

it says nsfw

spice mango
#

Ehm

earnest phoenix
#

No

#

dblgo doesn't exist

spice mango
#

Okay looks like the repository was renamed from dblgo to go-dbl

#

Which broke all imports you use in Golang :((((

edgy heart
#

so im like fairly new to coding and im tryna make a mute command, but I can't get it to work. If you do "$mute" it responds with the please mention a valid user, but i can't get it to run any of the other lines of coding. if i do "$mute @user reason" nothing shows up.
https://i.imgur.com/GiwLQno.png

spare goblet
#

@edgy heart Hi I hope you're having a good day

.addRole() method accepts a snowflake or a Role. Right now you're feeding it a string

#

So basically a snowflake is either a role ID of a role, and a Role is basically an object

#

If you wanna search up a role by its name, "muted", you'll have to do something such as this to get the Role object

message.guild.roles.find(role=>role.name.toLowerCase() === "muted")

edgy heart
#

ohh

spare goblet
#

I only checked until there, didn't see your entire code yet but that's one key issue right there

#

I added toLowerCase() to make it case insensitive btw

edgy heart
#

thanks <3

spare goblet
#

Have a good day blobsmilehappyeyes

#

@edgy heart Oh BTW one more thing I saw was

In the mutereason, you literally split the string by a space to form an array, then had an extra line to join an array with a space again

It's not necessary to split and then join the same thing as it gives the same output

topaz fjord
#

if it doesn't work use option 2

earnest phoenix
#

@carmine sand

#

dont ping randomly

edgy heart
#

idk, maybe im just being stupid but i can't get it to work. i've tried to mess around with the coding a bit and it hasn't been working, again im fairly new to this.
https://i.imgur.com/MSkkkaQ.png

earnest phoenix
#

What is the error? @edgy heart

topaz fjord
#

did you try it manually @earnest phoenix

#

option 2 does it manually

quartz kindle
#

you have KICK_MEMBERS on the first one, then KICK_MEMBER on the second one. also on the second one, you're checking if the member to be muted has that permission, not if your bot has it. you're doing some weird substring shanenigans, its better to use splits in this case. you dont need to redeclare mutereason, you can just replace it. ...roles.find() is not a promise, you can't use .catch on it

spare goblet
#

@edgy heart You need to make it give the Role object

#

Don't just copy and paste code please, spoonfeeding isn't an option..

Earlier on you had member.addRole('muted')
What I stated was 'muted' was a string and you need to feed it the role object

As a result you need
member.addRole(Role object or Snowflake)

mossy vine
#

the snowflake would be the id of the role you want to add to the member

spare goblet
#

You should do something like this instead for reason

message.content.split(/ +/g).slice(2).join(" ")

west spoke
#

Probs dumb question but can you use snowflakes when adding roles in async py

earnest phoenix
#

nope

#

you have to fetch the role

#

iirc rewrite is more snowflake oriented than object oriented

robust acorn
#

name='muted'

#

Or fetch by ID. to add role by name, the server has to be specified

sacred minnow
#

how can i add a cooldown to a command?

scenic kelp
#

What language?

sacred minnow
#

javascript

spare goblet
#

Make a set()

#

Add username to set if they ran it, settimeout to remove from set

#

And if they are in set() When using command , tell them to wait x secs

sacred minnow
#

is it for all commands or can i make it work only on some specific commands?

spare goblet
#

You can make it for all commands or for only some specific commands.

sacred minnow
#

ok, thank you

scenic kelp
#

Extending on that you can also change the duration of the setTimeout to make different commands have different cooldowns

earnest phoenix
#

handler

stray garnet
#

how to do Auto Changing Statuses?

amber fractal
#

Please

#

lang and lib

#

I would assume d.js

#

as it's the easiest, but we need to know

#

The basic rundown is have something being done on an interval and change it inside tho

mossy vine
#

@desert iron there are plenty of guides online

topaz fjord
#

No one here is gonna go step by step

#

It's a long process

earnest phoenix
#

@stray garnet with a interval

#

Set 10sec to 15sec

shy rose
#

api abuse thou

earnest phoenix
#

not with 15s

shy rose
mossy vine
#

120 is overkill

shy rose
#

if your pushing it then 12 but rarely is there any good reason

mossy vine
#

12 is the minimum

earnest phoenix
#

Yes

#

5x min

#

I think

#

Or something like that

mossy vine
#

yes

shy rose
#

sounds right

shy rose
#

depends on your lib but you can just directly apply the bitwise operator to it

#

uh express is a web engine

#

so iirc its just 0x00000008 & 37031424

#

and in case above they arent admin i dont think

#

0x00000008 & permission !=0

#

i think thats how it goes

#

been a while

#

*yes thats how it goes

muted ridge
#

Is there a way to redefine external variables inside of a promise?

#

As in:

var phrase;
jisho.searchForPhrase(args).then((r) => {
    phrase = r;
});
console.log(phrase)

The above example doesn't work as the console.log(phrase) prints undefined.

pearl kelp
#

how to set rich pre by discord.js

sinful lotus
#

@muted ridge print the variable after the promise is resolved

muted ridge
#

oh yeah. promises are asynchrous, right?

sinful lotus
#
var phrase;
jisho.searchForPhrase(args).then((r) => {
    phrase = r;
    console.log(phrase)
});
// console.log(phrase) This will execute first because the promise is async
#

it wont wait for the .then() callback if its outside tthe scope of that callback

#

unless its async await styled

muted ridge
#

๐Ÿค”

sinful lotus
#
async function example() {
  const phrase = await jisho.searchForPhrase(args);
  console.log(phrase);
}
//
let phrase;
async function example() {
  phrase = await jisho.searchForPhrase(args);
  console.log(phrase);
}
#

or if you prefer old style what I sent earlier will work

muted ridge
#

hmm, i've never worked with async function before

sinful lotus
#

async function is a wrapper around promises

#

by making a function async, you enable the usage of await syntax

#

but if the function is async, that function becomes a promise

muted ridge
#

got it to work!

#

thanks, saya!

carmine echo
twilit rapids
#

You are using a capital C, try using channel. (All in lower case)

warm oak
#

stipid qestion know but how dose hosting a bot work when it gose onto a discord is it copy or its own bot just wondering becase this is my first bot and i dont know how conplext to make the user acounts

#

come to think of it i have no idea how host a bot

carmine echo
#

You create a bot account and use it's token to log in

#

It's literally just client.channels.get(id). It returns a discord.js Channel object which does have a send method

#

It's just typescript being stupid. Or maybe it's just the fact that i have no idea how typescript works

warm oak
#

i got that far i whant to share the bot

carmine echo
#

You have it running already?

#

Then submit it to dbl

warm oak
#

?

carmine echo
#

But it'll probably get rejected if you didn't make the bot yourself or if it has barely any features

warm oak
#

its bot made for rp

carmine echo
warm oak
#

text molsty im just worryed it will get a lot of users from difrent discords

carmine echo
#

There's literally an Add bot button on the dbl website

warm oak
#

k

#

im good for now but thanks

#

im more confised how hosting works as it can only be turnred on threw vuslue studio

#

this is my frst bot and im realy confised by hosting the progam

mossy vine
#

what language are you using for the bot?

sinful lotus
#

@carmine echo Channel !== TextChannel

warm oak
#

c#

sinful lotus
#
carmine echo
#

Thanks

quartz hill
#

Is the client.users.size affected when using Shard? nodejs

late hill
#

If internal sharding no

quartz hill
#

need broadcastEval?

late hill
#

uhh

#

You'd have to check if they are different users

#

Because one user can be on multiple shards

#

You can't just add them up basically

carmine echo
late hill
#

Why do you need the amount of users anyway

#

It'll only be the cached users?

quartz hill
#

Is there a brief example?

#

yes need user amount

#

all users

#

no only cache

#

and no bots

late hill
#

pretty sure client.users.size would only be cache

quartz hill
#

yes But I couldn't find another way.

late hill
#

๐Ÿคท

#

I don't track user count

#

Just a stat

carmine echo
#

Broadcast the eval to obtain collections of all guild members, filter them to remove bots, convert them to arrays of user ids using .map(), merge the arrays, remove dupes, get the length of the array

late hill
#

That's not representative either way

carmine echo
#

this should work

quartz hill
#

hmm

carmine echo
#

I've never worked with shards tbh

#

But I know that broadcast returns an array of eval outputs

#

so

// broadcast bot.guilds
output.map(response => response.map(guild => guild.members.map(member => member.id)).reduce((a, b) => a.concat(b))).reduce((a, b) => a.concat(b)).filter((e, i, s) => i == s.indexOf(e)).length

this may or may not work

opaque eagle
#

Donโ€™t use Enmap

quartz hill
#

hmm

#

var count={};
client.guilds.forEach((guild) => {
guild.members.forEach((member) =>{
if(!member.user.bot){
count[member.user.id]="1";
}
});
});
after broadcasteval count and
last console.log(Object.keys(count).length);

#

this?

rustic walrus
#

hi

opaque eagle
#

Thatโ€™s so complicated for no reason lmao

quartz hill
#

It seemed easier to me. ๐Ÿ˜‚

earnest phoenix
#

bot.users.size

quartz hill
#

not only cache and no bots

opaque eagle
#
client.guilds.reduce((a, c) => {
   a += c.members.filter(e => !e.user.bot).size;
}, 0);```
quartz hill
#

If the same person is in more than one shard?

opaque eagle
#

Then we could add the IDs to a variable, remove duplicates, and then get the length

#
const totalMembers = client.guilds.reduce((a, c) => {
   a.push(...c.members.filter(e => !e.user.bot).map(e => e.id));
}, []);

[...new Set(totalMembers)].length // removed duplicates```
#

And just broadcastEval the reduce method when defining totalMembers

quartz hill
#

It's like this is more complicated, but I'm gonna try it.

opaque eagle
#

If it doesn't work, lemme know and we'll fix it

#

Several things could go wrong depending on how u incorporate broadcastEval

  1. it returns a Promise, so use async/await or put the Set in .then()
  2. it returns an array, so call .flat() on the result in the set.
  3. it works in the context of the client, so guilds.reduce() instead of client.guilds.reduce()
sinful lotus
#

if you want to get all the member count w/o bots and complete you will need to cache everything = higher memory usage

#

if thats ok with you then

for (const guild of this.guilds.values()) {
  guild.members.fetch()
    .then((cached) => cached.filter(mem => !mem.user.bot).size)
}
#

although this would run async so broadcastEval wont wait for that to execute

#

thats for you to fix

quartz hill
#

The same members should not be counted again.

#

this problem

#

only size insufficient.

subtle haven
#

Bot has started at Sunday, Jun 30, 2019, 10:47:56 AM
Bot is ready!
WebAPI: JSON Data values starting from [items[0].snippet.channelTitle] stored to: [channel]
WebAPI: Using previously stored json data from the initial store json action within this command.
WebAPI: JSON Data values starting from [items[0].snippet.publishedAt] stored to: [published]
WebAPI: Using previously stored json data from the initial store json action within this command.
WebAPI: JSON Data values starting from [items[0].snippet.thumbnails.default.url] stored to: [coverart]
WebAPI: Using previously stored json data from the initial store json action within this command.
WebAPI: JSON Data values starting from [items[0].snippet.title] stored to: [title] my music bot doesn't play some music

mossy vine
#

did you make that or are you selfhosting an existing bot?

subtle haven
#

While working on some music

nocturne echo
#

oh shit im approved

#

yuh

earnest phoenix
#

I want this bots please help me @everyone

carmine echo
#

You should ask the admins of that server instead

#

or search for these bots on dbl

#

It's very possible that these bots are private

#

@earnest phoenix

#

Found one

opaque eagle
mossy vine
#

it doesnt

vague chasm
#

@cursive gale here people are not rude

cursive gale
#

??

#

kk

#

i will ask

earnest phoenix
#

Please help me

cursive gale
#

is my code

#

but it won't add the user to the collection

#

@earnest phoenix what help do you need?

mossy vine
#

formatting your code properly would help a lot

cursive gale
#

me?

earnest phoenix
#

I want this bots

sinful lotus
#

await on cooldown delete is useless

#

thats not a promise

vague chasm
#

we did it just because it was still not working

earnest phoenix
#

Please give me link

mossy vine
#

@earnest phoenix right click the bot, copy id, generate an invite link with it, invite it

cursive gale
#

await removed

#

now?

#

i'm very new to discord.Collection

#

so idk much about it

earnest phoenix
#

@mossy vine I'm mobile user

red atlas
#

Huh

sinful lotus
#

Diiscord.Collection is a map

cursive gale
#

press and hole

#

hold

sinful lotus
#

what you do in map is what you do in Collection

mossy vine
#

press and hold, copy id

earnest phoenix
#

Which?

cursive gale
#

ok

vague chasm
#

collection.set should work tho

cursive gale
#

but it is not

mossy vine
#

collection.set does work as collection extends map

red atlas
cursive gale
#

so how do we add

earnest phoenix
#

@mossy vine please link give sir

#

Please

mossy vine
#

i dont even know the bots

#

i told you how to make an invite link yourself

earnest phoenix
#

Tell me @mossy vine

mossy vine
#

i told you

vague chasm
#

maybe that

mossy vine
#

yes

cursive gale
#

yes

mossy vine
#

client_id=<id here>

cursive gale
#

oof internet hates me

#

hey

#

can someone tell me how do we add

#

to the map

vague chasm
#

when he uses .set and then log collection it does not add

cursive gale
#

with discord.collection

earnest phoenix
#

@mossy vine what is client I'd??

cursive gale
#

oof

earnest phoenix
#

I'm no understand

vague chasm
#

@earnest phoenix bot id

cursive gale
#

just press and hold

#

on the bot you wanna invite

#

then click copy id

#

@earnest phoenix ok press and hold on the bot click copy id then give me to me

earnest phoenix
#

@cursive gale please send me. Process screenshots

mossy vine
#

permissions=8 oliypls

cursive gale
#

uhh

#

give me the id

#

i will give you the link

#

@mossy vine can you tell us how to add to the map?

mossy vine
#

map.set

#

you dont await it

cursive gale
#

not working

mossy vine
#

its not a promise

vague chasm
#

without await it doesnt work too

cursive gale
#

yeah

#

i wish skymod was here

carmine echo
#
Map.set('yeet', 'foo')
Map.get('yeet') // > 'foo'
earnest phoenix
#

Where is client id

carmine echo
#

You don't have developer options enabled in your discord settings and this is not the correct channel to be asking this @earnest phoenix

vague chasm
#

@earnest phoenix you need to turn developer mode on

cursive gale
#

in the settings

vague chasm
#

go to user settings -> behaviour -> turn developer mode on

cursive gale
#

it still dosen't add

#

@carmine echo this is my code and it dosen't work

#

it won't add to the collection

mossy vine
#

format your code properly, likely a logic issue

cursive gale
#

hmm

#

how do i format it?

mossy vine
#

use something like eslint

vague chasm
#

vsc has it inbuilt

cursive gale
#

sorry sir my pc is very limited

earnest phoenix
#

Sorry I not understand

mossy vine
#

wtf your pc is too limited to use eslint but you can use vscode and run a bot

carmine echo
#

This does not have anything to do with your pc being limited

mossy vine
#

@vague chasm it doesnt

cursive gale
#

uhh

#

like i can't really run more programs rn

carmine echo
#

You should install the beautify extension from the extension store, press F1, search for beautify file and click enter

vague chasm
#

ehm it does point out the errors

#

like bracket missing

carmine echo
#

eslint is very light

cursive gale
#

ok

vague chasm
cursive gale
#

but can we not get helped before i format it?

carmine echo
#

No

vague chasm
#

then click Behaviour