#development
1 messages · Page 1496 of 1
here is
yeah that should work fine
2 things you should ask for here. testers and people to code with you, those usually lead in disaster
oh, and ideas

I did
You guys helped a lot thanks
you're going to be the only one who's familiar with your code, so you're the best tester for the bot
true
Don't Just Say "Hello" in Chat.
if isinstance(error,commands.MissingPermissions): embed = discord.Embed(title = "Error!", color = discord.Colour.red()) embed.add_field(name = "oops", value=f" You cannont kick that user {member.mention}.") await ctx.send(embed=embed)
please help
Right. I fixed all bugs too. I didnt find any till now.
Did you copy paste code without understanding it
lmao
loal
loal
loal
loal
dont spam
k
but you contributed to the spam wh-
loal
I dont consider a single word as spam. Even if multiple user are typing same exact word
Well, with no more info about your problem I can't help you @sacred trout, especially when you copy pasted it somewhere
Then you'd know what I am talking about
it just doesn't send
it works but i also want to do it wherever we can see another person "/ user-info @ Jukenoi02"
|| @opal plank ||
But what
what?
whaT????
it should work
try /user-info @SomeOtherUser
for (let i = 0; i < args.length; i++ ) {
if(args[i].toLowerCase().includes('-ping'))
args.slice(i, 1).join('');
}
mention = true;
} else mention = false;``` This doesnt remove the word -ping after being used in message
It's like
embed = discord.Embed(title='Helpppppp')
await ctx.channel.send(embed=embed)
whaT??? It not work help
I need way more context
probaly he is using discord-canvas?
splice
thats python
didnt work
then you did it wrong
code is above

not splice
I did splice too
then you did it wrong
@sacred trout
yea?
can you examine code and tell whats wrong other than slice
lol
i try and no
try this then
not enough context
I need way more context to your problem
umm
And more context === more code
Indeed
we need to see more code
i try what ?
so my coed doesn't work no error and no result
ok so show us your coed
code
if(args.some((val) => val.toLowerCase() === '-ping')) {
for (let i = 0; i < args.length; i++ ) {
if(args[i].toLowerCase().includes('-ping'))
args.splice(i, 1).join('');
}
mention = true;
} else mention = false;
if(mention === true) announcementchannel.send('@everyone');
const embedAnnounce = new Discord.MessageEmbed()
.setTitle("Announcement")```
l
You
let user = msg.mentions.members.first()?.user || msg.author @terse swallow
@client.event async def on_error_kick_1(ctx,error): if isinstance(error,commands.MissingPermissions): embed = discord.Embed(title = "Error!", color = discord.Colour.red()) embed.add_field(name = "oops", value=f" You cannont kick that user {member.mention}.") await ctx.send(embed=embed)
async def on_error_kick_1(ctx,error):
if isinstance(error,commands.MissingPermissions):
embed = discord.Embed(title = "Error!", color = discord.Colour.red())
embed.add_field(name = "oops", value=f" You cannont kick that user {member.mention}.")
await ctx.send(embed=embed)```
What the
ok
What in heavens is commands in this context? Where would it get commands from?
lol
on_error_kick_1 isn't a thing
oh fuc me
rather not
I mean I don't really know python so I have no idea but this doesn't look like any good code.
lol
It is for the most part
for (let i = 0; i < args.length; i++ ) {
if(args[i].toLowerCase().includes('-ping'))
args.splice(i, 1).join('');
}
mention = true;
} else mention = false;
if(mention === true) announcementchannel.send('@everyone');
const embedAnnounce = new Discord.MessageEmbed()
.setTitle("Announcement")```
why not just if(args.find(x => x.toLowerCase() === "-ping")) announcementchannel.send()
still not working
change
It is code but not good code
still not working
Dude
lol
Guys this is a troll.
Is it working?
Make it a local error handler
no
Really?
yes
I see
Clearly, a troll, as no one could possibly write such bad code if not on purpose.
what is your command signiture for your kick command called @sacred trout
lol
It's impossibly bad.
Sadly you'd think so
kick
oh
I do'nt even know python and I can tell it's horrible code >.<
Oh my boy, don't say it's impossible, I've seem...things no programmer were supposed to see
wtf?
does it work now
here is the code i think you will see better what i am doing XD
Traceback
Hastebin is a thing
discord.ext.commands.errors.MissingPermissions: You are missing Kick Members permission(s) to run this comman
normal
lol
You are missing them
@opal plank
pong
no that's the point
this
Well it works yes?
no
What's not working
@client.event async def on_error_kick(ctx,error): if isinstance(error,commands.MissingPermissions): embed = discord.Embed(title = "Error!", color = discord.Colour.red()) embed.add_field(name = "oops", value=f" You cannont kick that user {member.mention}.") await ctx.send(embed=embed)
this this thsi this this this
You idiot bruh
ikr
i told you to just replace #development message @terse swallow
@kick.error
ok
100% can see that code

