Bump Command on Bot.
Hello! I wanna do an bump command, that sends a message on a specific channel. If u know how to do that, please, ping me.
71 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OP#how-to-get-help
bruh
everyone send me that
then read it
and no help me
i do
channel.send('content')
we will never help you with writing code, but we can help you with fixing
all users here are annoying, you should try to help
??
but i need to send the invite to the server on ejecuted command, the name, the owner... etc
we don't need to do this, but we can direct the user on how to do it
ejecuted?
i dont think its possible to see who executed the command
Again, we are here to provide help if you have issues
We're not writing code for you
i know
☝🏿
but help me
sure but this person looks like he hasn't even tried
help you with what?
you're not sure about this, you shouldn't judge a person, but rather try to help them
to do the command
no write code
We're not writing code for you
by example
a guide
Try it yourself first. The guide and the docs will help you a lot
discord.js
discord.js
discord.js is a powerful Node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
latest version
i thinnk
that's the docs
not the guide
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
ive like https://discordjs.guide
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
have you read it?
this will help just as much
some times
i read some pages
well that isn't helpful
you need to listen to messageCreate event
and make the code act according to the message sent
slash
i want slash
uhh so your bot has a /bump command and you want the bot to listen to the /bump command?
The guide has everything you need
its registered
Read it
thats how you'd send a message to a specific channel
thx
it will be useful
but
the invite
and the info
how
?
what invite and info
also, send a single message
i want to send a message with info
you'd have to do that yourself
that's your job
and a invite
read. The. Docs
But i literaly dont know how, i say
<TextChannel>.send('info and invite link goes here')
We arent the docs
Put some effort in yourself and search the docs
we've already helped you with the d.js part, now it's entirely upto the logic of your code
which we won't help with here
breh
i need send an invite on a channel, and the invite needs to be the invite of the server on command is runned
ive got the code for create the invite and that, but, how i send the invite??
i can use
?
ah ok
i have all my code
finished
but
i have this error
you dont have to send a message for every word
and actually send the error
-
ReferenceError: "x" is not defined
: learn more
- TypeError: Cannot read properties of undefined/null (reading "x")
: learn moreThe code (Its an spanish bot lol)
You access invite but never define it
You only define it in the then callback
breh
what can i do?
define the invite before that
this is basic js really
Or move your embed in your then callback
that was an idea
i try
lol javascript its stupid, u can use console.log and no write nothing
and it will work
not possible
It is but ok, then move the embed into the then callback
what callback
the then callback
i try
but gives error on "const"
and that error is
thats not how a callback works
This is basic js
Do you have any js experience at all?
meh
Then learn it, #rules 3 #resources
breh
did you really have to ping me for that?