#development
1 messages ยท Page 730 of 1
Iโm making a rich embed
But
Every time I type something it responds with the embed
code?
bruh i need like more than just the embed code
cuz the error / issue has nothing todo with the embed
Ooooh aight Iโm not the best at coding ๐๐
...
Sorry, Iโm trying to make the whole thing bigger instead of sending multiple pictures..
๐but idk how
I assume you have that in your message event
cant u just C+P
Check if the messages starts with a prefix you want and if the command exists
mk
yh i think hes not got it within the command area and its just going off every event
I have it in with my other commands
Please look up some guides to get started with coding, and then guides to get started with making a Discord bot
oki
Starting without any coding knowledge is a pain and will not get you far
Iโve taken so many tutorials but they donโt explain it sadly
Should I bring the embed code into like an embed.js channel?
What?
no
Aight
he means you gotta have the embed only respond to the commands
Ooooooh
either comparing the string or using .startswith()
Ok
id highly advise learning the basics of your programming language and they dont cover it in tutorials as they expect you to know the basics of indentation and parenthesis
Oh okay, thanks :)
So at the top of my embed command I type msg.startsWith
Ant then (command))
and*
yes
your embed it out of the indentation and parenthesis so its still gonna keep triggering at everything
I have quite a lot of commands.
you want it to 'encase' the embed
Oh right..
development