Cannont
sarcasm
i mean
No, i mean
coden't
971 lines?
is that ads?

wanna see bad code? just check any code written by that dude who started making a bot in the past 2-3 days
@ modums ads
copy pasted open source
Poggers
It is possible to have negative common sense
is ctx.author.mention a thing???
Yes
I was helping someone with a tourney system, a lurking guy stole the code, then came to ask why it wasnt working
ok
The fun thing about os steal is how the thief becomes lost af and start to ask how the code works
I did it and removed the mentions but it still doesn't work
empty whitespace character
pong
????????????????????????????????
show code
didn't work
the updated one
Use \u0000
yes
Null character
empty doesn't work @gilded olive
^
Idk how unicode works in python
lmo
But try \u0000
lmo
çpong
That's how it works in most langs
This guy has been on the coding server I am on for literal months so it's not a troll https://cdn.discordapp.com/attachments/754682851097837619/795327804093759578/unknown.png
\u200b
yeah I get it. I was being hyperbolic, you can stop trying to convince me there are actual people mentally incapable of programming, I'm fully aware.
@terse swallow does that not work? it looks fine to me
Ook...
did you restart bot?
alright
Python parsed the null character
Imagine being hipobolic
That thought makes me whelmed.
yes
it does not work
what error?
it's no error just no send embed
how are you sure there's no error
you don't seem to have proper error handling so there's a chance it gets swallowed
no its not even sending a message when I execute the command
Could anyone give me an example recieving a vote webhook from dbl? I don't have any webhook experience so I am a bit lost. (Language python)
#topgg-api can help with that
then it's not running that command at all.
they have working examples
no response in hours
@terse swallow do you know what === means in javascript?
no my bot send 0 message when whrite this command
yeah I know why. Do you know what === means?
oh, good catch, i completely missed that
Thanks, didn't find that before
thats literally what i said before
,
you didn't find it because you skimmed it
didn't see, like, the super obvious link on the left ¯_(ツ)_/¯
New dblpy docs will include examples with more in-depth explanations
yeah can't wait to see https://docs.top.gg/ coming alive 😄
you don't have to live if it's demoralized people and its means strict equality
It open source?
What is?
dblpy
Yeah
no u are a more in-depth explanation
It has a live chat with shiv
A simple API wrapper for top.gg written in Python. Contribute to top-gg/python-sdk development by creating an account on GitHub.
Yet to be updated to match recent changes though
i keep helping node-sdk and dblapi.js but i dont get lib dev role, whats this discrimination about @slender thistle ?
Probably because you're not the official maintainer 
Which
Nah
👀
The repo name change, some internal plannings
so you ask people to do whats ultimately your work cuz of laziness? gotcha
so you read what i said? @umbral zealot
What?
🤨
you didnt check the docs
Yeah I read what you said. Do you understand what I was leading at?
Why would === be bad in this situation
and now you arent checking the commit history cuz "it doesnt look well on mobile"?
It truly dosent hence
Even worse imo
2 clicks away
because here we don't need a strict equality
No... even loose equality
why does message.content EQUALS /user-info not make any sense
Think for second
ok
Are Hello and Hello darkness, my old friend equal?
no
So, "equals" is the wrong thing
How would you express a condition to match those 2 things, in english?
You have Hello and you need to match it with Hello Darkness, my old friend, Hello, is it me you're looking for? and Hello, it's me, I was wondering if after all these years you'd like to meet. How do express this in english?
==
lol
How the hell does Hello EQUAL any of those?
and also how is == english?
"Hello equal equal Hello Darkness, my old friend"
Yes, yes, hmm, makes perfect sense.
tip: startsWith() or includes()
you are checking if the message.content equals /user-info but the moment you type /user-info abc the message.content no longer equals /user-info
I was tryign to get them to actually think for a moment but alright guys.
i know, but the language is already screwing with them
since they're french and from the looks of it they are translating it
prob easier to fowards to the docs and translate the whole page
Evie, you'll be going in circles for a while
in my guild they'd already be muted for a week so they actually went to read docs ¯_(ツ)_/¯
you are not making the right choices so help understand how his walk would be more appropriate
It's hard to help someone who doesn't help others help them
You're what's called a "help vampire" or a "tyler", meaning, you don't want to take the time to learn the language and expect everyone else to fix your problems.
You can keep relying on everyone else to program for you, or you can take the time to learn, but if you choose to continue to be a help vampire you can expect a high level of resistance everywhere you go.
Si ça aide je peux t'expliquer en Français pourquoi faut aller prendre le temps d'apprendre la langue que tu veux utiliser avant de programmer des bots, au lieu de te fier sur tout le monde autour de toi pour régler tout tes problèmes?
wowzers
After 4 years you learn to recognise the vampires 😄
Would it be possible to put a navigation bar at the top over this
Because every time I do it it does not seem to show
What do you mean "At the top over this"? Over what?
cuz it is
because I is a white page I would like to put a navigation bar at the top of the page but every time I put the code in for the navigation bar it does not even show up
but when did they make it boolean?
whenever they did
why is this important
god autocorrect smh
if it doesnt fuck up everything then whats the problem
it does
well the fix it
pretty sure it should be a string
With just the html there's not much anyone can do, can you try putting this in a codesandbox or something? html alone isn't useful.
Do you want the CSS too?
What drug are you on, message.author.id has never been a boolean value it's always been a string.
im getting string in my eval
probably you changed it to a boolean

