#development

1 messages ยท Page 1071 of 1

earnest phoenix
#

leT tEsT

#

heck it work

#

thank you discord

#

Yea

#

I post it it just search in Less than 1 min that I send it to the internet

#

this will be helpful, as i always forgot to untick my .env when i commit a new file to git

#

I send it to my own domain and it doesn't appear on the Google but the discord still see it and change my token

delicate shore
#

@earnest phoenix if I move a bot from glitch

#

Go GitHub will

#

The env also love

#

Move

#

And then can I host bot on heroku

earnest phoenix
#

I host my bot on digitalocean

delicate shore
#

Ok

lusty quest
#

just add the .env to your gitignore file

delicate shore
#

What's the price @earnest phoenix

earnest phoenix
#

uhh 1 sec

lusty quest
#

DO is 5$/Month

delicate shore
#

just add the .env to your gitignore file
@lusty quest
But will it be visible to everyone

lusty quest
#

if you add it to your gitignore it will not getting pushed to github

delicate shore
#

Ok

earnest phoenix
#

What is the best thing to host a bot 24/7 ?

delicate shore
#

Free or paid

restive pebble
#

vps

delicate shore
#

E

earnest phoenix
#

Free or Paid is ok

#

But the best

#

And maybe not vps

restive pebble
#

aws

#

or azure

delicate shore
#

aws

fierce wolf
#

hi i'm doing the avatar command i did some of them and it work but idk know how to see someone's pfp like example a?avatar 394182782173315072

delicate shore
#

aws.random.cat/meow

earnest phoenix
#

Pls no AWS or Google classroom

fierce wolf
#

i'm sorry if my english is bad :<

restive pebble
#

use get

earnest phoenix
#

๐Ÿ˜

restive pebble
#

use azure @earnest phoenix

earnest phoenix
#

K

#

What plan? And howmuch

#

oh?

#

you guys are talking about hosting?

#

ez just use a custom VPS

#

use zsh on an ubuntu VPS, not only do i do my bot dev on the VPS itself but i also run the bot

#

and neovim plus configurations

restive pebble
#

fuck

#

discord encodes uri

#

