#development
1 messages · Page 1559 of 1
you have the make an array or number
const client = new Discord.Client({
disableMentions: 'everyone',
fetchAllMembers: true,
partials: ['REACTION', 'MESSAGE', 'CHANNEL'],
ws: {
intents: [
"GUILD_MEMBERS"
]
},
});```
but i did Intents.ALL
more like bring Intents from Discord to the scope
Intents isn't a defined variable
embed.add_field(name="User:", value='member.mention', inline=False)
what should i use instead of member.mention so it mentions the member in embed
'member.mention' and member.mention isn't the same thing please
ok
so what should i use
i am asking that bro
learn python
k
i will try different things
leave it
lol
yo guys
const { Command, MonikaEmbed, CommandError, MiscUtils, Constants, CanvasTemplates } = require('../../')
module.exports = class Instagram extends Command {
constructor (client) {
super({
name: 'instagram',
aliases: ['insta'],
category: 'social',
requirements: { canvasOnly: true },
parameters: [{
type: 'string',
missingError: 'commands:instagram.noUser'
},
[{
type: 'booleanFlag',
name: 'nogrid',
aliases: ['ng']
}]]
}, client)
}
async run ({ t, author, channel, language, flags }, user) {
channel.startTyping()
try {
const embed = new MonikaEmbed(author)
.setColor(Constants.INSTAGRAM_COLOR)
const _profile = await this.client.apis.instagram.getUser(user)
if (!_profile.graphql) {
throw new CommandError(t('commands:instagram.notFound'))
}
const profile = _profile.graphql.user
const images = profile.edge_owner_to_timeline_media.edges
.map(edge => edge.node.thumbnail_src)
const feed = await CanvasTemplates.instagramFeed(images, flags.nogrid ? 0 : 3)
embed
.setAuthor(profile.full_name || profile.username, profile.profile_pic_url, `https://instagram.com/${profile.username}`)
.setDescription(profile.biography)
.addField(t('commands:instagram.followers'), MiscUtils.formatNumber(profile.edge_followed_by.count, language), true)
.addField(t('commands:instagram.following'), MiscUtils.formatNumber(profile.edge_follow.count, language), true)
.attachFiles(new MessageAttachment(feed, 'feed.png'))
.setImage('attachment://feed.png')
channel.send(embed)
} catch (e) {
if (e instanceof CommandError) throw e
else throw new CommandError(t('errors:generic'))
}
}
}
i have an error, but in console doesnt writed an error
why?
any nextjs experienced guy here?
cra gang
what is difference between inline=True and inline=False in discord.py embed
i am confused between them
if you have two/three fields next to each other set to Inline, it will be in the same column in the embed
It determines if a field is shown next to another.
*row
ok
both work???
Like this:
wait, it's not even row
it's under different rows lol
it's column
wait idk
Yep! It determines if your bot will use columns in a single row.