We would need to see the entire environment, like, the html + css + js, so you'd need to put this on a repl.it or glitch or codesandbox.io instance so we could see the whole thing and a preview of how it looks.
Why though, if you're not going to actually try to help people, move to #memes-and-media .
i am
Then stop shitposting
im not
you sure?
console log it in both statements
^^^
You are literally turning it into a boolean right there
by saying message.author.id = !"something" 😄
i just realized it
thats why i said console.log it in both statements
i overwrited message.member too... and that was the reason, why everything stopped working
because if it changes its most likely something you did
well that's not helpful.
it also doesn't look anything like the code you linked before
maybe try Saving the index.html file 😉

how tf do u make something like this
iframes i think
i inspected it and its a <embed> thingy
Damn looks cool
but aren't we only allowed able to use css?
what?
Joke

your still poggers doe
My poggers status has nothing to do with any bot I made. lol.
The online code editor tailored for web applications
shhhhhhh
Ok good! Now we can see it
So, now, try to add your navigation bar and let's see why it doesn't work
well ok so you have the HTML
... you do'nt have any related CSS Though
is that supposed to be bootstrap?
Bootstrap?
Idk my friend had put it in
So ask your friend how to use this then

copy/pasting random html from a random website usually doesn't work out the way you think it does.
Well then you have better get started on actually learning html and css 👍
In the meantime you're missing the bootstrap CSS import in your <head>.
w3schools is where I learned HTML / CSS highly suggest it
how can i make an event listener .. which look for a particular post on twitter and put's it on the discord channel?
an event listener for a particular post?
yup
sounds like webhooks
You should use any twitter's api(?
if you're using python you can check out tweepy
the way its phrased it sounds like he wants to search every twitter post until something specific is posted
which i doubt twitter has a webhook for.
uh idk much about twitters api but dont posts have ids
or something unique about them
yeah, but you wouldnt have an event listener for something already posted.
true
I see
my bad .. I actually wanted to look for any new posts made by a particular person or organization and share the same tweet in the discord channel
like as soon as the post is made?
yeah
language
in python
If it's javascript maybe Woo can help you but if it's python I can help
ayeee ight
this is a popular lib for it
ohh cool .. thanks
I have not used it but let me see if I can find something