How do you make a bot?
step 1)
go to discord dev portal - Make a application and have it as a bot
step 2)
Learn how to program before even attempting to program a bot
Step 3)
Actually start programming the bot
Step 4)
running the program 24/7 to keep the bot online
step 2b)
give up on step 2 and buy DBM
nah use botghost
step 2c)
give up on steb 2b and use a template engine like botghost
2d) you die if you use any other thing other than coding it urself u lazy shites
step 3a) start by opening notepad and make your first index.txt file
step 2d)
give up altogether and pay someone to make it for you
step 2e)
just donโt make a bot
step 2.5) rm rf yourself
step 2f)
decide to try again and ask in #development how to make a bot
and we have come full circle
Indeed
circular dependency detected
And Iโm still here trying to figure out why my embed keeps on bloody repeating itself ๐๐
jar already explained it to you
using C+P
Aight
your bot is responding on all messages
^
you need to set up conditions for when and why a bot should respond or not respond
And btw Iโm coding on my computer and using discord on my phone ๐๐
you rlly should learn how to do basic programming before doing discord libs
cant you open discord on the computer?
we prefer copy pasting code than posting images of the code
Iโll try
My friend told me to do module.exports but they didnโt tell me where :/
thats unrelated
module is for separating your program into multiple files
how bouts
How bouts?
how about no?
I wonโt
I didnt understand the power of the token as a starter. I put it on github, after an hour some scraper bot booped my server xdc
When will certifications be open again? ๐ค
The only thing close to the token is bot.login(botconfig.token);
there is no ETA for cert afaik
I use an .env file
^
It costs 5 dollars in Finland
Its retarted
It takes a month to transfer it
In Finland
Wnhat country does Oily live in
find someone from NL and ask them to send the letter for you
and give them 1$ via paypal
I found it on his twitter
rip i got no friends
^ same
i wonder when it will be open again
-bots @woeful patrol
-botinfo 486208458270703616
486208458270703616
Alisha
4334
A easy bot to use that has: Fun | Misc | Leveling | Logs | Reddit | Music | Images | Moderation and Info commands & a lot more!
discord.js
as! sa!
129
40
1299 Servers
@woeful patrol
Cool bot mate
I hope my bot gets accepted
i think my discord had a stroke
S T O N K S.pro
๐ค
Tolfx you can try using an email-to-letter service online lmao
Ye i can
they apparently exist, and cost like 1$ on average
ยฏ_(ใ)_/ยฏ
if (xp === xp1) {
sql = `SELECT level FROM xp WHERE id = '${message.author.id}'`;
sql = `UPDATE xp SET level1 = ${level1 + 1} WHERE id = '${message.author.id}'`;
con.query(sql, console.log);
}```
this wont work for some reason
big F
I hate sql lol
orm gang
i could use mongoDB but nah..
why are you creating two queries and replacing the first one with the second one?
I use firebase or mongo
i dont know why i have sql = SELECT level FROM xp WHERE id = '${message.author.id}';
forgot to remove it ๐ค
lul

client.on("message", message => {
con.query(`SELECT * FROM xp WHERE id = '${message.author.id}'`, (err, rows) => {
if (err) throw err;
let level1 = rows[0].level1;
let xp = rows[0].xp;
let sql;
sql = `SELECT xp FROM level WHERE level = '${level1}'`;
let xp1 = rows[0].xp1;
if (xp === xp1) {
sql = `UPDATE xp SET level1 = ${level1 + 1} WHERE id = '${message.author.id}'`;
con.query(sql, console.log);
}
})
});```
You should mayby add a timeout, so spam isnt revarded idk
that SELECT in the middle is not doing anything?
well cleanup your code damnit lmao
^^^^^^
wat
or maybe i could do a con.query actually
is xp1 supposed to be in level ?
because you're getting it from xp
hmmmm
your code is basically this
con.query(`SELECT * FROM xp WHERE id = '${message.author.id}'`, (err, rows) => {
if (err) throw err;
let level1 = rows[0].level1;
let xp = rows[0].xp;
let xp1 = rows[0].xp1;```
you should probably look into using JOINs instead of running query after query
wut
I think is working ๐ค
jk
it only selects the first level but not the others xd
how do you select all rows in a table in mysql?
let xp1 = rows[*].xp1; i tried this but clearly wont work :^)
remove the WHERE condition
I only have one
only for ID
and that one i need 
it worked fine but it will only update on row 0 not the others
this row
you should do something like SELECT * FROM xp WHERE id = message.author.id LEFT JOIN level ON xp.level1 = level.level
hm i can try
not sure if the syntax is correct for the db you're using, but the idea is to get the relevant entries from both tables and return them to you as a single row
Lol
show code
how to block if bot cant message to the channel?
I need to make a help command
Okay
good mornin
gm
@digital sparrow people already told you how a billion times lmao
either check for permissions before you send the message, or catch the error
How do i customise the bot page with css?
Hello everyone, I'm new here and I'm trying to develop my first Discord Bot.
I will use Node js and wanna know if the library discord.io is still up to date ?
I would use https://discord.js.org/
Yeah i saw it too, thank you !
np ๐
nice idea to use inspect
thats not css tho
no, its completely different than what the original question was asking
to customize the bot page just write css between <style> tags
yea, it shows how to add html to markdown
it shows the html equivalent
what does that have to do with css styling anyways
that page literally teaches you markdown syntax, nothing to do with the original question ๐ฉ
"how to change the dbl appearance"...
- You add the code
- You make <style> in it
- Change the css with !important tag
what class is create_invite? discord.py
im asking so i can do this
if message.content.startswith('sborder'):
channel = (645259977304571935)
InviteLink = await discord.(max_age=1, max_uses=1)
embed = discord.Embed(title="New Order!", description=message.content, color=0x00ff00)
embed.add_field(name="Order Maker", value=message.author, inline=False)
embed.add_field(name="Invite", value=InviteLink, inline=False)
await channel.send(embed=embed)```
but when i do create_invite, it says it doesn't exist
Why my bot don't have permission to send embed message? XD
all bots has perms to send embed messages
@unique nimbus embed message = Links permission
Help plz
@static nexus instance of TextChannel
I need help
Huh
so would guild_createinvite work
Nvm it's any channel
I literally said "channel"
i want an invite
not "guild"
so channel.create_invite
Whatever channel variable is
ok
assuming it's anything that is subclass of GuildChannel, yes
You should find that on github or just make it yourself
You will learn more
If you make it yourself
iik
Copying code won't help you learn if you know jack shit what the code does
i'm making it by myself
i'm stuck on the making invite part
everything else is 10/10
it gets the order, the order maker and if i want even the channel
WAIT
OMG
I CAN JUST GET THE CHANNEL AND MAKE AN ID OFF THAT
just a note: you dont use channel id to create an invite ๐คทโโ๏ธ
I mean client.http is available
what diffrence does it make on the lib?
delivery bot?
yea
I used to own(well for a DBM made bot)a discord bot which was a bit famous, and I used to run(before the controversy)discord drinks on my server with discord waffles.
since then i've always wanted to create a fully blown discord waffle bot
if message.content.startswith('sborder'):
channel = (645259977304571935)
InviteLink = await discord.TextChannel.create_invite(max_age=1, max_uses=2, reason=None)
embed = discord.Embed(title="New Order!", description=message.content, color=0x00ff00)
embed.add_field(name="Order Maker", value=message.author, inline=False)
embed.add_field(name="Invite", value=InviteLink, inline=False)
await channel.send(embed=embed)```
returns the error of, when the command sborder is used,
```File "C:/Users/mouga/Documents/Bot.py", line 30, in on_message
InviteLink = await discord.TextChannel.create_invite(max_age=1, max_uses=2, reason=None)
TypeError: create_invite() missing 1 required positional argument: 'self'```
Don't you think you need an actual channel instead of channel ID
the channel is where it's sent to
it's a food bot
currently attached to my demo bot
cough
discord.TextChannel isn't exactly what you need
it worked
You need an instance of it, not literally the class
why aren't you using the command handler
Don't take that error too literally
but use msg.guild.channel
you are not using a classmethod
i'm being told left and right to do different things
i'm like red in twitch plays discord
what
you're being told discord.Textchannel doesn't define an actual text channel
If you don't know difference between an instance of a class and a class itself... welp, F
oof.
oof.
??
i would also suggest putting a try inside create_invite
InviteLink = await discord.TextChannel.create_invite(max_age=1, max_uses=2, reason=None)
sobble dude
That's exactly what I'm talking about just above
i told you yesterday you gotta give it the GuildID
you told him this yesterday?
its the ONE required perameter
wow
and yh
What
tf
Why guild ID
thats so easy
d.py when making an invite for a server
it wants you to pass it the guildID / server
cuz he wants to create an invite so he can join the server that the command was sent in
It wants a text channel to be called on
saying "zyx"
It doesn't need anything more
wait yh sorry it is channel id
however
invitelinknew = await bot.create_invite(destination = ctx.message.channel, xkcd = True, max_uses = 100)
no that will not just work btw
It's providing a wont define self
Did either of you read the docs
not any other error
Calm down
i just took that code line off an example code for it
^
I have never had problems after I read the docs
you should go back to learning basics if you can't understand docs
Where did you find the info on bot.create_invite @spice trail
The stuff is tested heavily
@bot.command(pass_context=True)
async def invite(ctx):
invitelinknew = await bot.create_invite(destination = ctx.message.channel, xkcd = True, max_uses = 100)
embedMsg=discord.Embed(color=0xf41af4)
embedMsg.add_field(name="Discord Invite Link", value=invitelinknew)
embedMsg.set_footer(text="Discord server invited link.")
await bot.send_message(ctx.message.channel, embed=embedMsg)```
You are correct. However, after reading them 10 times, I am unable to get something out of it. I just want to generate an invite and post it on another server
Fucking...
ree
Do you realize we're rewrite here
its edited now
rewrite only
that is rewrite
Your code is not rewrite
please dont just C+P that sobble...
it. is.rewrite.
i'm using both
And Jarl is the one giving wrong shit rn
@static nexus channel.create_invite
You use either, not both
๐ข
async in js if fine, but py async ewe
Affax
?
If you're not gonna contribute to this already-fucked-as-is conversation, don't fill up the chat
Thanks
1 message lol
Since that's an instance of a TextChannel (also subclass of GuildChannel)
so message.channel.create_invite
Yes
sorry for my input sobble, seems i was giving you the async version
rw is more OOP while async version is literally bot.x
remember you gotta give a disclaimer if it goes live to other users and servers btw
Hoo-fucking-ray
IT WORKS!
yes i am adding a disclaimer to every description on every bot list and adding it so when discord waffles 2-electric bugaloo joins any server it posts a disclaimer and the commands
that was longer than i expected for one line
^
@static nexus i suggest adding a try/except around create_invite
Skull, there have been more special individuals for sure
at least i have a understanding of discord.py and as a result python now
Because someone doesn't know difference between instances and classes
and someone was giving me the wrong version
You go for python first, THEN discord.py
^
Not the other way around
cough jar cough
i made bots to learn js
I'd rather give a proper advice
@spice trail update
I learnt js from bots too, there was a certain music bot tutorial
making a bot without any coding experience firsthand = shitty bot
no point in staying in the past
and tbf i still taught u how to to specify a classs and subrutine
i mean
ive done really bad stuff in coding at 10
^
my github has every dumb stuff ive made
Get used to simple things and the language first before going for HaRd LiBraRiES like d.py
yh
wait so i shouldnt try this?
Go for basic python first
might as well chuck my entire saturday away
isnt it sunday?
i only made a furry image downloader cuz i saw my friend making a same one in electron
Who said learning coding won't be a waste of time in its own way
xD
i chucked my saturday coding sobblebot
even though it has a system, concidering i am a beginner programmer, which is kinda advanced
dont delete everything youve done but get more experienced with classes, subrutines etc..
mongodb or firebase
wdym by 'userdata'
those are my favorites
their is no "best way"
really
but we can all agree no one should use json as a database
true
just want a DB that can get changed around and pulled from quick
NEVER USE JSON AS A DB
i prefer mysql
what's the easiest one?
specifically mariadb
to set up and use?
probs sql? maybe
sqlite is easy
firebase doesnt need "setup"
sqlite is good though
it uses a file to use the sql
just a bit slow on requests
i just need a quick and easy solution that will be able to potentially hold mute data of over 1000 members
and easily pull the data
yea, idk what to call it
whats the best database to use in my usage scenario?
cool
Which database to use is up to the dev's preferences
But all dbs have their own pros and cons
Sql injections are possible with every sql based db if you set it up badly xD
postgres and an orm framework and you're all g
^
.-.
Firebase is a little bit different
all this sounds super complex
i dont want to have to worry about sql injection or anything like that
Theres no "sql injection", but theres data injection
No one said that programming is easy Cold ^^
if course there is sql injection
can that be prevented by just limiting bot commands down to moderators and such?
Sql injection is when somebody else adds, removes or modifies data illegally
you can escape a string for example and inject your own sql commands hence sql injection
what
uwu
are you on about
but what if i dont allow anyone to execute any custom mysq
l
commands
Sql injection is also retrieving data illegally
last time i did sql was some months ago
every sql solution has its pros and cons
i have no idea how to setup mongo E
mongo is glorified json
^
i would avoid it
yes thats true
mongo is great with object relations
what about re
yea
re
db
tf is that
there is no "simple" sql
or anything like that
every sql has taht
ok ok ok. how about
my mute command
it only accepts mute reasons that dont contain any special characters
there is and will not be a no sql injection sql
Store data in json files is easy, but it doesn't scale
and i heard corruption is pretty common
its very common
what works
caps please
ur muted
Forgot to put a modulo on the hours affax?
yes....
you want to see how i calculate time
to clean the string
is there a library for that
like can i use
common-tags
or something
use an orm framework to save headaches from handwritten sql
especially if you are a beginner with sql
big words
i have no clue what an orm framework is
you can search it
ok this is hurting my head
i literally just want a datbase that can store data about muted users
database*
ok
yes
yes, you can
just create an extra Client
and log that other client in with a separate token
hello, im new to proggraming and i was trying to do a discord bot with python
i just followed the steps to just simply run a bot but i always get this error: RuntimeError: SSL is not supported.
i've looked it up on google but i haven't found the answer yet, if anyone could help me i would appreciate it a lot
how do we make our bot status show how many servers it in? discord.py
what have you tried
And a for loop as a background task
For guild in client.guilds: somthing like that I think it is
Can't check as not on pc rn
const Canvas = require('canvas');
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (c:\Users\hieli\Desktop\Vitas\node_modules\index.js:6:16)
at Module._compile (internal/modules/cjs/loader.js:775:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
@spice trail client.guilds is a list
Why iterate over it if you could just len() it
Ik
You want the amount of guilds your bot's in, not do something with each guild
just get the length of the list
thats what im saying
if u want member count you can just iterate over that list and add up the count
server count is just length of said list
also i mean client.fetch_guilds instead of client.guilds but theyre both lists
fetch_guilds is an api call, while guilds isnโt
why iterate again...
Also if you want overall bot users use bot.users
Cache though
getting total member count, atleast how i did it
No = 0
async for guild in client.fetch_guilds(limit=300):
No += 1```
len(list(some_generator)) cough

uh
generators are great
you are using the wrong thing
Technically d.py caches everything by default
So unless they're doing some stupid magic, they don't need those API calls
Yeah there will be a low chance of a guild not being cached
guilds from the ws have to be cached lol
Unless you try to get the guilds before the cache is populated
so instead of iteration to get the whole member count what else could you do?
len(set(bot.get_all_members()))
Literally said that twice
{
"discu_chan": [
{
"chan_id": "642362119312113702"
},
{
"chan_id": "644685769826369549"
}
]
}```
```js
message.delete()
var nbr = db.get("discu-chan").find({ chan_id }).size;
return message.channel.send("Number: " + nbr)```
how to count the number of chan_id?
just give me the line of code
bruh dont ask to be spoonfed
๐ค
SobbleToday at 16:05
just give me the line of code``` says otherwise
stackoverflow - better than u guys
You wouldn't have spent 6 hours on a "basic ass" system if you went with basics
Who can help me?
Sobble is the person who wants spoon feeding throughout making a bot with no basic programming knowledge
And I think he means the amount / length of the channels
So like if you had a list in python the length of the list
?
XD
I'm going off his 'db' which has two channel IDs in it
So the 'length' would be 2
In my eyes atleast
Ngl why the f do you have two JSONs in an array
I want to count the number of times that is specified chan_id which would allow me to get the number of channels
what library is db?
Do you need separate JSONs for that
Why not just have all the channel IDs in an array only
var low = require('lowdb')
var FileSync = require('lowdb/adapters/FileSync')
var adapter = new FileSync('./db.json')
var db = low(adapter)
db.defaults({
discu_chan: []
}).write()```
I use lowdb
I test this
it also says that all operations must be executed with either .value() or .write()
Yes
so the answer should be db.get(something).filter(something).size().value()
Okay ty
you can find lots of examples here https://www.npmjs.com/package/lowdb
Ty Tim
var nbr = db.get("discu-chan").filter({ chan_id }).size().value();
^
ReferenceError: chan_id is not defined```
Bruh
chan_id:IDYouWantToFindHere
chan_id is a property of an entry
Yes
Hmm okay
message.delete()
var nbr = db.get("discu-chan").size().value();
return message.channel.send("Number: " + nbr)```
can we change the bots name color?
@iron gale in this server, no
how we can
With css
right click your bot's name
click "inspect element"
check the highlighted section of the code that appears
check the class name
class name bot name but it's span
is id, not class
. is class
also, if the text is in a span, then add it to the selector
.class span
@earnest phoenix if you get 0 entries, that means your db is empty
{
"discu_chan": [
{
"chan_id": "642362119312113702"
},
{
"chan_id": "644685769826369549"
}
]
}```
....
where did you get that from?
try adding db.read() after db.defaults({ discu_chan: [] }).write()
damn, how i can learn to programing
@earnest phoenix no, db.read() in a new line
Okay
@wooden kernel start with some online training platform like codecademy
or hire a private tutor
or sign up for some online course
or learn by yourself and become self taught
db.read({discu_chan: []})```?
get hands on experience, try doing some simple project
@earnest phoenix no, literally what i said
Okay
db.defaults({
discu_chan: []
}).write()
db.read()```
like this?
yes
does your json file still have data in it?
yes, but its still there or was it deleted?
It's still there
try this then
remove all of this js db.defaults({ discu_chan: [] }).write() db.read()
yo @static nexus just so you know, we dont allow spoonfeeding on dbl. if you ask for free code more then there will be consequences
ok gallade
bruh...
anyone know why in c
(*var)++ works
but
*var++ doesnt?
(the * being a dereference)
define?
++ptr; // Pointer moves to the next int position (as if it was an array)
++*ptr; // The value of ptr is incremented
++(*ptr); // The value of ptr is incremented
++*(ptr); // The value of ptr is incremented
*ptr++; // Pointer moves to the next int position (as if it was an array). But returns the old content
(*ptr)++; // The value of ptr is incremented
*(ptr)++; // Pointer moves to the next int position (as if it was an array). But returns the old content
*++ptr; // Pointer moves to the next int position, and then get's accessed, with your code, segfault
*(++ptr); // Pointer moves to the next int position, and then get's accessed, with your code, segfault```
yes
what are they equivalent to ?
++i = increment and return
i++ = return and increment
a = 0 // 0
a = a++ // 0
a // 1
b = 0 // 0
b = ++b // 1
b // 1```
++var will increment before
in the context of what the value resolves to if you access it directly
for example if b equals 0
logging b++ will log 0, logging ++b will log 1
b will be incremented either way
interesting
Whats diskpart
lists drives
disk partition im guessing
Oh ok
it takes a little while to load, but should not take more than a couple seconds
maybe your diskpart is bad
or you have a bad disk
You have Disk Partitioner in Windows
do you experience any kind of extreme slowness randomly?
sometimes but not this bad
is it an hdd or an ssd?
no clue
how old is it?
oh its an sdcard
does diskpart load if you unplug it?
yes
sdcard ded
possibly a bad sdcard yes
begin with list disk
which disk would it be?
Yep
clean
Type clean
i wrote it wrong
Wong
Yicks
copy all the data out of it
Time to throw out the trash lul
i have
then yeah, nothing much you can do
you can try doing a low level format / secure erase
how would i do that?
basically write zeros to it, see if it crashes
there are many programs that can do that
does that risk losing everything?
btw @quartz kindle where did you get that list with ptr interaction ?
you may have lost everything already
google "increment pointer in C" > first result (stackoverflow)
aight thanks
you said you already copied everything out of the card right?
yeah
so you wont lose anything
but the data in the card will get destroyed if writing zeroes is successful
although i doubt it will
so basically theres no point
basically
ok
i seriously hope r4i3ds can handle this now
with random folders and stuff
probably should have backed up the microsd
learnt that lesson....
i mean i accidentally deleted a 3 year old minecraft map by accident
rip
ikr
i used to run servers for my family and friends
oh nice
also tim
on a phone, does autocorrect / glide typing get confused when you type b u/i/o t?
no idea, i dont use any of those
whats its size?
should work then
with homebrew files as well
no difference
the cards are the same
just check which file system is it formated to
does it have linux installed on it?
does what have linux?
so its basically a 3ds emulator
its an actual 2ds i xl
ok cool
anyone to help me with aiohttp
Look if i wanna to get votes in discord.py
await aioclient.get(url, headers=headers)
Is that the one?
pls help
lol the only issue is a file name thats too long
welp, make it shorter
read the docs?
I read them nothing
do you know how to use aiohttp in general?
my card does not like new files
ok
once you learn how to use it, and successfully tested it on some random website
then look at the DBL api documentation
@wide ruin just remembered something
the card didnt work
did you check both of your cards for the little lock thing they have?
yeah
are you sure they are not locked?
i tried it in both positions
if none of the cards can be written to, its possible the problem is with the card reader
wasnt the microsd the one that was broken?
Resolved js return message.channel.send("Number: " + db.get("discu_chan").size().value())
It's just that when I use it in a variable it only returns 0...
try using let instead of var
What's the real difference between let and var?
Idk but
Let > Var
let enforces scoping and prevents it from being redeclared
Ah
var doesnt prevent anything and doesnt enforce scope, so its vulnerable to accidental redefinition and leaking to outer scopes
Yes x)
Do you guys know of any idlerpg-like bots
no, maybe ask in general or off topic
Just trying to research on the infrastructure of a bot like this and its implementation
@dusky bear so basically idle games in discord?
Yes
idle miner
ctx.drawImage(background, 0, 0, canvas.width, canvas.height);```
at setSource (c:\Users\hieli\Desktop\Vitas\node_modules\canvas\lib\image.js:91:13)
at Image.set (c:\Users\hieli\Desktop\Vitas\node_modules\canvas\lib\image.js:62:9)
at Promise (c:\Users\hieli\Desktop\Vitas\node_modules\canvas\index.js:34:15)
at new Promise (<anonymous>)
at Object.loadImage (c:\Users\hieli\Desktop\Vitas\node_modules\canvas\index.js:23:10)
at Client.client.on (c:\Users\hieli\Desktop\Vitas\node_modules\index.js:33:34)
at Client.emit (events.js:198:13)
at Guild._addMember (c:\Users\hieli\Desktop\Vitas\node_modules\discord.js\src\structures\Guild.js:1298:19)
at GuildMemberAddHandler.handle (c:\Users\hieli\Desktop\Vitas\node_modules\discord.js\src\client\websocket\packets\handlers\GuildMemberAdd.js:12:13)
at WebSocketPacketManager.handle (c:\Users\hieli\Desktop\Vitas\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
warning.js:25 ```
I put the rigth file
Hey everyone, I'm not here looking to be spoon fed but instead just a push in the right direction... I am trying to make my bot run on a @Mention prefix and I have it working but if I try to run a command that requires a user mention like the ban command for some reason the command reads the bots mention ping as the user mention.... Sorry if that makes no sense idk how else to explain it!!
discord/node.js btw
Try putting the image in the same folder as your code or in a folder within the same folder. That will save you a world of pain.
@lunar crystal don't use folders with spaces lol
@earnest phoenix u know that doesnt matter at all
Okay okay