consecutive inline fields will try to be in the same row, max 3 (I guess)
The image that I just posted shows Inline field and Inline field 2 in two columns next to each other, and they are both on the same row.
oh
code to do it after inline=true
can u tell me ?
🥺
or no ok then bye
Inline=true will make them display "in the same line".
ok
i'm stupid af
this is dyno bot
the dyno bot embed inline=True one have little space but mine don't why ?
see the space between joined and registered
because the content of the embed is larger
if you go into inspect element you'll see that those two boxes have different sizes
also
imagine cloning dyno features 🤡
Nope 😂
I just wrote that
So I thought I'll get more space
I'm gonna add more in that embed then it will be big ?
yes
how does one match everything but a specific character, or nothing if no characters (line start)
(regex)
which character are you trying to match
you mean something like this? https://img.pyrocdn.com/dt1QWtv6
Which would also result in this https://img.pyrocdn.com/eS6TUnI4
when nothing is there
im trying to match
*this should match*
\*this should not\*
but the \*th [...] part is bugging me up
how do i detect if theres anything but \ or detect [nothing]
note that this should match would be a capture group
i want it to match, like /\*([^]+?)\*/g would
but
if it contains a \ before the first or second * then dont match
hmmm
like this?
it should also match anywhere in the string
yea
blah blah *hello* hi
oh
ill test it out and give results, thanks
nais
and it should work
eh
it should also
eufhu fhue \*this shouldnt match\*
yea
^ indicated strictly at line start
removing that just allowed it to match whole string
np
@delicate zephyr must have /g
to match more than one
but then, it matches \*this\*
Oh
idk then, regex is weird
it is
perhaps i should use something else to do what im trying to achieve?
actually, how does discord handle formatting?
What r u trying todo?
Scroll up
They dont... Its jusy how its rendered
e
As in discord dont render it themselves directly
yes
but the app probably needs to do something to detect if theres markdown and where
But exclude *
yes
Mobile be pain
yep
@sacred aurora problem with that is when its at the beginning of string
*this wouldnt match*
yea tho
found it
/(?:[^\\]|^)\*([^])+?[^\\]\*/g
this matches discord-like italic markdown
doesnt.
[^\\](\*[\w\d]*\*) Should work
dont worry about the whitespace match because the capture ignores it
[^\\]?(\*[^\*\\]+\*) well that fixes that issue
and adds unicode support
but it does capture on * *
(:?[^\\]|^)\*([^]+?)[^\\]\* does what i want, but it matches the character before the first \* and that causes me issues
perhaps i should just capture the [^\\] character and append it in the final replace result
What is the end goal with this btw?
youll probably need to insert the spaces yourself
yep thats what im doing right now
that regex only captures the contents in the **
yeah
Hello, I cannot take the number of people on all servers, 12 people show how to solve this as an example
for the total number of members on the servers where it is located
normally there should be more than 500 people
also make sure that your client has fetchAllMembers: true the stuff if you really wish to get true results
foo bar *foo *bar * foo *
I tried but it gives an error
what kind of error
wait
also that regex does match on a pattern it shouldnt
*abac* \*abc a* *asfaf ajsfasf*
matches
a* *asfaf ajsfasf*
Low key this might be easier todo with a fsm
whats a fsm?
finite state machine
and uh
what does that mean/do
like, manually replace the characters when needed?
(string iteration)?
With which key can I turn this off?
lol
I click but it's still the same
I try it too
RESTART THE MF PC
#SOLVED
whats wrong with my d key
yea i use not pad
i use atom 
i use no u
if i want to add custom emoji in my bot message can i give emoji link and how ?
<name:id>
bruh u stoled it
i cant i dont have nitro bro
BRUH
:v
TvT
u can
can i put link instead
link. hmmm
the link contain its id tho
so bot has all badges
lol
that means
it works in bot
it have all
ctrl+shift+i?
press it again
dunno tho
no
welp
ok
how can I remove the chi square at the end
gray color one
please someone give an idea
press insert
I've tried
was your ide focused
yes
🤔
Hayes finally lol
NEW CHANNEL:
https://www.youtube.com/channel/UCEjwgKUADCmMzhGHrlueKYw
This channel will become inactive in a few weeks. Thank you all for watching :)
let antiraid = await db.get(`antiraid_${message.guild.id}`);
if(antiraid === false) return;
if(antiraid === null) antiraid = false
member.send("Server In Antiraid Mode")
member.kick();
})```
Will This Work (Kicks People When They Join) (JS)
b r u h
lol
Lol
LOL

go to #general
how fined the currency of the bot this code shows very little
why does everyone have the same theme
you mean why it shows so little users when there's supposed to be more?
I don't understand, he should normally show 700 but he shows 12
bots have a gender now 😳
enable server member intent
both on the developer page and in your code
that's not possible unless the code somehow runs multiple times
Because repl has only one dark theme ;d
how do i enable it in my code
Bots don't cache all users by default
Wdym?
If you want accurate count, use Array.prototype.reduce() and add up all of the <Guild>.memberCount
Can't I get the total number of members on the servers with the bot?
Regardless, <Guild>.memberCount won't be accurate if you don't have the guild members intent
wait so ok explain exactly what your issue is
I see two missing id errors
Line 7 is for when they just say +unban
So it replies with specify a id
And if there is no I’d that is banned than the other line says that
why is my token not acutallly resetting
So it says "cannot find this user" and then says "user unbanned successfully"
wdym?
i click the regenrate button in dev portal and its not regenerating
did you double check the full token and see its the same?
some parts of the token will always be the same
😩 nginx doesnt like cloudflare
thank you for my ted talk
ima try to fix it for 1 more hour
i wish it didnt care
guys
i need help
so there is a module called discord-rpc
and i installed it
but when i start the console
Error: Could not connect
at Socket.onerror (/home/allamjonas/node_modules/discord-rpc/src/transports/ipc.js:32:16)
at Object.onceWrapper (node:events:486:26)
at Socket.emit (node:events:379:20)
at emitErrorNT (node:internal/streams/destroy:188:8)
at emitErrorCloseNT (node:internal/streams/destroy:153:3)
at processTicksAndRejections (node:internal/process/task_queues:81:21)
rpc is deprecated
use the game sdk
oooh bruh
i tried this for 2 hours
fml
well what issue are you having
ok im having this error
im trying to make an embed
which displays the current amount of members in the guild
Error: Cannot find module '@discordjs'
Require stack:
- C:\Users\fred\Desktop\Bots\Discord Bots\Mint\mint.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:925:15)
at Function.Module._load (node:internal/modules/cjs/loader:769:27)
at Module.require (node:internal/modules/cjs/loader:997:19)
at require (node:internal/modules/cjs/helpers:92:18)
at Object.<anonymous> (C:\Users\fred\Desktop\Bots\Discord Bots\Mint\mint.js:1:17)
at Module._compile (node:internal/modules/cjs/loader:1108:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
at Module.load (node:internal/modules/cjs/loader:973:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ 'C:\\Users\\fred\\Desktop\\Bots\\Discord Bots\\Mint\\mint.js' ]
is the error im getting
Try discord.js
As far as I know you have to parse the message for emojis yourself
Can someone gimme link so I can learn creating commands with json

wat

👀
does anyone know how to make a webhook for top.gg on heroku because I'm hosting my bot there
your webhook url is your heroku url
https://YOURPROJECTNAME.herokuapp.com/WEBHOOKPATH
Sorry for being off-topic and stuff
But what is a selfbot?
i don't quite understand
A selfbot is a normal discord account which is controlled by a bot
-botinfo 776026443322490910
776026443322490910
DEVILx
7638
IT IS A POWERFULL MODERANITION BOT WHICH CAN BE USE IN MANY WAYS.
ITS PREFIX IS ? TO GET HELP TYPE ?help TO GET HELP
Other
?
37
8
No server count
@vital harbor
@split hazel
when should i consider sharding?
my bot is still -500
like
not more than 500 servers yet
wtf is that description
oh okay thanks
very simple and straightforward description i'd say
If someone does +ban skis LELE
It can crash the bot, is there a way I can make it say please mention a user
check if there isnt a user
What..
.catch error....
I’ll just do that
.catch(err => message.channel.send( { embed: { description: `I can't find this user ${args[0]}`}}));
Which line should I add that in?
Does anyone knows a package which converts String like this ones: "Sunday at 10 pm" in miliseconds ==> Date.now()?
module.exports = {
name: 'ban',
/**
* @param {Message} Message
* @param {string[]} args
*/
run: (message, args) => {
if (!args[0]) return message.channel.send( { embed: { description: `Please mention a user to ban`}});
if (member.hasPermission('BAN_MEMBERS')) return message.reply( { embed: { description: `You cannot ban this user!`}})
if (!message.member.hasPermission('BAN_MEMBERS')) return message.reply( { embed: { description: ` You cannot ban members`}})
const target = message.mentions.members.first();
const reason = args.join(' ');
if (!target) return message.channel.send( { embed: { description: `please mention a user to ban`}});
target
.ban({ reason })
.then(() => {
const embed = new MessageEmbed()
.setDescription(`**${target.user.tag} has been banned by ${message.author.tag}**`)
.setColor('#ff0000')
message.channel.send(embed);
})
.catch(err => {
console.log(err);
message.channel.send(`<@${message.author.id}> error while banning <@${target.id}`)
});
}
}```
Some reason isn’t working, responding, not banning, no errors
if (member.hasPermission('BAN_MEMBERS')) return message.reply( { embed: { description: `You cannot ban this user!`}})
There is literally no way you're not getting an error on this line.
send your code again
Sure
module.exports = {
name: 'ban',
/**
* @param {Message} Message
* @param {string[]} args
*/
run: (message, args) => {
if (!args[0]) return message.channel.send( { embed: { description: `Please mention a user to ban`}});
if (target.hasPermission('BAN_MEMBERS')) return message.reply( { embed: { description: `You cannot ban this user!`}})
if (!message.member.hasPermission('BAN_MEMBERS')) return message.reply( { embed: { description: ` You cannot ban members`}})
const target = message.mentions.members.first();
const reason = args.join(' ');
if (!target) return message.channel.send( { embed: { description: `please mention a user to ban`}});
target
.ban({ reason })
.then(() => {
const embed = new MessageEmbed()
.setDescription(`**${target.user.tag} has been banned by ${message.author.tag}**`)
.setColor('#ff0000')
message.channel.send(embed);
})
.catch(err => {
console.log(err);
message.channel.send(`<@${message.author.id}> error while banning <@${target.id}`)
});
}
}```
We talked about this literally yesterday
I know, but someone is changing my code....
It always changes when I wake up, lol
I'll let you remember
you already did this once, you should know how to fix it, then 🙂
Ok thanks lol 👍
not the place to advertise, MUCH LESS hacker stuff
actually, im not a mod, ignore me
@slender thistle ping hehehehehe(100% not an excuse to ping ya <3)
Sorry didnt know
what's a good placeholder character that no one would ever type? i'm gonna .replace enforce it but i dont want it to get in the way
i plan on just using it to be able to set it as a character and then .replace(char, 'real character') after
a placeholder for users to use?
use one of those special characters
--FOOBARR-WHY-GOD-HELP--AHHH--™️
or a combination of them
previously i just replaced with whichever character i wanted to surround it with, but the original parsing messed with those characters
like EOT
how do i get these characters in js?
\x04 for EOT for example
Used it once for something
"\u0004" also works
go fast
hire a lazy person they say, they'll find an easier way to do work they say
lazy bot dev forks bots
why many word when small do trick
read the name
to mark an end of transmission...
it indicates the end of transmission.............
you don't know when a packet ends when you're reading a raw memory stream
that helps you identify where a packet ends
im really good at this as u can tell
Hey what kind of bot you made
an astrology bot
Want to get your hands on the latest game?
No
what's problem pls help
there is a problem with one of your packages
you can try removing the node_modules folder
no
then run npm install again
Yes
do steps listed here https://github.com/JoshuaWise/better-sqlite3/blob/master/docs/troubleshooting.md then rerun npm i quick.db
??
sometimes the message.guild property returns undefined
I don't have an answer, but If you find a package I'd like to know the name too if you don't mind lol.
the message wasn't in a guild
i thought guild is a mandatory proeprty in the message obj?
It would return undefined in DMS, @crystal wigeon
ah i see
How will I know which one is
Oof
message.type == "dm"
There should be only one node_modules folder.
right?
lol
don't follow their advice, follow the link i sent you
Whoa Nerf This got a new role! Congrats!!
i hate when people who don't have a clue try to help 🙄
i get the "dm" type in message.type right?
Yes, or you can just check if !message.guild
I also made an basic economy bot
thanks!
not really
message.channel.type === "dm" ? ;-;
economy bots are a dime a dozen
oh , okey
K
how about you try it
yes, you
just making sure xD since im using a message.channel.type === "news" somewhere
also, anyone know about distributed systems?
yeah I know that, but it could be that he didn't install the packages correctly
there are usually binary bindings available, and he does seem to be using the latest version of node
there aren't prebuilds afaik
there are
oh?
seems it's available for only linux and darwin envs
yes
so you have to build it on windows regardless
ok thats unfortunate
how to get the mutual servers with the message author?
library?
if(!message.guild) lol
djs
reliably - oauth2
unreliably - go through your member cache
xD , less code 
boolean checks are better
well yes
and efficient 
if(message.guild == null)
if (message.guild && message.channel.type != "dm" && !isThirteen(message.id))
now im not sure who is the one trolling here
me, I started , sorry my fault xD
my distributed systems i mean, all the scalability stuff, i trying to learn scalability things and my DB doenst seem to be co-oping well with the connections, i'd say around 2k concurrently, for some reason it drops, my max connections allowed on postgres is 20000.. and also has 7GB RAM both my VM and DB ;-;
my bot also reached 500 guilds
damn, intellij's new official livecode plugin is freakin' awesome
don't use a relational database if you want to do distributed dbs tbh