UnhandledPromiseRejectionWarning: Error [GUILD_MEMBERS_TIMEOUT]: Members didn't arrive in time.
it's a private bot
why would I need intents on that
and how would I do it otherwise?
await guild.members.fetch();
intents are required if you want to fetch all members from gateway
they do not care if the bot is private or not
see:
You don't need verification to enable member intents if your bot is meant to be private, though
Up to 100 servers u can use all intents u want
Hi, does anyone have an idea to what I asked in #topgg-api?
Guys how can i add how many chards my bot have ?
Its 75,after that it gets locked. 100 is only for guilds iirc
For joining guilds*
how would I go about making a ws use less memory?
you can't do much
I mean I see d.js-light using almost no memory while I use 50mb on liteally just a ws
d.js-light removes the caching from discord, it doesn't do anything to the websocket connection
Do you have a websocket server or a websocket client?
You probably have a memory leak somewhere in your code, or you are just using a lot of memory in general. Does your app handle a lot of data?
Just one websocket connection cannot use up to 50 mb of memory, so maybe something else is using up all the memory. Do you know how frequently the websocket client receives messages?
tip, use chrome's debugger
chrome has a ram profiling tool
it takes a while to learn, but the gist is:
expose port from node startup
attach on chrome
run profiling
@crimson vapor
hey guys so i am trying to make a quest command and so far i cant seem to stop it from making a different command how do i stop this? heres code
imagine not having logs of websocket connections
that's not enough context
I'm not sure what you mean
what's veldchat
^^
veld.chat
ig
hmmm interesting
veld's discord clone basically
i keep thinking about THIS veld
huh, interesting
yea
nah
@earnest phoenix check new metrics
wow that is awesome
i dont think i can possibly fit more data into a single bot
votes, logs, guild logs, command logs, presences parsed, amount of users playing genshin, cache, ram, cpu, error logs, it legit has everything
735 mb with 260 guilds?
yup
the guilds isnt the big killer though
its the users
i have my own user cache
base d.js is around 350-450
the rest is mine caching a shit ton of stuff
image buffers, cached entries, API cache, cached characters, completely new user object, its a ton of stuff im keeping in memory
ngl, half of it could be put on Redis instead
which would probably improve it a bit, redis does have a little bit of compression
why when i use
if (!message.author.id === "any id") return;
the bot just keep replying to everyone
Because !message.author.id always returns false
!== not !message.author.id ==
I don't think redis is good when there's only a single process
!message.author.id checks if message author.id is nullish
it turns into true/false === 'string'
even the id i have entered ?
you might be right, but i could store a bunch of stuff in 32bits, i know for a fact it does some nice optimization
its your syntax thats wrong neru
you need to solve message.author.id === 'id'
not !message.author.id
just like brackets, its scopes
!(true) => returns false
!(true === false) returns true
!true === false returns true
because its resolving !true first, not (true === false)
same applies to message.author.id
So what should I use if I want the bot to answer me alone?
do a little bit of thinking, i explained what is wrong with your scopes
you should be able to come to your own conclusion with the info above
your thought is right, your syntax is wrong
@opal plank can u fix it for me ,? 
@hearty palm you got Dev in your name, this is basic stuff, i believe in you
i also believe in the power of reading the rules and not spoonfeeding beginners
i'll go one step further https://stackoverflow.com/questions/59959046/what-does-mean-in-javascript
imagine having dev in your name but not knowing how to use if statements and how to compare things
bro
guys i need help collecting reactions... i want this to be all the reactions collected but idk what else i can do exceptjs const reaction = collected.first();
like i tried collected.all();
does anyone know if I can create gifs with the canvas framework/npm
collected is all reactions, put into a Collection (Map)
yeah, it's a collection
why are you calling it?
collection
isn't it delete()?
that's my whole code
if(msg.content.startsWith("!role")) {
const Role1 = msg.guild.roles.cache.get("789631347773669377");
const Role2 = msg.guild.roles.cache.get("795378771372277801");
// Creating a filter.
const Filter = (reaction, user) => user.id == msg.author.id;
// Creating the embed message.
const Embed = new MessageEmbed()
.setDescription(`Choose a role: \n ✔️ ${Role1.name} \n🔔 ${Role2.name}`)
// Awaiting for the embed message to be sent.
const reactionMessage = await msg.channel.send(Embed);
// Reacting to the embed message.
await reactionMessage.react("✔️");
await reactionMessage.react("🔔")
// Awaiting a reaction to the embed message. Time is measured in ms. (30000 ms - 30 seconds)
reactionMessage.awaitReactions(Filter, {max: 1, time: 30000, errors: ["time"]}).then(collected => {
// Getting the first reaction in the collection.
const reaction = collected.first();
// Creating a switch statement for reaction.emoji.name.
switch (reaction.emoji.name) {
case "✔️":
// Adding the role.
msg.member.roles.add(Role1);
case "🔔":
// Adding the role.
msg.member.roles.add(Role2);
}
}
)}}
)```
I doubt you wrote any of this code...
you shouldn't use awaitReactions for that?
you should understand how the code you copied works before you copy it blindly and ask for help
and ^^
Often people get frustrated when you copy paste code
anyway
no. this is NOT the right approach
it's better to learn it even if it takes more time
do not use awaitReactions for reaction roles
are you hitting rate limit? what's the issue
well doesn't awaitReactions just create a reactionCollector?
yes but it times out.
the best approach would be to use a messageReact / raw event
@earnest phoenix https://discord.js.org/#/docs/main/stable/class/Client?scrollTo=e-messageReactionAdd
use this
could i use .array?
what?
you cant use awaitReactions for reaction roles (technically you can but its a very stupid idea)
you'd be better to use a reaction collector
but the best way is using messageReactionAdd / raw event
awaitReactions is designed for short term usage, for example to answer a question with a reaction
this
if you use await reactions you better set it to expire in 100 years 
its called awaitReactions for a reason
once the time limit is up if they do still react it wont work
and you'd have to keep destroying it an making a new one on every single reaction
me, an intellectual : {time: -1}
huh
pong
What- lol
Pcong tf
Lol
im gonna fix that code
if(msg.content.startsWith("!role")) {
const Role1 = msg.guild.roles.cache.get("789631347773669377");
const Role2 = msg.guild.roles.cache.get("795378771372277801");
const Embed = new MessageEmbed()
.setDescription(`Choose a role: \n ✔️ ${Role1.name} \n🔔 ${Role2.name}`);
const reactionMessage = await msg.channel.send(Embed);
await reactionMessage.react("✔️");
await reactionMessage.react("🔔");
function role() {
reactionMessage.awaitReactions(Filter, {max: 1, time: Infinity, errors: ["time"]}).then(collected => {
const reaction = collected.first();
switch (reaction.emoji.name) {
case "✔️":
msg.member.roles.add(Role1);
role()
case "🔔":
msg.member.roles.add(Role2);
role()
}
})
}
}```
lol rly
yes I know it’s copy n pasted, but uh what’s wrong with this coding nor is it showing any uh errors
Should learn JS before copy and pasting then asking why it's not working.
im having a stroke reading this 
Lo
while(true) {
reaction = await message.awaitReactions(filter, {max:1,time:Infinity});
// do shit here
}
Hello,
My bot was in 75 servers so i got the message from discord to verify my bot. My bot was in 4 servers of the own the rest was organic growth. It took about 1,5 months to get it to 75 servers but for some reason in the past 3 days it grew like 15-20 servers. And when i went to apply for verification i got a message saying my bot didn't grow organically and that they cant review it at the moment? Should i just make a support ticket? Or should i just wait a week and apply again?
not sure
its best to ask in the dev server
Do you have a link for the server?
ty <3
client.player.play is not a built-in function
What language should i learn for a discord bot
So should I delete it? @quartz kindle
whoever made that code has a lot more code in other places that are required for that specific piece of code to work
Lol
copy pasted code has a 99% chance of not working
Hm why that?
No, 76 is to start verification, but you can use all intents up to 100 servers
After that your bot gets locked
unless it's like, a small code chunk, most copied code has some more stuff to it than what you copy
Just as if u didn't do verification
after 75 your button gets greyed out iirc
It doesn't
Ah ok
are you 100% sure?
cuz i remember having to keep the bot online for over 3 weeks without downage because i couldnt restart it
or it'd lose intents
In programming there is a very important thing called "implementation". Its the process of adapting a piece of code to fit into your existing code. Nearly all pieces of code that you find out there need to be implemented into your code, aka, converted/transformed/edited to fit with your existing code. Of course this requires knowledge of programming, which is what you are lacking
Had to send discord a new requirement to unlock GUILD_PRESENCES gateway because I forgot to request it during verification
My bot was around 300+ servers
And it got locked until I disabled that intent or got approved for the gateway
Yea, you’re right every time there is a hard command to make and I copy and paste then it doesn’t work I’ll try to make my own coding,
so my bot used to work but then some people told me to put each command in different files. then the commands didnt work so i put them all back how i had them before
but still they arent working.
does anyone know how to fix this?
vsc doesnt show any errors
i've explained this one to you before, remember const Discord = require("discord.js")?
Oh yeah ye
What about taht @quartz kindle
oh yeah
I gotta delete it
I got it thanks
the keyword "const" is used to create a constant variable. const utils means you're creating a constant variable named "utils"
once the variable is created, the name "utils" is no longer available for use, its reserved by this variable
I’ll delete it
and the value can also not longer be changed, because its a constant
does discord.js have native support for / commands yet?
np
Here comes the moneeey
@quartz kindle lmao I deleted all the coding it showed like 29 errors

