#development
1 messages · Page 1704 of 1
In mathematics, the term modulo ("with respect to a modulus of", the Latin ablative of modulus which itself means "a small measure") is often used to assert that two distinct mathematical objects can be regarded as equivalent—if their difference is accounted for by an additional factor. It was initially introduced into mathematics in the context...
its what fits in that series, then thats the modulo
ever done division tree's in school ?
with the / and \
yeah
well wasnt there a remainder on the right, u had to go on recursivly
at least thats how it was explained to me 😛 im not math wizzard myself
if i dont know something, i go google it
aha i see!
from . import errors
from .http import HTTPClient
it says package not found and I tried installing dbl and it still doesnt work
anyone here uses soundcloup api?
whi means what ?
what
Thank god for Function.call
static class members would be a pain in my ass without it
why
I'm reimplementing Discord.js' classes and interfaces to act as a layer between user facing code and lower level libraries such as Snowtransfer while retaining a rest only aspect (otherwise, I'd just go back to Discord.js)
When it came down to reimplementing PermissionOverwrites and by extension, Permissions and BitFields, BitField.resolve is a static member which makes use of static BitField.FLAGS I didn't copy the design 100% and ran into issues where it wouldn't reference the extension classes' static member FLAGS and didn't fancy adding more param to resolve
guys c# is cool so we should learn it 
exactly
I see
You see sharp, ey?
but seriously, c# is so powerful, it's really good at everything but the UI department
building UI apps with c# sucks ass
xml based ui
i want to learn like a C language but c or c++ or c# im not sure
but since c# is cool i might choose it
C# is very different from C and C++
in terms of popularity in companies, you're better off doing c#
a lot of companies are hiring asp.net devs
ok
there's also unity but unity c# is almost nothing like actual c#
yeah ive never used unity b4
ok im pretty sure i need to install visual studio for c# apps?
yeah
well... that is if you want to use .NET
well c# is built on the .net framework or whatever lol so yeah
there are other IDEs
is visual studio not good?
it isn't anymore
c# is .net core, now .net
entirely rewritten .net technology
so it can run crossplatform
the naming is confusing
c# used to be .net framework only, then .net core came in that was a whole ass rewrite that allowed c# to run cross platform
then .net core rebranded to just .net
and .net framework is deprecated
visual studio is an elephant
Rider is paid 😢
big, fat, slow and clunky
depending on WHAT you're doing, you can request a free license for jetbrains stuff
what am i doing hmmm
if youre a student you can get rider for free
im a student yeah
also if you're an OS dev
thx
keep in mind that you need to have a school email for this
?vote
wrong server and channel
hey
arnold
I am trying to delete this embed in discordjs, how would i do that?
I have been looking around but couldn't really find anything
edit the message and set an empty embed list
so that would completely remove the embed right?
yes
oh and define the message as "\u200B"
else it'll error saying "cannot send empty message"
that unicode is for VOID character btw
why not just delete the message
yeah i have one
yeah i wanted to do that.
yeah, deleting the message would be better
hahah yeah, i love the alternative but i rather stick to the basic solving.
So how should I delete? Just like a normal message?
yes
so message.delete()
sounds lovely, thank you!
okay hold on a second, my embed is called Embedz
can't we use Embedz.delete();
CamelCase 😩
tfw your app is built in react native 
hey
no
owh
is botify down ?
but i already have the variable name of the embed, so how should i delete that exact embed
as only 1 is being sent
okay
you cant
owh okay, my bad
you either delete the message or edit it to remove the embed
I thought embeds persist after edit, unless they're nullable
// command: !queue stop
if (command === 'stop') {
const randomItem = usersInQueue[Math.floor(Math.random()*usersInQueue.length)]
console.log(randomItem.username)
message.channel.send(`${randomItem.username}, we are about to begin the match! You have been pinged as party leader!`)
message.channel.messages.fetch(queueMessageId).then(queueMessage => {
message.delete(1000);
})
}```okay i've got this so far, but this is the error: Supplied options is not an object.
they are undefinedable 

needs to be an object with the timeout property
yeah i saw that already actually
sorry for the bothering guys.
not exactly a solution to your issue, but may be a solution to future issues;
Use VSCode and turn on CheckJS in VSCode settings
Okayy, wil definitely turn it on!
also, use TS :))
:)
I love transport stream myself
Very type safe
how would i perform an action that is the same as clicking the 'reload button' in vsc?
control + shift + p
reload window
yeah, but like, code-wise.
There is no way afaik
afaik that button simply shutdown and rerun the code
try process.exit() but you shouldn't be building a workflow around a feature of your code editor.
isn't there something named process.exit();?
owh alrighty!
I think process.exit will probably just do the same as the Stop button though
Where is the intellisense for my eval command 😭
It does.

pov: you grew addicted to ctrl + space
pov: you think you should run your bot inside your editor
Yes, start a code-server on your VPS and run your bot there
Is there any way by which I can get the invite of the servers in which my bot is there in discord.js??
I don't really think that is allowed...?
Ohh does it violate the terms?
Yeah you shouldn't be creating invites to servers unless it's been requested by the owner
you CAN, but you need to explicitly ask for permission
Yes, there is.
but maybe you should send something like a message
When a bot owner shows up in a server uninvited you can bet your ass they get banned and their bot yeeted to oblivion
Ok I was just curious as to in which type of server my bot was in but thank you for responding
alt acc 😂
yeah doesn't matter, I can tell - bot creates an invite, user joins immediately, that's the owner.
yeah make it get already existing invite
Just don't
Ok I wont thanks
I wouldn't really do that at all.
Yep, you better don't.
Yeeting any bot which requests admin perms should become a common practice
If it has commands that really require it.
No such command do
Yeah it does as you don't have consent of the owner.
Maybe it's a private group or something.
There are commands.
Yeah
That do.
I can answer that:
A - servers where your bot is being asked weird questions / harassed constantly (bonus points if it's a female bot)
B - servers where there's one person alive
C - botfarms
The administrator permission is the same as having all other permissions
It is
It's a lazy-ass shortcut though
saving alot of trouble
yep
So no command REQUIRES it
so no, there isn't a command which requires the administrator perm
did you mean "creating alot of trouble"?
you might be mistaken, are you sure that ain't your spelling check changing the word?
What does the command do that it needs almost all permissions
It does stuff that require prems
;-;
Does it kick, ban and mute every member, does it delete every message and then every channel, does it delete all roles, too? Something like a nuke command, perhaps
that doesn't need all perms
I mean perms like guild manage, manage roles, manage channels,
basically it
lol
literally don't be lazy, go check the right boxes in the perm calculator 😛
sure not ALL but most of them... my point was, no command needs all permissions... so stop saying that it's okay to request the admin perm
Pick out the permissions your bot might need
Who said I didn't pick them
actually, if your command requires more than 5 permissions you should review your code
lol
Some bots do that, like Chip (permission 8 in invite) and the reason they did that is because it's easier for an average joe to setup the bot with no issue with permissions. Even if you don't want to give it administrator, you can invite it with zero permissions but still, none of the commands require administrator permission
screw Joe
thats what I do
with admin perm, you trade safety for simplicity
fun fact, you can hear a boss music if a bot you gave admin perms get token-leaked
How i get a list of all member ids in servers my bot is in
cuz rn i have:
allmembers = []
for guild in client.guilds:
for member in guild.members:
id = member.id
allmembers.append(id)
But it only gives me a list but every item is my bot's id
Safety for simplicity?
oh, yeah
don't add any turkish bots then
Yeh, I have a command that requires the person who executes it to have admin
imagine a turkish boss music
what does it do
yeah what command requires admin?
that's ok
the BOT can't require admin
oh
iirc for dbl you can't require admin
"NO command requires admin permissions"
or something
they should change that rule to "NO command must require admin permissions FOR THE BOT"
you can't force the bot to need admin tho
you can only suggest it
forcing it would get you denied
-bots
Oh, damn I actually have a command that requires admin for the bot
what command?
Gotta fix it
.gonnafixit
-bots
it's a ticket command
o
just made it my own way so it requires like 6 perms
realistically the only commands that require admin should be an owner only command
huh
sigh back to work
I meant I am gonna set the right perm checks for it
ok
how would a ticket command require 6?
"CREATE_INSTANT_INVITE",
"KICK_MEMBERS",
"BAN_MEMBERS",
"ADMINISTRATOR",
"MANAGE_CHANNELS",
"MANAGE_GUILD",
"ADD_REACTIONS",
"VIEW_AUDIT_LOG",
"PRIORITY_SPEAKER",
"STREAM",
"VIEW_CHANNEL",
"SEND_MESSAGES",
"SEND_TTS_MESSAGES",
"MANAGE_MESSAGES",
"EMBED_LINKS",
"ATTACH_FILES",
"READ_MESSAGE_HISTORY",
"MENTION_EVERYONE",
"USE_EXTERNAL_EMOJIS",
"VIEW_GUILD_INSIGHTS",
"CONNECT",
"SPEAK",
"MUTE_MEMBERS",
"DEAFEN_MEMBERS",
"MOVE_MEMBERS",
"USE_VAD",
"CHANGE_NICKNAME",
"MANAGE_NICKNAMES",
"MANAGE_ROLES",
"MANAGE_WEBHOOKS",
"MANAGE_EMOJIS",
``` ez fix
lol
it's like, SEND_MESSAGE and EMBED_LINKS (if you go fancy)
and probably manage channels? Not really familiar with ticket bots
nope
Create channel + edit channel + Delete channel
They should open a new channel per request so they don't all mess up together
MANAGE_ROLES, MANAGE_CHANNELS, MANAGE_GUILD, MANAGE_GUILD, MANAGE_MESSAGES, USE_EXTERNAL_EMOJIS
Imagine that with a big bot
for ticket command
Does discord have a channel limit
Why do you need manage guild for a ticket bot
why manage_guild twice? lol
500 total
I just copy pasted the wrong thing
lol
250 iirc
500k members
discord limitations
[
"MANAGE_CHANNELS",
"VIEW_CHANNEL",
"SEND_MESSAGES",
"SEND_TTS_MESSAGES",
"MANAGE_MESSAGES",
"EMBED_LINKS",
"READ_MESSAGE_HISTORY",
"USE_EXTERNAL_EMOJIS"
]
This should be all
you can increase it
TTS messages? Why
why view_channel?
doesn't discord start capping out at a million
why do you require tts, embeds, view, react, use emojis?
you don't even need mesage history
You are saying as if you know how my commands works
lol
seriously what are all these weird-ass perm requirements
if it was you who create the channel you automatically have view perms
i actually would like to create 500 category channels and see how long it would take to scroll down
if you want to get a report after closing the token
do it no balls
reactions is for closing tickets
too lazy
and stuff
like a .txt or csv
otherwise i would
so you're saying to keep the channels even after the ticket is closed?
what you on about? its still ME!ME!ME!

you can have like delete ticket emoji and close ticket emoji
I am saying as if I know how MY commands work
proof?

MY
no proof ig
MY (US flag in background)
proof its not photoshoped
[
(niche) "MANAGE_CHANNELS",
"SEND_MESSAGES",
"MANAGE_MESSAGES",
"EMBED_LINKS"
]
😂
?
you rarely need more perms than that for a ticket command
proof right there @opal plank
clearly a bug from discord
@opal plank what happened to your old mei aka zero two dancing ?
Yeah, If you are making a bad quality one
I guess
nothing, i still have it
That wasn't even zero two
how bad quality?
Me!me!me! moment?
very
what exactly you want for a ticket command?
it's a ticket command, not a MasterSystem console for discord
yall didn't get traumatized by me!me!me! in middle school and it shows
dunno what you guys on about
Imagine flexing commits
still looks the same for me
happy tree friends
omg
proof

also, why would less permissions equal to worse quality?
why would you need some many perms tho?
simplicity is the utmost sophistication
professional commits
ADD_REACTIONS, SEND_MESSAGES, EMBED_LINKS should be all you need for a ticket bot
someone explain what me!me!me! is ?
I googled and found a song on yt
exactly
Imagine not knowing me!me!me! Or happy free friends
i have worse ones
beat this
github actions were down that day and i just lost my shit
thats your work repo right?
get on my level scrubs
not my work repo
but that was for work
someone asked me to make them a bot
and, well, theres that
Whathefuck
they didnt care about commits or anything, so i just yeeted shit there
not like they knew what github even was

hahaha 🥲
at least make the commits descriptive
added the thing
fixed something
implemented a feature
found a bug
corrected an error
moved stuff
Professional commit names
use git diff output as the commit message 🧠
average joe:
- doesn't care bout docs or commits
- wants work done fast
- wants to pay $10 for a state-of-art bot
- thinks coding is just writing a text
also average joe:
" WhY iS mY bOt NoT wOrKiNg? AlL i DiD wAs DeLeTe src FoLdEr!"
this is why you compile the app into a single file
so far no one has asked me to make a bot which is pog
thats not professional at all lmao
yarrr
ive heard fiver is pain
clients are rich but so... dumb at the same time
rich doesn't mean smart
it's a decent side hustle but fiverr takes a cut from your earnings so 😒
I mean for a highschooler
Every platform be like
no
more like a full job tho
No
LMAO
this is professional commits
Guys

That's the most informative commits I have ever seen
I will always what is that app huh
I used memberCount to count members in a guild
gitkraken
But how do I use it to seperate people into offline online etc
inb4, that'll only return you the cached count
oh nvm, forget about that
then you don't have to worry about that shit
GUILD_PRESENCE intents
memberCount is safe
yea ik
do you have that?
i have
aaaaaaand you would need to cache all members anyways so
which, if you're running djs, caching anything is a bad idea
errr
are you ok?
You would basically need both GUILD_MEMBERS and GUILD_PRESENCES intent for that, which are privileged
caching is pog
do you guys tell him or I do it myself?
I have both

djs objects are just way too heavy, combine that with node.js' shit garbage collection and you have a ram hog
Munching ram
I have .25
guess you could call it garbage² collection
fuck I can't edit
12 is nothing if you grow your hog
12 gb might be overkill for a 10 server bot...
hog moment

pogging hog
lmao I'll do it in google later
These are how my commits are structured
Holy fuck
imagine actually having useful info
That's hard to do
hey isn't it new Intents
imagine this, everytime you cache something it grows about 1cm bigger
not like you can do anything
when I calculated member using caching
What perm does the bot need to move channels?
Manage channels
manage_channels

bruh
make sure there aren't overwrites on the channel
it need manage only
that affect your bot
alright
hey how many days does it take for my bot to be verified here
around a week
Read the pins in #support
Ok sir
everytime you ask you need to wait an extra week 
lol

true
ok lmao ig I'm gonna make it 1 year streak
!false
f(speedrun)⁻¹
no
!"text" === "text"
returns true

@fleet radish try that```ts
let offline, online, dnd, away = new Map():
for(let guild of client.guilds.cache.values()) for(let member of guild.members.cache.values) {
if(offline.has(member.id)) continue;
if(member.presences.find(p => p.status === 'dnd')) {dnd.set(member.id, true); continue}
if(member.presences.find(p => p.status === 'offline')) {offline.set(member.id, true); continue}
if(member.presences.find(p => p.status === 'away')) {away.set(member.id, true); continue}
if(member.presences.find(p => p.status === 'online')) {online.set(member.id, true); continue}
}
console.log(Offline: ${offline.size} | Online: ${online.size} | Away: ${away.size} | DND:${dnd.size})
returns false
bet
Omg tysm
Spoon-feed momentum
it wont work fyi
U just made me skip my hw kekww
Wait lmao
Hi
Pls tell me it's bad on purpose
memory moment
kinda, mostly cuz i didnt feel like making it better
Memory
Yea ik lmao I mean what app
grafana
should i flex?

Lol I'll start flexing mine then bois
lol I have 32 too
@opal plank check my activity

booboo
a boolean is not equal to "text"
lemme show you
I have been using this
from my screenshot
sure
while(true) GC.Collect(); in c# 
99% cpu usage, 5 mb ram usage
And it gives me half the members server has lmao
wait, thats working?
cry, why
What the
that moment when you add so much security to your system that to access it it takes 1 year of precisely done operations
I had the same at the beginning
Discord.js caching is ewww
that reminds me of that "hide source from client" dude
wait lemme show
well, the way i did it was to make it as accurate as possible
i got a question....
so it wouldnt get repeats
setInterval(() => {
global.gc()
}, 60e3)```
how do i add snipe bot to my server..?
Just add it
ok tysm
you dont need it
like i said
the way mine works is by indexing each user
so you wont get repeats
oh
say, im in all 10 servers
I just get the table count from my database
you will have 9 repeated "me"'s
what 10 lol
no its not repetition
users that dont use my bot aren't useful to me
you have 10 me's
its more often than you think
I mean r in 2 servers
that's still repetition kek
when people flex their member count but their bot is in top.gg which takes up like 95% of your members
😔
Wait
bruh I'm mot fking flexing omg
like give one way it is useful
nah idc im not saying you are
i'm not saying you're flexing
you should flex the tape
theres literally a 130k repetition gap
omg I was just showing the difference
just I don't understand it
not the member count
hmm
look at the difference
mruh I did the same way
680k cached members
a lot of retarded bot "devs" here flex their member count but don't show their server count bc they know that top.gg, discord bots and guilds like that are boosting the member count 🤣
bro
Wait would fetch fix the problem
my bot aint here lul
fetch what?
why
let me check something rq
yes, caching all members would, but it's not a smart idea at all
im trying to get my bot to grab user status text and i cant find anything is it possilbe to do?
Bro, why is Node.js's garbage collector so shit
lol
why tho
yall flexing that but like, do you guys have undefined members? #commands message
I just want the fking accuracy xd
because javascript
because v8
It's not really the GC's fault
Kinda want to improve the garbage collector found in there
it's because it's a dynamic language, values aren't known at runtime
just that means more memory usage
inherently, blame google for every issue node.js has 
WHY IS THIS THE FIRST MESSAGE I SEE WHEN CHECKING HERE
how do u know though
Here.

I have seen the internals and also worked on them, but that's just a holy shit moment
all i want is a html & js renderer that doesn't run on chromium 😔
big brains bois
let's make one
Wanna make one together?
luk
your eval cmd is either faulty, you're getting the wrong value from the console or both
Good one
!"text" === "text" will never ever be true
Yeah, look he is still living in 2002
uwu
bro it's 2021

move on
We can use an existing html / css renderer
let me check something rq
and add js on top of it
huh
also, why use an if-else there?
that reminded me
why not
i need to check out how much ultralight improved
apparently ultralight can run react apps with no stutter now
because it's unnecessary to use 5 lines for a single-liner?
Yeah,
Because I am a few days in js
nice
lol
that explains why you think !"text" === "text" is true
Maybe you can enlighten me
oh
console.log(!"text" === "text")
Which of all the stuff I deleted?
😔

thats a shitton of bots
jesus christ
155 guilds with more than 70 bots
i assume they are bot farms
how so?
so maximum would be 15500 bots
They never limited bots
the first is the amount of guilds with more than 70 bots in it, the second is the amount of bots in ALL my guilds
let me add another reducer for the total of bots
@lyric mountain
understandable, have a great day

big yikes
do you guys think discord would accept guild members intent if I use it to cache members and not spam the api?
no
nah I removed it because fuck that
Oh
You can still lie about it though xd
proof tho
I mean
say you need guild members intent so you can sell user data to guilded
they would not know
big brain
Hello
Bye
No actually, any tips on how to work on logs using webhooks.
Kind of using cache channels and sending it and I was kind-of an idiot for not remembering rate limit is a thing.
Links to documentations can be great, I think.
Bruh
const Discord = require('discord.js'); const intents = new Intents([ Intents.NON_PRIVILEGED,
"GUILD_MEMBERS", "GUILD_PRESENCES" ]);
let online = (await guild.members.fetch()).filter((member) => !member.user.bot && member.user.presence.status == 'online');
Isn't this supposed to work
That's not how you use intents wtf 
cc
const client = new Discord.Client({
ws: {
intents: Discord.Intents.ALL
}
});```
Links Please? Would help...
link to what?
if you want to log, use a file
logging to a discord channel would severely ratelimit you
From admin now it only needs ```js
"VIEW_CHANNEL", "MANAGE_CHANNELS", "ADD_REACTIONS", "SEND_MESSAGES", "EMBED_LINKS", "MANAGE_MESSAGES", "READ_MESSAGE_HISTORY", "USE_EXTERNAL_EMOJIS", "MANAGE_ROLES"
@lyric mountain
Is there a link on how to use webhooks in discord.js?
for ticket command?
yeah
Ooo, thanks! 🙂
np
[
"VIEW_CHANNEL", //useless
"MANAGE_CHANNELS",
"ADD_REACTIONS",
"SEND_MESSAGES",
"EMBED_LINKS",
"MANAGE_MESSAGES",
"READ_MESSAGE_HISTORY", //useless
"USE_EXTERNAL_EMOJIS", //useless
"MANAGE_ROLES" //useless
]
Nah, without any of them
the ticket command won't work
why you use view channel?
to still view channel
it was you who created the channel
yeah but I configure the perms for it
you can't hide it from you without external influence
^
this time this is needed
for one of the functions
of the ticket command
I have
are you fetching past messages?
I don't think I need to explain how it works tho
you need
yes to me
Yeah, I don't even know you ;-;
that's a useless perm for your use-case probably
so, next
why you use "use external emojis"?
because I am using external emojis
why you use "manage roles"?
yep now I know
you create new roles per ticket?
you don't know shit lol
don't I?
because you don't even know what manage roles is used for
yes I know
I also know theres a hard cap for how many roles a guild can have
and some guilds get really close to it with reaction roles
Allows members to create new roles and edit or delete roles lower than their highest role. Also allows members to change permissions of individual channels that they have access to.
Yeah, I am changing perms of the channel
you're not only clogging server channels' list, but also clogging roles list
but not only this
I am not creating roles
lol
nvm
I don't need to explain how it works to you again

sure, you wouldn't be able to anyway
Sure
I must say tho, you won't get far with so much niche stuff VS discord ratelimits
it only takes a single botfarm
probably
you need an approved bot here
hey i have this problem on start my bot
Probably because of stage channels, what discord.js version are you using?
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 message listeners added to [Client]. Use emitter.setMaxListeners() to increase limit
Help me
🥺
You're adding a questionable amount of message listeners.
Generally, developers like to stick to 1
type 13 is the new stage channel type, you'll need to update your library
Stage channels have not been implemented yet to my knowledge
This pull request is still open https://github.com/discordjs/discord.js/pull/5456
Lmao
in djs he means @opal plank
a lot of people it seems
no one important /s
https://github.com/detritusjs/client/commit/b61583fb3721cc1b19030ed185991873af34786e if only there were other js libraries that updated almost instantly for new features

laughs in discord-rose
@latent ocean as they said above, staging channels arent available in d.js
Use detritus.js instead
Wink wink
what is it ?
A better discord library for js
i use discord.js-light
You could also point Discord.js to the branch the pull requester has
Eris is also an option, they covered most of the stage channel support already
@opal plank stop.
yo anyone got a discord.c# anti spam?
@crimson vapor make me hoe
ok 😉
Guys
Can someone show me an example code when someone vote my bot in top.gg the bot send message in my server channel
What library are you using? You want to send a message when your bot is invited to a server?
Discord. Js
When someone vote my bot in top.gg
Can u help @crimson vapor
hi
..
want example code?
There's an example on using WebSockets to receive vote data on the documentation.
https://docs.top.gg/libraries/javascript/#webhooks
Thanksss
the whole bot
well
it depends which ratelimit we're talking about
ratelimits are separated into buckets, you can read about that here https://discord.com/developers/docs/topics/rate-limits
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
what is the command
it has to
doesn't matter whether the entity is cached or not
whenever you create, edit or delete something it's a REST request made to discord
anyway
i doubt that ratelimit is global
it should be either per guild or per channel
id check out the bucket but im on my phone right now
the route's major parameter is the guild id so it's definitely a per-guild ratelimit
per channel rate limits are poggers
guys how can i make a command that you need to vote for using it
exports.run = async (bot,message,args) => {
channel.createInvite()
.then(invite => console.log(`Created an invite with a code of ${invite.code}`))
.catch(console.error);
}
exports.help = {
name: 'invite'
}```
channel isnt defined
yes its because not defined
how
try message.guild.createInvite()
Ok
ok
.then(invite => console.log(Created an invite with a code of ${invite.code}))
console.log
do i just change to
message.channel.send
or what
what does your command for
yes do message.channel.send
ok
console.log will send the message to your console
yea
(node:8112) UnhandledPromiseRejectionWarning: TypeError: message.guild.createInvite is not a function
okay wait
heres full code again
exports.run = async (bot,message,args) => {
message.guild.createInvite()
.then(invite => message.channel.send(`Created an invite with a code of ${invite.code}`))
.catch(console.error);
}
exports.help = {
name: 'invite'
}```
the error is clear
if you can't fix simple errors like this, then learn the basics of javascript
look
dont roast him no one started like a god to javascript
that's not a roast
its a copy and paste code "not all"from discord.js.com
it's advice
who writes in a language without learning it, you won't do an English essay without learning English
ok so do i
Is something wrong with my command I put it like this
$textspam <hahahaha> <182793728181731415263759695736251416264 1>
👀 textspam
and how to define it
because i am not experinced with creating invites
@half bear what
it's api spam if you wanna spam messages with your bot
discord will rate limit it
and it may result in an api ban
and if you use it for other servers your app probably get deleted yes
i have another problem
you guys are lucky because i don't know much English so learning js is harder
const activities = [
"Getting Created",
"Jack is good",
"OK",
];
bot.on('ready', () => {
setInterval(() => {
bot.user.setActivity(activities[Math.floor(Math.random() * activities.length - 1)], { type: 'PLAYING'})
.then(Presence => console.log(`Activity set to ${Presence.activities[0].name}`))
.catch(console.error);
}, 5 * 60 * 60); // 1000 ms = 1s, 1s * 60 = 60s (1m), 1m * 60 = 1h
});``` only the top 2, activites are getting sent, not "OK" for example
@earnest phoenix can I invite you to the server so you can join and help me please
@earnest phoenix or can you type it in hear
can someone help me about this btw
no
@earnest phoenix I’ll PayPal you $1
how do u
like i updated code in vsc
how do i now update it in github
like what command
git push
if(type !== ('add' || 'remove')) return this.sendMessage(channel, incorrectTypeEmbed)``` how am i doing this incorrect?
so i gotta re add
ok
but i made new folders and stuff
it should just update
nvm im idiot im new to github stuff
The logical OR operator (||) checks if the first value is falsy, if so jump to the next one, the string 'add' is never falsy so it'll never jump to remove, put them in an array and use <Array>.includes() ->
!['add', 'remove'].includes(type)```
A lock file already exists in the repository, which blocks this operation from completing.
i have no idea how to commit omg
there got it
hooooiii
Guys so I have a bot of mine that went from the 75 servers right there I sent it to check and waiting only that unintentionally in the gateway Intent I deactivated them from my bot just need to activate back because many events do not work in my bot so I’m trying to activate in site more I could not more, So I went into the support office, and it’s been a week, and no one’s answering me, so any help with that?
Whoever knows, please brand me!
guys how can i make a command that you can only use with voting the bot
no one can help you with that, you're gonna have to be patient and wait for Discord's reply
Ok thanks
Aight im having a few problems, i added some commands to my bot project, and didnt stopped at each one for bug checking or something like, but when i started to debug it, this error appeared.
``D:\nodejs\node.exe .\index.js
JS Loaded, Waiting for login.
index.js:1
Uncaught Error: Cannot find module '../../Structures/Command'
Require stack:
- d:\OMORI\commands\kick.js
- d:\OMORI\index.js
Process exited with code 1``
I can give the current index and the kick.js that is doing all the trouble if you need.
:/
it couldn't find the path to that exact file
show your index.js
can be here as well