Does somebody know, which api I should use for ai bots?
but 2k players should be handled well enough on a 7GB RAM DB
there's no easy way to do that
depends on what type of "ai" you are doing
yes
chat bot
dialogflow
that cost much lol
or you can train your own using tensorflow
looked on it too
unless you want more than 3 concurrent connections
a little portion of requests
I just think to big lol
just for reference
lol thx, motivating me 
it should actually, but there are other factors such as CPU (which mainly is the bottleneck)
i do have 2 cpus
I would recommend that you look into optimising your queries if you plan to stick with postgres/SQL
and ofc upgrading the node as a last resort
yeh, my queries dont take longer than 1.5s
2 cpus or 2vcpus
2vcpus
usually you might have some inefficient queries that are not very useful
just throw more hardware on sql/postgres
i presume v stanhds for shared?
virtual
ah
vcpus are really subjective to your provider
gcp
and for a 2vcpu 7gb you seem to be using gcp
yes
and they did mention each vcpu refers to 1 thread
so its basically equivalent to 1 actual cpu
yep
which should be good enough to handle 2k connections right?
the base clocks are heavily different
but it's not your vps that's bottlenecking
it's your code
very
open htop and see what your current usage is. could help in identifying issues
yeah well, the easy way out is to upgrade your node, the more long term one will be to look at your queries
wym by upgrade your node? buy more cpu?
yeah scale up
i handled 2k guilds without a problem on a basic aws ec2 instance with regular database calls (i didn't even cache my prefixes at the time)
gotcha, but i dont see any processes taking more ram than required
also why is there so many connections
then its your code
you should use connection pooling
did you cache database calls?
some stuff like prefixes should be cached
i'm guessing you're on node
i tried serializing the message and client to spawn my workers but simply cant
ye
js
shards took care of the multiple workers thing
notorious for shit performance
lel
lol
maybe node isnt using the RAM it should be
wtf 500MB ram?
ye if you dont specify how much memory it should use
by default
its not that bad either
jsut that sometimes players come accross weird bugs
where
they got messages saying they got the rewards
but when they check
no rewards
not updated
recode the bot in C# or rust
i was thinking go, but thats a lot of learning curve
(thats quite the work, mind you)
ikr
so was thinking about spawning DB replicas
as distributed systems
makes this easier
what DB did you use?
postgres
idk then never used postgres
what instance type are you using at gcp
didn't know postgres can run in shards
if you have a database-intensive application, depending on the types of queries being run, it can translate to disk-intensive application, and if it is indeed disk-intensive, be aware that google compute instances absolutely suck at it
it's suuupeeeer powerful
that's the benefit when your software is opensource 
more companies need to start open sourcing their software/technologies
microsoft did it with .net and c#
and thanks to that
it's one of the most performant cross platform languages ever
and im still suffering the pain of splitting my react components into a bunch of smaller onces because of stateful rerendering 😭
lol join me in using vuejs. come to the dark side, we have cookies!
svelte > all
hello
sure, blow up your server
i need help
me too, mentally
i want to make title and desc inline
convert to inline fields and profit?
they can't be inline
but when i add inline: true
fields can be inline
hmm
Just convert your title and desk to fields. Problem solved.
you mean you want js title: text instead of ```js
title:
text
yes
;-;
only with description
well... technically...
zero width space as the title in two inline fields
and your content in the field values
i wanted it to be like this
i type nothing in the title?
i see
following your original idea, you can also do something like this
hmm
tim said do descreptions
i know
but in embed you cant do more than one
you seem to be not reading any of our messages properly
ye i skip two words in every message
So maybe actually listen before we just block you and move on to people who have the listening skills beyond those of a 5 year old 😛
do you understand what that means?
.setDescription(`h\ni\n\nt\ni\nm`)```
joke
2 people

^ to look better
time to go
bold move
funny
You can even make bold code.
now im playing around with this design and it doesn't look that awful tbh
make it bold
so much add field
it's great for creating responsive content
so much AddField
gotta trick discord into rendering it well somehow 
this is going to look horrid on mobile though
i can already tell
lowkey wanna be in that server
get your charger

it's not even a meter away from me but im too lazy :(
nice Samsung as well
i wonder
how i make text inside embed looks like this sds
while am already used them
the same way you did it in a normal message
i heared the song
remember when discord first introduced message quoting and it was just... markdown blockquotes
hi
it was.... something
escape your backticks inside of the string with a backward slash
love discord's formatting
i kinda understand
How can I use discord emojis as react such as ➡️
`text \`abc\` text`
escape with a backward slash and use the unicode variant you get from escaping
➡️ -> \:arrow_right: -> \➡️
bold with backticks go brrr
.setDescription(`**\`Text:**${b}\`**`)
.setDescription(`**Text:** \`${b}` \n **Hash:** \`${s}` `)
can you hyperlink backticks
both backticks
thanks
i hate escaping backticks inside backticks

.setDescription(`**Text:** \`${b}\` \n **Hash:** \`${s}\` `)
i guess im gay now
yes you can
wonderful choice of bot username
you can bold it as well afaik
cool it also works for code blocks
PRO
so you can get colored hyperlinks
when code randomly adds the %60%7D%7D
yum
too bad discord fixed being able to open any app that uses its own protocol
you used to be able to open word by doing ms-word:// or some shit like that
aw they disabled sending protocol hyperlinks entirely
damn
can you send that one path that can crash your windows
oof
wonder if that's fixed
discord removes all protocol hyperlinks now

except http & https
to prevent tricking users into accessing the directory i guess
sad times
i should delete that
sad
pepelaugh://
@earnest phoenix (I have spoiler off so)
LMFAO
i wonder how it looks on mobile
also nevermind i realised i'm dumb, you need to have some text after the protocol in order for it to work
because of discord's consistency
one moment, gonna send ss
for the greater good
So uh
yum consistency
figures
yes
fuck csgo
LOL
glad I got rid of the game
i don't even play it
oh no!
i wish it would work
the protocol is only there to launch it apparently
yomomma://sofat
also, on topgg i see that the voes get reset every month
is there a way to get total votes?
which prop is it on
lmao it does open the calculator
client.user.votes?
https://top.gg/api/docs#bots @crystal wigeon
thanks
module.exports = {
name: 'ban',
/**
* @param {Message} Message
* @param {string[]} args
*/
run: (message, args) => {
if (!args[0]) return message.channel.send( { embed: { description: `Please mention a user to ban`}});
if (target.hasPermission('BAN_MEMBERS')) return message.reply( { embed: { description: `You cannot ban this user!`}})
if (!message.member.hasPermission('BAN_MEMBERS')) return message.reply( { embed: { description: ` You cannot ban members`}})
const target = message.mentions.members.first();
const reason = args.join(' ');
if (!target) return message.channel.send( { embed: { description: `please mention a user to ban`}});
target
.ban({ reason })
.then(() => {
const embed = new MessageEmbed()
.setDescription(`**${target.user.tag} has been banned by ${message.author.tag}**`)
.setColor('#ff0000')
message.channel.send(embed);
})
.catch(err => {
console.log(err);
message.channel.send(`<@${message.author.id}> error while banning <@${target.id}`)
});
}
}```
Yes, I know I asked before. But why isn’t this working, no errors..
smort

BAK
i'm blind
this my dude
^
Oh ah..
they did
I didn’t
but they don't handle their errors properly
Bruh, I’m using repl.it..
check the console?
if run is unawaited and there's no catch attached to it, the error will get swallowed
nvm
i realised it's a sync function
oh they're thinking of syntax errors
But const target.... isn’t it already defined?
...
nice they still didn't learn the difference between syntax and runtime errors even after being told to do so for a month straight

how can you not see it
you tried to use target before defining it
Ohh so
console.log client.user @crystal wigeon
when it logs in right?
wait
message.mentions.members.first(); const target?
...
Sorry I’m confused..
djs
uh
on topgg im using that webhook which gives only the voter
do you not know basic js syntax?
in req.voter
I literally told him the same thing yesterday...
why are you trying to develop a bot if you can't figure this out
I'm sorry but this problem is an easy fix and you just managed to make it worse
@crystal wigeon lets move to #topgg-api
I don’t give up that’s why
just move the target variable to the beginning of the function
this is what your trying to do
console.log(samuel) //undefined
var samuel = 123;
console.log(samuel); //123
Ohh I get it like under const require.... like under the first line?
Oh yes
the samuel variable exists for everything below it
you gotta define variables above everything that will be using them
won't the first line throw an error
yeah
Thanks you actually learned me something
but it's easier to explain this way

np
or cannot access x before initialization
it's just easier to explain
icic
I could've used var tho
uh oh
so it made more sense
But, what are those numbers about?
What is the time limit for reaction collector?
those are just random numbers I chose for the samuel variable
But how would I know which numbers to use?
you don't have to use any numbers?
Ohh, what were those then
that was just an example of how variables work
Oh, ok
@copper cradle btw is there docs about these?
Would be appreciated if you could throw some to me
JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions. While it is most well-known as the scripting language for Web pages, many non-browser environments also use it, such as Node.js, Apache CouchDB and Adobe Acrobat. JavaScript is a prototype-based, multi-paradigm, single-threade...
^^
We've been throwing those at you since you came here
how do i get guild count with discordgo?
jay ass
Thanks 
prefix the file name with SPOILER_
possible to do with url?
nope
what's rong ```js
if(!message.author.id('376064908317425677')) return message.channel.send("No")
you have to download it to your memory and reupload it
alright ty
@cobalt spruce everything
50% of that snippet
id is not a function
and what you want to do there is compare the property id with the id you got there
mans got too far into functional programming
Sorry, didn’t really understand it but is it like this?
no