learn js my dude
is db.get() even a promise
@earnest phoenix thank you
i was trying to solve an issue and you just reminded me that Promise.race is a thing, which is exactly what i needed
what the fuck is a Promise.race()
im guessing it completes as soon as one of multiple promises finishes
c# has an equivalent called WhenAny
Promise.race() doesn't have to do with db tho
...huh?
how do i style a radio input?
Wdym?
Ah sorry I understand now
If you go on the top.gg website
And search
sym it comes up with show your method and other options
It says there
how do you stop your bot joining server with the same owner
how to make the status change every few moments?
discord said this inorganically grown
statuschange.dev=true
Oops, I don’t understand😂
I mean, I want my discord bot’s status to change every few seconds.
how
statuschange.time=2seconds/dev=true
?
along with the error message
u gotta hit save
@rustic ridge
Something about util error
@rustic ridge what’s the problem you see?
I gtg hurry
you haven't sent the error
do you have a file called error.js in your util folder?
Lemme see
hint: no
you dont have a the error file in ur util folder

@placid iron uh can ya explain what he means?
no
WHAT error
Some util ass error lol
if you need help, you may wanna tell us that error
SyntaxError: util ass ah yes a very common error.

There is no file called error.js in the folder called util
I'd advance the theory that this is yet another piece of copied code you have no understanding of.
I have a problem that im not sure how to fix
I mean you could, just, use SudhanPlayz music bot instead of just stealing their code, @earnest phoenix
but it seems u guys r already chatting abt a problem so should I come back later?
You'll never find an empty spot between the noobs, might as well ask.
Same lol
Hi, can someone here help me in #topgg-api?
@snow tendon look at my code in there, you need to pass more info
ok
that might fix it
I did read that in the docs but I wasn't sure if that was the problem
does it matter what port I put it on?
where do I get the webhook and the password tho?
It does
webhook: http://IPADRESS:PORT/context
ok
do I replace the context with anything or is that just part of the link?
also how exactly do I figure out which port to use?
and where do I find/set my password?
many questions
help meh
hi
client.on('ready', () => {
console.log(Logged in as ${client.user.tag}!)
client.user.setActivity('All Commands', { type: ""})
})
can anyone help
me make status change
is this right?
var Schannel = client.channels.fetch("789294581333884948");
mabye you can change the var part hmmmmm
also i never bothered to look into it but how do u put it in a code block format like that
that's not the problem, when i try to send something to that channel it says "Schannel.send is not a function"
change var to let or const
oh right
can anyone help
me get a custom status change
console.log(`Logged in as ${client.user.tag}!`)
client.user.setActivity('All Commands', { type: ""})
})```
let Schannel = message.client.channels.fetch("789294581333884948");
hmmmm
why is he talking on third person?
who
You
can someone help me
lmao
console.log(`Logged in as ${client.user.tag}!`)
client.user.setActivity('All Commands', { type: ""})
})```
how do i make the stauts change
type: ""
what's ur type
Watching
type:"WATCHING"
all caps
in order to randomize
lmao
also you can make a function like this:
function presence (){
client.user.setPresence({
status:"idle",
activity: {
name: client.guilds.cache.reduce((total, guild) => total + guild.memberCount, 0)+' Users',
type: "WATCHING"
}
})
}
wahts the red
i crossed out the console.log
thats red
everything else is nessesary
well the client.once
isnt
just make it a function
like this:
function presence (){
client.user.setPresence({
status:"idle",
activity: {
name: client.guilds.cache.reduce((total, guild) => total + guild.memberCount, 0)+' Users',
type: "WATCHING"
}
})
}
do i put this under the client.on('ready', () => { console.log(`Logged in as ${client.user.tag}!`)
where do i put
btw im new to coding
xd
discord.js
i mean idiom
no its english
but where does the function go
before the ready event
._.
first save and then run it
You must learn JS before making a discord bot...
Pffft. I didnt start that way 😌
I made alot of people angry. 😌
damn
lmao
@lost isle but dont go my route. You might want to learn how to read docs. Watch yt tutorials. Steal github code cough stackoverflow cough
@regal creek can you help me make a discordjs custom status move
ok
Then you can do reasearch on how to do it
kk
Steps:
Make a timer
Edit status
Repeat()
Helo
No you heard me. Now stop talking here because you will just Get angry people at you and you are gonna thank me later. If you cannot reasearch on your own you might aswell just not code.
Hello!!
i'm officially dumb.
I was looking for the error on the var that fetchs an specific channel
and the error was:
You have earnt the year's first award: 🧢
i forgot write the "await"
i'm stupid.
Do like me
ok so let's try the code again
Put everything in await
I'm worse
I tried changing a const
xDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
i tried that too
Didn't know what they meant by "TypeError: Trying To Change Const" cuz I'm stupid
Then I realised
How stupid I was
lmao
?
Just ask it
@halcyon kite the error with the var Schannel wans't using var
it was i didn't write the await
lmao

lmao
here
so i want that peice of code to run
even if the db part that restricts the command
is on
that pick ture of code
Didn't really understand what u want to do