:(

earnest phoenix
#

hi

fierce wolf
#

hi i'm doing the avatar command i did some of them and it work but idk know how to see someone's pfp like example a?avatar 394182782173315072

lusty quest
#

get a VPS and your are done. you can get one that easy handle up to 500 Guilds for 5$ or less

earnest phoenix
#

(as long as you dont log every command lmao)

#

I don't know where to get and what plan and what os to use.

#

NFOServers

#

i use NFOServers

lusty quest
#

digitalocean (5$/month)

earnest phoenix
#

oh yes

#

digitilocean is VERY famous

#

for VPS'

#

and i heard it has good deals

#

I will try DigitalOcean

#

the only reason im using NFO servers is because one of the owners of this multiplayer game recommended it to me personally

#

but other then that i'd say do digitalocean

lusty quest
#

they are pretty solid. you pay for how many hours/month you have the VPS

earnest phoenix
#

the good thing about VPS and not dedicated hosting for a discord bot is

#

that you can host other things too

#

like for example with a VPS you can host a minecraft server

#

anything really

#

Ok

#

it took discord

#

like 200ms to detect token leak

#

Yea OoOoo

lusty quest
#

i think someone has a bot here that detects if you accedentally send a token in here. the bot will post the token into a gist so discord can detect it

#

(the bot makes the gist then instantly private and deletes it)

earnest phoenix
#

Nice

delicate shore
#

s!meme

earnest phoenix
delicate shore
#

sorry

dapper ocean
#

Guys, can you change botโ€™s name while it is in verification process of discord?

earnest phoenix
#

nope

dapper ocean
#

Ooooof

#

Btw is it important

#

To get a nice tag for a bot

#

My opinion is that

delicate shore
#

yes

dapper ocean
#

The easier is tag

#

The easier is to remember it for people

#

I am trying to get atleast a tag ending on 0

delicate shore
#

ok

dapper ocean
#

Do you agree with my opinion?

#

About tag

delicate shore
#

you can shange your tag

#

change

dapper ocean
#

Maybe I am just stupid lol

delicate shore
#

of bot

dapper ocean
#

I know

delicate shore
#

by just changing your bot name

#

to it's tag

#

and again and again

dapper ocean
#

But i can change it only once per 24 hours

#

Oof

glad charm
#

Yo anyone here have caching issues with d.js v12? It's not caching all users. How do I force it to? :))

delicate shore
#

For eg

earnest phoenix
#

maybe you can change it, not sure, i wouldn't advise to do it though

delicate shore
#

Boomer#1234
1234#1234
New name #new number

dapper ocean
#

Why?

#

Look

lusty quest
#

fetchAllUsers i think @glad charm

earnest phoenix
#

might mess up the info in the queue

dapper ocean
#

There are a lot of bots with #0001 with #6969

earnest phoenix
#

im not sure

lusty quest
#

its a client option

earnest phoenix
#

you should ask in the official api guild

dapper ocean
#

1/2 of bots have tag ending on 0

earnest phoenix
#

i know for a fact that you cannot change the bot's name after getting verified (the endpoint to change your name gets locked)

dapper ocean
#

I think owner just didnโ€™t get a nice tag from the first try LMAO

#

But can you change it when itโ€™s verified?

#

Thatโ€™s my biggest question oof

earnest phoenix
#

i know for a fact that you cannot change the bot's name after getting verified (the endpoint to change your name gets locked)
@earnest phoenix

dapper ocean
#

Oops

lusty quest
#

sorry fetchAllMembers is the one

earnest phoenix
#

im not sure if you can change it while it's in verification queue

dapper ocean
#

While itโ€™s being verified*

#

Oof

earnest phoenix
#

yeah you should ask in the official api server

dapper ocean
#

Eeck

lusty quest
earnest phoenix
#

right deleted

#

discord .gg/discord-developers

#

im a whitename so the bot deletes my invites

lusty quest
#

you cant change the tag if verified

earnest phoenix
#

lol

dapper ocean
#

@lusty quest I know

#

But

#

Can you change while itโ€™s being verified?

delicate shore
#

how ti

#

t0

earnest phoenix
#

ask in the server i linked above

lusty quest
#

i dont think so

delicate shore
#

;0

dapper ocean
#

Ok

delicate shore
#

boomer

#

๐Ÿ’ฅ

dapper ocean
#

Btw do you like my tag I got yesterday randomly? XD

#

#2750

#

I think itโ€™s nice oof

lusty quest
earnest phoenix
#

thank you

dapper ocean
#

Thx

delicate shore
#

self promote

#

ahh

#

jk

earnest phoenix
delicate shore
#

this is a joke

lusty quest
#

if i had a server with 33k users i guess my bot wont stuck at 112 Guilds

delicate shore
#

๐Ÿ˜ญ

glad charm
pale vessel
#

it is

glad charm
#

I can not find it for the life of me.

lusty quest
#

i dont think the docs are outdated

delicate shore
#

e

lusty quest
#

its a client option

delicate shore
#

docs are out

#

dated

#

and people say me to read docs

glad charm
#

Oh OPTION.

#

I thought it was a method.

#

Thanks.

lusty quest
#

but it will have a impact on your Ram usage

delicate shore
#

i need to change my name

#

everyone say me pee gay merx

pale vessel
#

how relevant

earnest phoenix
#

Is it possible to get the actual readable stdout or aka standard output from an exec on child process like this?

Vx_eval let { exec } = require("child_process");
exec("cat index.js").stdout```
pale vessel
#

use promisify

earnest phoenix
#

What's that

earnest phoenix
#

K lemme see

#

@pale vessel k worked, was able to see through my 6k line index.js LULW

#

194 pages, jesus

pale vessel
#

gawd damn

pure lion
#

Why is your index 6k lines

#

?

pale vessel
#

commands

valid frigate
#

ok does anyone using serenity discord lib know how to make a trait function async without needing async_trait

marble juniper
#

one file bot

valid frigate
#

because the majority of the io done in my bot is blocking and i kinda wanted to use an async runtime

restive furnace
#

@pale vessel k worked, was able to see through my 6k line index.js LULW
@earnest phoenix one file bot ?

pale vessel
#

pong

earnest phoenix
#

Yea, working with seperate files on mobile is hell since i code on mobile

restive furnace
#

ok i shouldnt quote

#

cool

dapper ocean
#

Hello, I tried to create automatic server count with dbl, but i get a problem with โ€œasync def on_guild_post():โ€ error: method has no argument

#

Help

restive furnace
#

method has no argument

dapper ocean
#

So

#

What should I put there?

#

I just copied and pasted what was in docs

#

Also putting my token there

#

XDDDD

#

I donโ€™t know how this dbl works

tight plinth
#

~~so i want my website to show an embed when posted on discord. I did everything, but the logo wont appear. any idea why? this is my code for the logo: https://lumap.is-inside.me/RsP2xn2F.png ~~ seems to be solved by itself, just re published my website

dapper ocean
#

Help ๐Ÿ™‚

#

Oh nvm

#

Figured it out

#

I am so dump, just forgot to put self, Bot

tight plinth
#

lol

restive pebble
#

kek

still merlin
#

Anyone know my my bot returns this in my pokemon search command, I do ${embed name} and it comes out as [object Object]

#
      break;
    case "search":
      if (message.author.bot) return;
      const replies = [
        `You search around and find no pokemon!`,
        `${Eevee}`,
        `${Bulbasaur}`,
        `${Pincurchin}`,
        `${Rotom}`,
        `${Pichu}`,
      ];
      message.replytext = Math.floor(Math.random() * replies.length + 0);
      return message.channel.send(replies[message.replytext]);
  }
});```
pale vessel
#

replies.length + 0 what

#

that's not the problem anyway

#

${Eevee} is an object

earnest phoenix
#

also why are you adding a property to message

pale vessel
#

and so are the other properties (except for the first text in the array)

still merlin
#

O.o- How do I send a random embed with a command

quartz kindle
#

is Eevee an embed?

#

dont put it in quotes

still merlin
#

oh thanks

#

yes eeve is a embed

trail finch
#

hm

#

anyone there to help me with my problem?

#
  if(message.content.startsWith(prefix + 'mute')){
let user = message.mentions.members.first();
let role = message.guild.roles.find(r => r.name === 'Muted')
if(!role) message.guild.createRole({name: 'Muted'});
if(user.bot){
return message.channel.send("I can't mute a bot");
}
    
if(user.hasPermission('ADMINISTRATOR')) {
return message.channel.send(`I can't mute ${user} he is admin`);
}

if(!user){
    message.channel.send(`Please specify a user to mute`);
}
message.guild.channels.forEach(f => {
    f.overwritePermissions(role, {
        SEND_MESSAGES: false
    });
    user.addRole(role)
   .catch(console.error);
   
});
 message.channel.send(`:white_check_mark: ${user} succesfully muted`);
    msg.delete()
}```
earnest phoenix
#

what's your problem

trail finch
#

the error is in first 2nd line i.e excel let role = message.guild.roles.find(r => r.name === 'Muted')
error = var guild = client.member.server.get(); ^ TypeError: Cannot read property 'server' of undefined

#

sorry for late answer

earnest phoenix
#

jesus.

trail finch
#

๐Ÿ˜‚

earnest phoenix
#

client.member isn't a thing

trail finch
#

hm

earnest phoenix
#

what are you trying to do

surreal notch
#

how to put client.guilds.cache.size on bots activity

earnest phoenix
trail finch
#

ok

#

so what should i do?

winged frigate
#

I am new to coding disc bots installed node and this happens do i close it?

earnest phoenix
#

CTRL+C

trail finch
#

give it a time

#

owo

winged frigate
#

i am pure "noob"

trail finch
#

i am impure pro

#

๐Ÿ˜‚

earnest phoenix
#

Keep this channel on topic

trail finch
#

umm nvm back to my mistake

#

so alhassan I am beginner and I wan to make a mute and unmute command...

earnest phoenix
#

Get the member

#

and add a role to them

#

to unmute get the member and remove the role

swift void
#

So my bot randomly leaves the voice channel.

#

Any fix?

earnest phoenix
#

is the bot playing anything

pale vessel
#

Keep this channel on topic

swift void
#

yes,

#

then during a song

#

it just leaves

trail finch
#

I didnt understand

earnest phoenix
#

errors in console

trail finch
#

um

swift void
#

got it hold on

earnest phoenix
#

@trail finch We don't spoonfeed sorry.. best I can do is provide pseudo code

swift void
#

I'm hosting on a remote desktop connection

earnest phoenix
#

hi

#
mute:
<member>.roles.add(muterole)

unmute: 
<member>.roles.remove(muterole)
trail finch
#

hm

#

ok ty

earnest phoenix
#

I'm hosting on a remote desktop connection
@swift void Windows?

#

uhh can I ask some question

swift void
#

Yep

#

Like a lot

#

of them

earnest phoenix
#

how to be verified bot developer

swift void
#

by getting 75+ servers

#

my bot is retunring a lot of errors.

#

returning*

#

and sometimes, it leaves in the middle of the song

earnest phoenix
#

wow

#

I will try to get 75 server

winged frigate
twilit rapids
#

Depends how beefy your system is

#

Probably just a minute or less

swift void
#

and sometimes, it leaves in the middle of the song

#

Anyone know why?

winged frigate
#

Depends how beefy your system is
@twilit rapids it

#

its been like 10 minutes

lusty quest
#

it can take easy 30 minutes on a potato

winged frigate
#

oh k makes sense.

earnest phoenix
#

I got 31 server

twilit rapids
#

Epical

quasi crater
twilit rapids
#

You cannot use await outside of async function

#

Either make it an async function or use .then()

quasi crater
#

okey thank you ๐Ÿ™‚

twilit rapids
#

no problemo

shrewd schooner
#

uhh my code made it so it set the status to streaming, but the bot says its playing a game, but if you go on its profile it says its streaming face_palm

twilit rapids
#

Can you show the code you're using?

winged frigate
shrewd schooner
#

Uhh wait a min

winged frigate
#

I pressed ctrl+c and uhhh it said something but i didnt have time to read it...

twilit rapids
#

ctrl+c cancels the operation

#

so you stopped it

winged frigate
#

Uhhh so now what do I do./

twilit rapids
#

install it again

#

and wait

quartz kindle
#

isnt it already installed?

#

otherwise it wouldnt show the change/repair/remove options

winged frigate
#

ok ill install again.

earnest phoenix
#

what

#

you already have it installed

#

you reran the installer after installing it

winged frigate
#

I pressed ctrl+c mid way of it installing smth

shrewd schooner
twilit rapids
#

But if you already had it installed then that didn't change much

shrewd schooner
quartz kindle
#

doesnt streaming status require an actual stream url?

shrewd schooner
#

Oops sry for sending twice

twilit rapids
#

Yeah streaming requires a Twitch URL

shrewd schooner
#

Where would I put the url

tacit spoke
#

{type: 'STREAMING', url: 'url'}

#

from memory

#

otherwise slap a .then(console.log) after it, and have a look at the fields on the object

#

should be able to figure it out from that

swift void
#

My bot leaves the voice channel(s) in the middle of a song sometimes :/

twilit rapids
#

What are you using

swift void
#

RDC

winged frigate
earnest phoenix
#

do you want to?

swift void
#

I'd say tick

winged frigate
#

Idk do I need to?

swift void
#

chocolatey is optional I think

#

I didn't install chocolatey, yet my node works fine

earnest phoenix
#

if you have visual cpp runtimes installed everything should be fine

#

you don't need it ticked

#

otherwise tick it i guess

restive pebble
#

pepe hands

winged frigate
#

visual cpp?

earnest phoenix
#

c++

winged frigate
#

oh

#

no

#

so i tick?

earnest phoenix
#

sure

winged frigate
modest maple
#

lol

winged frigate
#

BRUH THERE IS NTH THAT IS INSTALLING

restive pebble
#

go to task manager

#

and find any installation

winged frigate
#

wdym find installation

viscid grail
#

: Cannot read property 'status' of undefined, im trying to upgrade to discord.js v12

restive pebble
#

where this error occur

twilit rapids
#

Would be useful if you show the code it's about

viscid grail
#

message.guild.channels.cache.filter(mem => mem.presence.status != "offline")

twilit rapids
#

Channels don't have presences

viscid grail
#

(node:4276) UnhandledPromiseRejectionWarning: TypeError: message.guild.members.filter is not a function

twilit rapids
#

members.cache.filter

viscid grail
#

Cannot read property 'cache' of undefined

.addField("members", `${emoji("625734329326239775")}online:${message.members.cache.filter(mem => mem.presence.status != "offline").size}\n${emoji("625734369776107582")}Total: ${message.guild.memberCount}`)

is this right?

quartz kindle
#

message.members is not a thing

winged frigate
quartz kindle
#

what are you even trying to do?

winged frigate
#

donwload node idk what to do im starting to code lmao

quartz kindle
#

you dont need the additional tools then

#

at least not yet

winged frigate
#

oh so i just close it

#

?

#

kk

restive pebble
#

wot

restive furnace
#

just press that ๐Ÿ“ to see the hierarchy

winged frigate
#

k

restive pebble
#

\๐Ÿ“‚

#

never knew these emojis existed

#

cool

restive furnace
#

why they shouldnt

#

they awesome emojis

humble coyote
#

hey guys, when im listing users of my bot it listing users from this server too. How to make that it will not list users from that server?

restive furnace
#

filter

quartz kindle
#

how are you listing them, show code

humble coyote
#

console.log(bot have ${bot.users.cache.size} users);

#

oh

#

w8

#
console.log(`bot have ${bot.users.cache.size} users`);```
restive pebble
#

guild members size

quartz kindle
#

bot.users contains cached users from all guilds

humble coyote
#

ye

quartz kindle
#

its the global user cache

humble coyote
#

i want to have all servers without this

#

i this user list

quartz kindle
#

if you want to show users from a specific server, you need to access the guild member cache

#

or guild member count to include offlines

#

for example

#

message.guild.members.cache.size

humble coyote
#

i know it but im asking how to have all my users from every guilds but not from this "Discord Bot List"

quartz kindle
#

oh you want all except this

humble coyote
#

yes

quartz kindle
#

online only or including bots and offlines?

humble coyote
#

everyone

#

ye

restive furnace
#

so bots n offlines?

quartz kindle
#

this will give you all guilds except dbl bot.guilds.cache.filter(guild => guild.id !== dbl's id here)

#

then from the resulting list of guilds you can apply a reduce function to combine their memberCounts

#

for example resulingGuilds.reduce((a,b) => a + b.memberCount,0)

humble coyote
#

this will give you all guilds except dbl bot.guilds.cache.filter(guild => guild.id !== dbl's id here)
@quartz kindle where i need to put it?

restive furnace
#

basic javascript

#

but basically in your bot's code

humble coyote
#

i know xd

#

but i have 2 console logs

restive furnace
#

before them

humble coyote
#

and that filter is universal?

restive furnace
#

yes

humble coyote
#

ok

#

so after bot.on('ready', () => {

restive furnace
#

yes

humble coyote
#

ok i will try it

swift void
#

Okay, anyone know how to get the invite code of a person that joined via?

winged frigate
humble coyote
#

how to get this server ID? xd

swift void
#

copy ID

humble coyote
#

ok i didnt saw it

viscid grail
#

ive been trying to do an avatar command but the avatar wont show, im on discord js v12 code:message.author.avatarURL

swift void
#

Okay, anyone know how to get the invite code of a person that joined via?

humble coyote
#

message.author.avatarURL.get or message.author.avatarURL.cache.get

earnest phoenix
#

()

#

its a function in v12

winged frigate
#

const {MessageEmbed} = require('discord.js')
moduel.exports={
name: 'giveaway',
description 'Create A Giveaway'
}

#

Am I doing it right so far?

#

Lmao

restive pebble
#

just some typo lol

winged frigate
#

?

restive pebble
#

description:

tacit spoke
#

need a : after description

winged frigate
#

Oh k

restive furnace
#

and moduel

tacit spoke
#

and also module

#

yea

winged frigate
#

?

#

What about module?

tacit spoke
#

change moduel.exports={ to module.exports={

winged frigate
#

ah lmao

#

ty

swift void
#

Okay, anyone know how to get the invite code of a person that joined via?

restive furnace
#

you can try to google, or wait someone to help you. spamming the question wont help.

swift void
twilit rapids
#

You've send it 3 times now

restive furnace
swift void
winged frigate
#

const {MessageEmbed} = require('discord.js') module.exports={ name: 'giveaway', description: 'Create A Giveaway' usage: '<time> <prize>', category: 'fun', run: async(bot,message,args)=>{ }

#

Ok I am very confused and have no idea what im doing

earnest phoenix
#

how do i make my bot run? i use discord.js

client.logon(process.env.BOT_TOKEN);
#

logon is not a thing

#

wdym

restive furnace
#

its login

earnest phoenix
#

oh

#

i am the dumbest man alive

winged frigate
#

no me

swift void
#

no me

earnest phoenix
#

no me

restive furnace
#

no meow

earnest phoenix
#

hec

#

i got another error

bold dock
#

Provide all possible information so people know what's up. Just saying "I get an error" doesn't give us enough information on your problem.

earnest phoenix
#
let myEmbed = new MessageEmbed();
              ^

ReferenceError: MessageEmbed is not defined
#

i am typing it

#

calm down

bold dock
#

Sorry I didn't know you like enters so much that you press enter every line shrug

earnest phoenix
#

yes i use enter alot

#

in fact i use it like 5-10k a day

bold dock
#

Anyways, you need to import the type MessageEmbed.
Which you can do with const { MessageEmbed } = require('discord.js'),

if you already have a require('discord') in your file, you can add the type in the object deconstructor (so like const { Client, MessageEmbed } = require('discord.js'))

earnest phoenix
#

I see, thank you so much.

copper sierra
#

how to let a bot watch a specific video with a url

#

i have:

earnest phoenix
#

uhh

copper sierra
#

but it wont work

#

the result is

earnest phoenix
#

you forget to

#

close brackets

copper sierra
#

sorry my main language that i use discord is duct so you see kijkt naar not watching

#

but i can understand english

#

o

#

i see

#

but thats because it auto changes

winged frigate
#

Wait so on

const Discord is it a - or = after?

copper sierra
#

const Discord = require('discord.js'); this?

winged frigate
#

yes ok

#

ty

copper sierra
#

your welcome

#

can someone help me

#

oh

winged frigate
#

const Discord = require('discord.js');
const Client = new Discord.Client

#

Tis right?

#

Im so nuub

#

lmao

copper sierra
#

const Client = new Discord.Client();

winged frigate
#

alright

queen folio
#

Hi

warm marsh
#

Have you spent any time learning the language you wish to code in?

copper sierra
#

who?

queen folio
#

If Anyone Has The Code On The Air, Can They Share It With Me ?

earnest phoenix
#

i mean

#

my bot is open source

#

ig

summer torrent
#

@queen folio spoonfeeding is not allowed

misty sigil
#

If Anyone Has The Code On The Air, Can They Share It With Me ?
have you read the rules

earnest phoenix
#

and i won't spoonfeeding

#

cuz my code is dumb FoxSmart

queen folio
#

No

#

I Don't Know English Very Much

#

Translation Errors Can Happen Even If We Try To Translate

summer torrent
#

no one will give you a code

misty sigil
#

I will

#

just one

earnest phoenix
#

here's a code for you

misty sigil
#

const Discord = require("discord.js")

earnest phoenix
#
process.exit(0)

easy code, will make your bot very cool

restive furnace
#

Translation Errors Can Happen Even If We Try To Translate
@queen folio dont use translator then

winged frigate
restive furnace
#

(if i understood right)

queen folio
#

Can You Speak A Language You Don't Know ?

winged frigate
#

"client is not defined" help

golden condor
#

Define it

summer torrent
#

then define it

winged frigate
#

bruh this my first day of coding and idk what that means im nuub

spiral coral
#

help me

#

@gleaming glen onu yaptฤฑm bu รงฤฑktฤฑ

winged frigate
#

that hurts my eyes ;-; lmao

golden condor
#

Js:
const client = something
PY:
client = something
etc. etc.

restive furnace
#

Can You Speak A Language You Don't Know ?
@queen folio no, but you should learn if you are gonna speak english

winged frigate
#

const Discord = require('discord.js');
const Client = new Discord.Client();

golden condor
#

Smfh

summer torrent
#

variables are case sensitive

restive furnace
#

~~> Js:

const client = something
PY:
client = something
etc. etc.
@golden condor PY
client = discord.Client()~~ im. blind. ok.

queen folio
#

I Am Trying To Learn

pure lion
#

.toProperCase()

golden condor
#

I was just showing how to declare a var

#

Lul

pure lion
#

๐Ÿ“
๐Ÿ˜ณ ๐Ÿ“

restive furnace
#

no

pure lion
#

Flushed ramp

earnest phoenix
#
module.exports = (client) => {
    console.log(`Ready to serve in ${client.channels.size} channels on ${client.guilds.size} servers, for a total of ${client.users.size} users.`);
  }```

My Ready Event Just show in console as.

```Ready to serve in undefined channels on undefined servers, for a total of undefined users.```
#

On the V11 It works but on V12 It show as that

#

client.channels.cache

misty sigil
#

.size

earnest phoenix
#

client.users.cache

#

they changed on v12

#

idk whyu

misty sigil
#

(.size)

earnest phoenix
#

.length FoxSmart

swift void
#

client.leaveVoiceChannel(message.member.voiceState.channelID);
Is how you make the bot leave the command author's voice channel, correct?

pure lion
#

What language is that

earnest phoenix
#

so client.users.cache.size?

pure lion
#

Because it's probably wrong

swift void
#

js

pure lion
#

What lib?

#

And what ver

swift void
#

djs

earnest phoenix
#

VoiceChannel#leave();

swift void
#

okay that makes way more sense

#

v12

pure lion
#

message.member to get the member object

swift void
#

got it

#

my eval doesn't work and I'm sad

pure lion
#

What

winged frigate
#

``const Discord = require('discord.js');
const client = new Discord.Client();
const prefix = "z!";

client.on('ready', () => {
console.log("Bot Has Been Started.");
})

Client.on('message', (message=>{
if(z!message.content.startsWith(prefix)) return;

})``

#

Is everything correct here?

tight plinth
swift void
#

looks fine to me

lusty quest
#

remove the z you have in your message event

swift void
#

z where

tight plinth
#

this

#

shouldnt exist

swift void
#

ok I might be a little bit blind

winged frigate
#

Yes but z! will be the prefix.

#

?

tight plinth
#

yes

lusty quest
#

did you know the basics of Javascript?

winged frigate
#

no Lmfao

tight plinth
earnest phoenix
#

are you using expressjs, @tight plinth

tight plinth
#

im using html+css

lusty quest
#

i think you can do this with a htaccess file iirc

tight plinth
#

and js (no node)

earnest phoenix
#

You can use htaccess yea

winged frigate
#

"Missing ) after arguement list"

`const Discord = require('discord.js');
const client = new Discord.Client();
const prefix = "z!";

client.on('ready', () => {
console.log("Bot Has Been Started.");
})

Client.on('message', (message=>{
if(!message.content.startsWith(prefix)) return;

})`

Where lol

earnest phoenix
#
RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [NC,L]```
#

How many characters does a custom emoji count as?

#

"Missing ) after arguement list"

`const Discord = require('discord.js');
const client = new Discord.Client();
const prefix = "z!";

client.on('ready', () => {
console.log("Bot Has Been Started.");
})

Client.on('message', (message=>{
if(!message.content.startsWith(prefix)) return;

})`

Where lol
@winged frigate Basic js

#

Use a linter or something

#

its after the message and before the => @winged frigate

winged frigate
#

Ah i see.

tight plinth
lusty quest
#

embed the mp4 file into a html file?

tight plinth
#

hmm

restive pebble
#

netlify is good

restive furnace
#

i use react, so i dont know these things xD

#

and expressjs

delicate shore
#

i want to do like dank memer

digital ibex
#

split every letter then

#

not every space

delicate shore
#

how

#
(args.slice(1).join(":clap:"));```
#

so here

delicate shore
#

args.split().join?

#

๐Ÿ˜ญ

#

that docs hurt me

winged frigate
#

`client.on('message', (message)=>{
if(!message.content.startsWith(prefix)) return;

if(message.content.startsWith(prefix + "help")){
    message.channel.send("If you need help either message ModMail or create a ticket!")
}` Anybody know whats wrong with it?
digital ibex
#

read the link i sent u

tight plinth
#

embed the mp4 file into a html file?
@lusty quest ok, but now its ugly and people have to click the link to be able to watch the video

delicate shore
#

read the link i sent u
@digital ibex that is not helping

digital ibex
#

why is it not helping you

delicate shore
#

because nothing is clesr therer

#

there

#

clear*

restive furnace
#

its very clear

lusty quest
#

i have no idea about html so idk

digital ibex
#

whats not clear?

delicate shore
#

nothing

digital ibex
#

so you understand it now?

delicate shore
#

no

#

๐Ÿ˜ญ

#

sorry if i am annoying

digital ibex
#

then whats confusing you

delicate shore
#

that

#

split

#

ing

digital ibex
#

read the link i sent u

delicate shore
#

i dd

pure lion
#

:l

digital ibex
#

then what on the link is confusing

pure lion
#

What's going on here lost?

hazy sparrow
pure lion
#

Code

#

?

harsh badge
#

args1

digital ibex
#

you're looking for the first word after the prefix

harsh badge
#

instead of 0

hazy sparrow
#

ok ty

pure lion
#

What is error.message

#

Just curious

hazy sparrow
#

theres no error

pure lion
#

But what is it

digital ibex
#

the error message, so if u have Error: ur mom fat the error.message is ur mom fat

pure lion
#

Oh makes sense

hazy sparrow
#

its args[1]

pure lion
#

UnhandledPromiseRejection: you said you'd give me free vbux

#

@hazy sparrow try it and see

hazy sparrow
#

do i have to put that as the error.message?

pure lion
#

What

#

No

#

Just change the args error

hazy sparrow
#

okay

pure lion
#

(not the message, just change the zero to a one)

hazy sparrow
#

it works

#

but how do i check if it was actually reloaded?

pure lion
#

Sick

#

Umm

#

Change the message inside of one of the commands?

hazy sparrow
#

ah

digital ibex
#

console.log('bob');

hazy sparrow
#

i didnt think of that

pure lion
#

console.table('bob')

hazy sparrow
#

it works

pure lion
#

Sick

#

Also how do I reload commands

#

Dynamically

hazy sparrow
#

Dynamically?

digital ibex
#

wdym?

delicate shore
#

why

#

what is reload

#

and what is it used for ? @hazy sparrow

hazy sparrow
#

to reload codes

delicate shore
#

ok

#

i have a restart command

hazy sparrow
#

other than going to the terminal you can just reload it from a command

delicate shore
#

for whole bot

hazy sparrow
#

i have it for seperate commands

delicate shore
#

ok

earnest phoenix
#

How does sniping messages work

pure lion
#

@earnest phoenix

#

Basically, you make a snipe.json and write the deleted message (under the channel ID) in it, then when someone runs the command you can do one of three things: just get the message, get the message and then overwrite it instantly or make a count that counts how many times the message has been sniped then it to overwrite

#

Any questions?

pine raven
#

can someone help me make a html for my bots description?

earnest phoenix
#

@pure lion oh.. lol thought it was smth else

pure lion
#

Well now you know

#

You can also use a db but I really can't be asked to make a channel schema

#

Fuck it fine I'll make one

winged frigate
pure lion
pine raven
#

can anyone help me make a html?

pure lion
#

@winged frigate get rid of the ) after the quote and then see what happens, guess at what you need

#

@pine raven w3schools

winged frigate
#

err

#

;?

pine raven
#

?

#

wats that

pure lion
#

Google it

#

Go now

pine raven
#

ok

pure lion
#

Nobody will spoonfeed either of you

restive pebble
#

Cool

winged frigate
#

OHHH IT WAS A ,

pure lion
#

Boeing no spoonfeeding

winged frigate
#

i think

pure lion
#

Almost

pine raven
#

oh fuck thanks

pure lion
#

Np

winged frigate
#

a ; ? maye

#

maybe

pure lion
#

Nope

#

Think maths

#

When you want to add something what sign do you use?

winged frigate
#

Oh yeahh

#

OH K

#

Im stoopid lmao

#

ty

pure lion
#

:> see it wasn't so bad

winged frigate
#

uhh

#

it says id

#

Hm

#

How do u make it so it pings?

earnest phoenix
#

is it a role or user

hazy sparrow
earnest phoenix
#

@hazy sparrow cd WHEREVER

digital ibex
#

same way you would normally

earnest phoenix
#

<@ID> @winged frigate

hazy sparrow
#

i forgot how i did in the console ;-;

earnest phoenix
#

I told you

#

cd ../ to go back

hazy sparrow
#

ah ok

winged frigate
#

is it a role or user
@earnest phoenix user

digital ibex
#

you dont need the /

earnest phoenix
#

``<@id> @winged frigate

winged frigate
#

?

hazy sparrow
#

i can do from VS code directly?

digital ibex
#

yes

hazy sparrow
#

@winged frigate its message.author

#
message.channel.send(`Check DMS ${message.author`)
winged frigate
#

yeah ik but it shows something else.

hazy sparrow
#

what does it show

winged frigate
#

It shows an id or smth

hazy sparrow
#

try what i sent

#

try this

message.channel.send(`Check DMS ${message.author`)
winged frigate
#

That happens

hazy sparrow
#

can you show the code

#

you're missed a }

winged frigate
hazy sparrow
#

line 14 put a }

tight plinth
#

guys

winged frigate
#

I have.

tight plinth
#

basic js

hazy sparrow
#

put another

winged frigate
#

basic js idk

tight plinth
#

${message.author}

hazy sparrow
#

thats what i've been telling

winged frigate
#

k

hazy sparrow
#

did you add it @winged frigate

winged frigate
#

yes

hazy sparrow
#

what does it send now

winged frigate
#

The thing i wanted.

hazy sparrow
#

ok good

#

learn to read errors

winged frigate
tight plinth
#

man

#

please

#

learn

#

node.js

hazy sparrow
#

and discord.js

tight plinth
#

and discord.js too

winged frigate
#

No I was just showing u what i wanted it to do.

#

ik some node and discord.js

digital ibex
hazy sparrow
digital ibex
#

no idea

#

you need to provide context

hazy sparrow
#

ok i got it why

#

i had 2 terminals open

#

big brain

old shadow
#

๐Ÿคฃ

hazy sparrow
#

how do i make it work when i run node . though

#

im tired of doing node mybot.js

restive pebble
#

Add scripts

#

inside the package.json

misty sigil
#

Add "scripts":"node mybot.js" into package.json

hazy sparrow
#

how

misty sigil
#

right?

hazy sparrow
#

you mean this?
scripts: node mybot.js

#

@misty sigil

copper sierra
#

how to

#

make a field with multiple

#

words

#

case 'help':
const embed3 = new Discord.MessageEmbed()
.setTitle('help')
.addField('Fun', 'smug', 'spawncard', true)
.addField('Moderation', 'kick', 'ban', true)
.addField('Utility', 'purge', true)
.addField('Other', 'youtube', 'profile', 'info version', true)
.addField('Version', '0.0.1', true)
.addField('current Server', message.guild.name, true)
.setColor('#5DADE2')
.setThumbnail(message.author.displayAvatarURL())
.setFooter('Subscribe to prof c4 on youtube.')
message.channel.send(embed3);
break;

#

this is my code

hazy sparrow
#

embed feild?

copper sierra
#

yes

hazy sparrow
#

wdym multiple words

copper sierra
#

i need for a help function

hazy sparrow
#

what do you mean by multiple words?
"word1", "word2" like this?

#

@copper sierra

copper sierra
#

mmh

#

let me show u a img

hazy sparrow
#

what about it

winged frigate
#

client.on('message', (message)=>) if(message.author.bot) to make it say "you cant ban a bot" after the message.author.bot what do i put

copper sierra
#

that wat i what to have

tight plinth
#

@winged frigate learn discord.js and node.js PLEASE

copper sierra
#

client.on('message', (message)=>)
if(message.author.bot) return messag.channel.send('you cant ban a bot');

winged frigate
#

I WILL IM JUST TRYING COMMANDS AND LEARNING THE BASICS THROUGH COMMANDS

tight plinth
#

no

winged frigate
#

yes

copper sierra
#

uh

tight plinth
#

learn js

#

the you'll be able to learn commands

copper sierra
#

can someone still help me

winged frigate
#

learn js
@tight plinth hOw

tight plinth
#

gOoGlE

hazy sparrow
#

artoe what do you want

#

arata*

sudden geyser
#

Learning JS through making a bot is a wire a lot of people trip on. You should learn JavaScript and Node.js throughly by reading and learning it by example (for example, sites like Mozilla Developer Docs).

copper sierra
#

i want to have a multiple words at a embed

#

like

#

i posted it there

tight plinth
#

erm

#

do you know how embed fields works

copper sierra
#

and above it is my question

#

yes

#

kinda

tight plinth
#

.addField("TITLE", "DESCRIPTION", true)

copper sierra
#

case 'help':
const embed3 = new Discord.MessageEmbed()
.setTitle('help')
.addField('Fun', 'smug', 'spawncard', true)
.addField('Moderation', 'kick', 'ban', true)
.addField('Utility', 'purge', true)
.addField('Other', 'youtube', 'profile', 'info version', true)
.addField('Version', '0.0.1', true)
.addField('current Server', message.guild.name, true)
.setColor('#5DADE2')
.setThumbnail(message.author.displayAvatarURL())
.setFooter('Subscribe to prof c4 on youtube.')
message.channel.send(embed3);
break;

hazy sparrow
copper sierra
#

this is my code

digital ibex
#

.addField('Other', 'youtube', 'profile', 'info version', true)

#

the fuck

hazy sparrow
#

lol

#

that will be like

OTHER
youtube profile info version

copper sierra
#

i did that in the code

hazy sparrow
#

And?

earnest phoenix
#

how to like make a thing if a user reacts to the message it says for example:
Derku#0714 reacted!

copper sierra
#

and i dindt work like supose to

#

im now testing

hazy sparrow
#

which language

copper sierra
#

im testing the one you send @hazy sparrow

#

im using discord.js

earnest phoenix
#

which language
@hazy sparrow js

digital ibex
earnest phoenix
#

k

hazy sparrow
#

^
^

digital ibex
#

quick question, does anyone know the equivalent of the rateLimit event for discord.js in eris?

#

cant find anything in the documentation about it

copper sierra
#

i also have a question how to display the guild/server img

hazy sparrow
#

img?

#

you mean

#

image

copper sierra
#

o sorry i know all

#

/i have the answer

hazy sparrow
#

ok

copper sierra
#

thx

#

its

#

.setThumbnail(message.guild.iconURL)

#

or

#

.setThumbnail(message.guild.bannerURL)

#

oeps i was to hasty

sudden geyser
#

If you're using Discord.js v12, .iconURL and .bannerURL are both methods.

delicate shore
#

People keep removing my bot

#

Idk why

#

It was in 92 servers and now

#

It's in 89

jolly quail
#

Hmm does iconURL give gif server pic too?

#

For nitro boosted servers I mean

#

@sudden geyser

#

Ping me if anyone answers thanks

sudden geyser
#

@jolly quail yes. There's an option to set it as dynamic to automatically set it as a gif if it is, or return the static version of it.

hazy sparrow
#

@jolly quail yep

jolly quail
#

In v11 too?

sudden geyser
#

No.

digital ibex
#

your bots not good then lmao

jolly quail
#

Lol

hazy sparrow
sudden geyser
#

In v11, it was just a property. Whatever you set in your clientOptions would be what would be applied automatically.

#

But I think it did the dynamic vs. static for you already.

jolly quail
#

Yeah that's why I asked xD

#

It wasn't giving gif

hazy sparrow
#

v12 is max btw

jolly quail
#

Hmm

#

Upgrading to v12 will require what changes

hazy sparrow
#

code

jolly quail
#

Richembed became message embed

digital ibex
#

i recommend switching to eris instead of djs v12

hazy sparrow
#

eris is hard

digital ibex
#

eris is hard if you dont know javascript

jolly quail
#

Lol

digital ibex
#

otherwise, its pretty simple

jolly quail
#

Eris link pls

#

Docs

#

I m hearing eris for the first time tbh

hazy sparrow
#

google

digital ibex
hazy sparrow
#

tim hi

quartz kindle
#

if you think eris is hard, you havent seen klasa-core and detritus

digital ibex
#

i need to try detritus

quartz kindle
#

and of course discord.js-light

digital ibex
#

i havent tried before D:

jolly quail
#

Ty

digital ibex
#

lol

hazy sparrow
#

i tried to try d.js-light

digital ibex
#

but i dont use djs D:

obtuse jolt
quartz kindle
#

any lib that allows you do customize caching is gonna be harder to use

digital ibex
#

tbh, if djs-light was the regular d.js i probably would be using it

quartz kindle
#

because there are a lot of behavior changes and differences on how the entire program works depending on which caches you enable

hazy sparrow
#

if it was like that i would not even be into coding bots

quartz kindle
#

wdym if it was the regular djs

jolly quail
#

It's not like v11 will become useless is it

digital ibex
#
quartz kindle
#

it is tho?

digital ibex
#

wdym?

jolly quail
#

I mean it works for now

quartz kindle
#

djslight is built on top of djs

#

its basically a djs framework

hazy sparrow
#

tim what do you use

digital ibex
#

oh right

#

he uses d.js-light

hazy sparrow
#

oh

quartz kindle
#

ofc lol

digital ibex
#

he made it so he's probably gonna use it kek

hazy sparrow
#

i use normal d.js ;-;

quartz kindle
#

i made it specifically for my bots, then later on decided to change it so its better for pubic usage

#

and removed all the shit that was specifically made for my bots

hazy sparrow
#

how do you make a lib

rocky stump
#

Can i ask a question

#

?

celest schooner
#

uhj

hazy sparrow
#

sure

celest schooner
#

module.exports

digital ibex
#

the source code

quartz kindle
#

you make a lib the same way you make multiple files

digital ibex
#

its pretty simple to make one

#

~~ i also made it so pls use ~~

rocky stump
#

Is that true that there is ban onmee6 bot

hazy sparrow
#

ask on mee6 server

#

btw tim you should make a lib like

.setPollbot = true

and

rocky stump
#

Ok ๐Ÿ™

hazy sparrow
sudden geyser
#

@digital ibex cool package, but I think this is misspelt on the front page readme file

digital ibex
#

oh

#

whoops

#

if i can be bothered to work on it, i'll fix it

hazy sparrow
#

whats that

digital ibex
#

a really really really really cool library

hazy sparrow
#

people be making libraries and here im not getting how to make a proper mute command

digital ibex
quartz kindle
#

dafuq

silver spear
#

how do i use css lmao

#

i need to make a good bot page

misty sigil
#

ok

#

can you tell me how you made your bot first

#

am just curious

silver spear
#

ghostbot

misty sigil
#

did you make any custom commands?

silver spear
#

yeah

misty sigil
#

should be fine, i think

silver spear
#

kk

#

;0

#

๐Ÿ™‚

#

ill try and learn

#

just to make it look better

misty sigil
hazy sparrow
#

CATS

solemn latch
#

Cats indeed

misty sigil
#

c a t

earnest phoenix
#

wow

#

good bot

#

53 servers