#development
1 messages ยท Page 1498 of 1
they're using the command client I guess
okay, hear me out
ah
You'll need 2 webhooks
One for Discord and one for top.gg
Are we clear ?
@earnest phoenix ?????????
you'll need either a discord bot client or discord webhook
since you just started keep going with a bot client
I was thinking of making a bot tho?
can is how you a example
of someone who made something
for me to look at?
he coded it
@crimson vapor we need jason.db for python
Message isn't abc.Messageable 
Right, doesn't make sense
resend the message 
Context is Messageable, Message isn't kekw

u can use
await message.channel.send()```
in
```py
on_message event```
not in normal commands tho

Wdym, that'd work in commands as well, if you name the ctx parameter message 

smart dude
ctx.channel
ctx.message.channel


does ctx inherit message properties or only messageble abc
i doubt that's true
ctx.channel returns ctx.message.channel
same can be said to js tbh
yes
Only Messageable, but in fact, Context object is gotten from a Message object, so it should have everything Message object has

norizon can
loooool
norizon
๐
you ready to get annoyed?
Nope, it doesn't have all the property the Message has, but it does have the original Message object
ic
What are you trying to do, Ashleyy
trying to
connect webhook
to topgg
and get it to
send name of the person who voted to be sent in discord chat
like this
I see, do you wanna use dblpy or not
I can't
use it
You can set up the webserver yourself or use dblpy and just input the port and stuff which is easier
Can you help?
I'm trying to figure iut out

dang
What have you got so far
you made one before?
ugh
lemme show
@earnest phoenix is it smnart to show
the ip address?
in here?
No
this is all I got
I'd use aiohttp
huh?
what does that do?
wait
you made that bot in python?
same thing, because if you're using flask, you need to thread it afaik, not sure
wait
i don't know what that is bruh
i'm soo new to this
๐ญ
norizon have mercy lmao
you can see shiv's answer ig https://stackoverflow.com/questions/48693069/running-flask-a-discord-bot-in-the-same-application
umm
bruh
@commands.has_permissions(kick_members=True)
async def kick( ctx,member: discord.Member,*, reason=None):
try:
embed = discord.Embed(title=f"User Kicked!",colour=discord.Colour.green())
embed.set_thumbnail(url=member.avatar_url)
embed.add_field(name="**user Kicked**",value=f"**{member}**", inline=False)
embed.add_field(name="**Kicked by**" ,value=f"**{ctx.author}**", inline=False)
embed.add_field(name="**Reason:**",value=f"**{reason}**", inline=False)
await ctx.send(embed=embed)
await member.send(embed=embed)
except:
pass
responses = ("https://tenor.com/view/mod-admin-you-kick-fight-gif-14702799", "https://tenor.com/view/kick-woman-lol-gif-8979171")
await ctx.send(choice(responses))
await member.kick(reason=reason)```
in this
how do i make the bot check if the member is kicked or not
oh, if that kick raises HTTPException, then it's not kicked
if you get an error in the await member.kick then the member is not kicked
wtf?
ok
the kick code?
yes
umm i started it by coping it then i added the embed and try except me=yself
myself*
yeah that's the problem
lol
await member.kick waits for the user to be kicked, it's in the name
try:
except Exception as err:
print(err)
await ctx.send("the member its still here for some reason.")```
if you know what each and every line of your code does then you're supposed to know how to handle erroes
indentation 
lol
uh
anyway that should work
how did you add colorful letter in this
```py
```
if the member its an admin or the guy who's trying to kick its not an admin
lmao
```language
CODE```
or u can do
```engllish
yes
await ctx.send("bruh")```
you got it flaz
danm
nah, not the guy, but the bot itself. The bot itself needs to be higher in the hirearchy
@has_permissions(ban_members=True)```
```py
error handler even
error.missingrole```
i just kinda smash it in the kick code?
sorry new to coding

learn python basis k thx
not that nub loal
i'd suggest you to learn some basic first
OkAy
const aWillToLive = false
lol. danny's discord bot does that

ยฏ_(ใ)_/ยฏ
except Exception as err:
print(err)
await ctx.send("the member its still here for some reason.")```bruh
do i add it in the kick command or make a separate func
;-;
theres tutorials about python on youtube
ik
check them out
๐คฆโโ๏ธ
try:
ban function
except Exception as err:
print(err)
await ctx.send("learn python")```


wha????????????????? lol
bruh
DO I MAKE ANOTHER FUNC OR ADD IT IIN IT
๐ฆ
i suck lmao
it's inside your kick function, try to kick the member using the kick method, if that raises an error, the except block would be run
try:
embed = discord.Embed(title=f"User Kicked!",colour=discord.Colour.green())
embed.set_thumbnail(url=member.avatar_url)
embed.add_field(name="**user Kicked**",value=f"**{member}**", inline=False)
embed.add_field(name="**Kicked by**" ,value=f"**{ctx.author}**", inline=False)
embed.add_field(name="**Reason:**",value=f"**{reason}**", inline=False)
await ctx.send(embed=embed)
await member.send(embed=embed)
except Exception as err:
await ctx.send("nop3")```
something like this?
i tried to do like in the docs
that when someone votes it will send a message
and i dont understand why it isnt working
what????///
does py have object deconstructon?
yes
so i have a string like this: "Hi {user}, and welcome to {server_name}!". My goal is to detect all the things between the {} and to replace them by something in the string. How can i do that with js?
hmm
bruh
ur supposed to do
const votechannel = bot.channels.cache.find(channel => channel.id === "795623007472975872")
dbl.on('vote', vote => {
votechannel.send(`${vote.username} just vote for the bot in top.gg!`)
})
i know it wont work, but?? 
to do
use string.replace()?
the things inside the {} are preset?
@bot.command()
async def command(ctx, member:discord.Member)
function here```
preset by the user
yeah but I mean
k
there are only a set amount right
const votechannel = bot.channels.cache.find(channel => channel.id === "795623007472975872")
dbl.on('vote', vote => {
votechannel.send(`${vote.username} just vote for the bot in top.gg!`)
})
will it work??? 
the user will be able to put as many {} as he want
but the {} in themself are preset
yeah
you're handling the error from send method, not kick method
still waiting for kami's reply loal
its not very efficient but it would work to just do that
loal
aka {user} will work bc i programmed it but {rgvgf} won't
yea
how do i do it with the kick method?
Like js "{user} {user} {server}".replace(new RegExp("{user}", "g"), "Lumap#0001")You mean?
hey
yeah you have to use new RegExp() with g flag so that it replaces all occurrence

:p
it logs "initialized commands"
but the message handler doesn't seem to have been added
is this ts or js?
js
js
js + jsdoc
you can use export default in js?
never knew that
lol
I'm using babel to have access to these features
private class properties, export/import, etc
hmm
#discord
idk babel
nope
const votechannel = bot.channels.cache.find(channel => channel.id === "795623007472975872")
dbl.on('vote', vote => {
votechannel.send(`${vote.username} just vote for the bot in top.gg!`)
})
didnt work ๐ค
why not
shouldn't you fetch the channel?
vote is undefined
How to check if number provided by user is negetive number ?
js?
yes
check if the number has - in it no?
2|index | TypeError: fields.flat is not a function
2|index | at Function.normalizeFields (/root/Music-bot-master/node_modules/discord.js/src/structures/MessageEmbed.js:450:8)
2|index | at MessageEmbed.setup (/root/Music-bot-master/node_modules/discord.js/src/structures/MessageEmbed.js:78:91)
2|index | at new MessageEmbed (/root/Music-bot-master/node_modules/discord.js/src/structures/MessageEmbed.js:18:10)
2|index | at embedLikes.map.e (/root/Music-bot-master/node_modules/discord.js/src/structures/APIMessage.js:166:40)
2|index | at Array.map (<anonymous>)
2|index | at APIMessage.resolveData (/root/Music-bot-master/node_modules/discord.js/src/structures/APIMessage.js:166:31)
2|index | at TextChannel.send (/root/Music-bot-master/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:166:62)
2|index | at Object.exports.run (/root/Music-bot-master/commands/w-filters.js:17:21)
2|index | at module.exports (/root/Music-bot-master/events/message.js:16:9)
2|index | at Client.emit (events.js:198:13)
```
runnin it on my pc works great
on my vps it is giving me this problem
install node 14
no idea lol
no sorry. Something seems off in that message
there is too much space in the rigght of the embed
you only use 1 side
Hm
He can fix it by increasing img size
How much should I make image size?
they're on ios discord on a tablet
lol
it's just how embeds look
Yea true ^^^
you can make the embed look better by removing the footer entirely and extracting the dominant color in the image and making that the embed color
imo the requested by is just ugly
uhhm i tried updating nodejs on ubuntu vps
but it doesn't work
is there even a nodejs version higher than 10 for ubuntu?
15 best cause native AbortController uwu
what is AbortController?
allows you to send signals to abort promises
o
super useful
but how would i do that?
and node-fetch supports it very well
like, how would i install the latest version
node-fetch is pog
sudo apt install nodejs tried this many times
only thing i get is nodejs is already the newest version (10.19.0~dfsg-3ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 123 not upgraded.
because thats not how you do it
doesnt node have an install document
it does
I'm still trying to figure it out 
is it possible to recursively call an anonymous function in js?
const votechannel = bot.channels.cache.find(channel => channel.id === "795623007472975872")
dbl.getVotes().then(votes => {
if (votes.find(vote => votechannel.send(`${vote.username} just voted for the bot in top.gg!`))) console.log("someone has voted!!!")
});
i think it will work now
test it
what
illegal
didnt work
when someone votes
getVotes() returns an array of users that voted
it will send a message in the "votechannel"
but it returns all users that voted
then how do i do that
dbl.webhook.on('vote', vote => {
votechannel.send(`User with ID ${vote.user} just voted!`);
});```
then like that?
@pale vessel
yeah
well, define votechannel
and make sure you set up the webhook correctly or the event won't trigger
Error: The module '/root/moderationklaar/node_modules/canvas/build/Release/canvas.node'
0|index | was compiled against a different Node.js version using
0|index | NODE_MODULE_VERSION 64. This version of Node.js requires
0|index | NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
0|index | the module (for instance, using `npm rebuild` or `npm install`).
0|index | at Object.Module._extensions..node (internal/modules/cjs/loader.js:1057:18)
0|index | at Module.load (internal/modules/cjs/loader.js:863:32)
0|index | at Function.Module._load (internal/modules/cjs/loader.js:708:14)
0|index | at Module.require (internal/modules/cjs/loader.js:887:19)
0|index | at Module.Hook._require.Module.require (/usr/local/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:80:39)
0|index | at require (internal/modules/cjs/helpers.js:74:18)
0|index | at Object.<anonymous> (/root/moderationklaar/node_modules/canvas/lib/bindings.js:3:18)
0|index | at Module._compile (internal/modules/cjs/loader.js:999:30)
0|index | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
0|index | at Module.load (internal/modules/cjs/loader.js:863:32)
``` uhhh
canvas doesnt work on node 15
@pale vessel
const dbl = new DBL(yourDBLTokenHere, { webhookAuth: 'password', webhookServer: server });
that
?
i am usin node version 12
yes
use the test button on your webhook page to test the vote event
than rebuild your package
can i maybe delete the node modules folder and install it again?
its tells you in the error :3
please help me
you you need to reinstall node
npm rebuild
except Exception as err:
print(err)
await ctx.send("loal")```
how do i add this is my kick command?
you sure its node 12?
learn python
bruh ;-;
yeah
pretty sure that i am usin v12 right now
like that tho?
plox help
node -v
no
v14.15.3
embed needs to be inside the webhook.on
you need to use vote, which is only available inside the event callback
okay hold on it is still rebuilding
logic
vote is never used
@sacred trout do you know how try and except works
bruh same concept
idk i am CoNfUsEd
@earnest phoenix
try it
I told you, you're handling errors raised from send method, instead of the kick one
ban*
so how do i do that :9
by learning python 
it's pretty self-explanatory ya know,
except: do something else
so what are you failing to get then
so in try i am trying to send the msg to the user
and in except i am not send the msg and straight up kicking him
dbl.webhook.on('vote', vote => {
TypeError: Cannot read property 'on' of undefined
nah, not only sending the msg to the user, you're also trying to send a message in that channel where the command was invoked
What are you on???
smash or pass
how am i send a msg in except
Like you normally do?
bruh
bruh
bruh
sotp
what to do
flaze you still don't have school right?
noyes
when does your school start?
20
except Exception as err: print(err) await ctx.send("loal")
20 days or 20th?
???
20 jan kekw
@earnest phoenix how do i add it bruh
At this point, I'd tell you to learn python
lol
pls
dbl.webhook.on('vote', vote => {
TypeError: Cannot read property 'on' of undefined
dbl.webhook is undefined
well dbl.webhook is undefined
@earnest phoenix bruh can you help with the code plox
is three messages enough for you to understand
Before you make a Discord Bot, you should have a good understanding of the language you want to use to write it. This means you should have a basic understanding of the following topics:
- Proper Syntax
- Debugging Code and Errors
- Basic Language Features (vars, arrays, objects, functions)
- Reading and Understanding Documentation
- The
importormodulesystem for your language.
As much as we'd like to assist everyone with making their bots, we rarely have the time and/or patience to handhold beginners through learning the language.
We highly recommend understanding the basics before trying to make bots, which use advanced programming concepts.
Here are good resources to learn the language through tutorials, videos, or books:
https://automatetheboringstuff.com/ (for complete beginners to programming)
https://learnxinyminutes.com/docs/python3/ (for people who know programming already)
https://docs.python.org/3/tutorial/ (official tutorial)
http://python.swaroopch.com/ (useful book)
see also: http://www.codeabbey.com/ (exercises for beginners)
Please take a couple of weeks/months to get acquainted with the language before trying to make bots!
learnpython pyfirst
I could've straight up spoon fed you, but that won't help you. Also against this server rules ig
Why does he react kekw
See everyone agrees you need to go learn the language.
umm i agree to that as well lol
There are meny things wrong here. lol
can you see this @earnest phoenix
๐ฟ
It works witbout
Doing
This
Shit
Aswell
why are there two <html>
yes I have eyes, fortunately
"go learn" means "we are going to stop trying to help you"
oh
how isnt it defined
@radiant kraken oh ye ur damn right ๐คฆ
@radiant kraken nvm its beacuse its onother page
i think i know why 1s

I recomend u bdfd then @shrewd creek
They said coding not lego blocks
yea its almost done just need to add one feature
status = ['Jamming out to music!', 'Eating!', 'Sleeping!']
because its the best
uh
in
i use this status to vari
that's not a valid reason lol
14 gives access to more features
what'
wait
you mean 15
because it's the latest lmao
yes
my brain
status = ['Jamming out to music!', 'Eating!', 'Sleeping!','putting mokka/making lame jokes']
@bot.event
async def on_ready():
change_status.start()
print('Bot is online!')
i want to add this function to the status
(activity=discord.Game(name=f"{len(bot.guilds)} servers!"))
also npm 7, N-API 7, AbortController, QUIC, unhandled rejection throws, and V8 update
ez
you set it
can we just send him to #topgg-api now?
wdym
You put the one you set on your code
just read the example its below...
it dose not matter how i name it right?
as long as they match
@tardy hornet https://github.com/top-gg/node-sdk/blob/master/README.md
if you didn't read it before, I suggest you do
guys how to generate random (Number+Text) with limit of 4 to 6 chars
can any body help me in this section
bot = commands.Bot('#', description='Yet another music bot.')
bot.add_cog(Music(bot))
status = ['Jamming out to music!', 'Eating!', 'Sleeping!',(activity=discord.Game(name=f"{len(bot.guilds)} servers!"))]]
@bot.event
async def on_ready():
change_status.start()
print('Bot is online!')
@tasks.loop(seconds=20)
async def change_status():
await bot.change_presence(activity=discord.Game(choice(status)))
without that bold part its working but i really want that bold part...
im just, not gonna do it, too hard for me i guess, that webhook thing
uh you can make it lambda: f'{len(bot.guilds)} servers' and check if that's callable or not, if so, call it so that it returns that string, otherwise just set it right away
arhh it works but displays the no of servers wrong...
stats = ['lol', 'bruh', 'learn', 'python']
a = random.choice(stats)
@bot.event
async def on_ready():
while True:
await bot.change_presence(activity=discord.Activity(name=a, type=1,2,3))```
well the task is started after the bot is ready, it should return the right number
bruh what

don't do shit in on_ready kekw
thx mate
cuz the things make sense when u know already
@earnest phoenix imagine that i have several for loops in my on_ready event

guys how to generate random (Number+Text) with limit of 4 to 6 chars
what kind of for loops are those
search on google or learn
spaghetti loops
depends on the lang kekw, tbh the concept is just the same
Same
im using many things
Want to generate random transaction id
also my last work its a bot based on Tanki Online (multiplayer 3D shooter) and imagine that i replaced cogs with functions that im calling from other files

functions = better than cogs
change my mind

py?
ye
damn
thx mannn it works...
Any good free hosting
imagine not adding len(bot.guilds) in the list
Can work till 100 server
that's static
heroku its good

try heroku
you can get the codes from a github repo and run them
but if you're using a database to save stuffs then idk
Once it's called, it's set to that number
ik
I use quick.db?
Works?
idk. heroku aint that good at saving data in the database
neither any free host
u should look for a paid 9ne
one
Repl it?
like google platform it gives you 500$ as a bonus for registration
no
There are really cheap vps plans out there
$2 a month
@earnest phoenix Servers?
300? 
@stuck pike what?
@velvet jolt the problem is im just 14 and I come from w retarded country
quick.db on repl.it wouldn't work because your entire database would be viewable by anyone.
Open source 
Lawl imagine stealing my data
There is no good free host that's sufficient for your needs.
u can subscribe to hacker plan for 7$ a month and make your repl.it private?
lol

Imagine calling a plan hacher plan
repl*
If you can subscribe for $7/month on repl.it you can pay $5/month for a full private VPS on literally any decent hosting provider.
Repl.it my bot works perfect 24/7
ye
For $7/month you can get a good enough VPS for way more than 100 servers

all.u need its a credit card / debit
smart. then u could woork with repl.it's database
bring uptimerobot to ping your flask server evvery 5 minutes and it should run 23/7 (free uptimerobot checks every 5 minutes and that equals in a bit of downtime)
@stuck pike then use repl.it's database to store prefixes
its easy
Why is my purge command not working?
whats the error?
@earnest phoenix delete that bro
else everyone will go on your profile and check ur repl

Lemme send uh
python its still better
Wait the people who know my replt acc can see my console or code?
Imagine that
are u using js?
@earnest phoenix check if the bot has manage messages perm
@stuck pike python its better
also
glitch its good for js projects
= a js hoster
Aah yes good till 100 servers?
Because I have a sponsor
After 100 server he pay me 5$
๐คฆโโ๏ธ
For hosting
idk
Hm
@velvet jolt but whatโs the problem you see?
Hm whatโs so good about python?
imo its very confusing
even nasa uses it 
Lol
I prefer ts and js

bbruh
Keeds need ez things
My man
pythong,C# and C = gods


Learn js typescript and React.js you are set
no ty
pythong sounds like a good lang indeed
I'd rest on python
pythong lang is best lang
In .replit file
language = "go"
start = " "
What should I write in start?
you shouldn't need to edit the .replit file

I've never had to touch that file
Lawl


Lawl
heroku?
Yea heruko
i mean theres a secret place where u have to put your bot's token
My bot hitted 8k members lol
Hosting on kerohu isn't that hard.
not in the github repo
My bot isn't even online 1 hour a day lmfao
self host = best
howcome ur not a verified bot dev then?
Again promoting own site hehe @umbral zealot
Idk man
๐คฆโโ๏ธ
check that site to see how u should config heroku
๐คฆโโ๏ธ users doesnt actually count

Ik
I had a Discord bot 51 servers
But I forgot the account password
lol i have one in 91 servers
Of the acc
Y
Fishy
id (irl document)
sus

i mean bruh
y are u even asking for ur id?
its not like a 10 y/o kid could code a discord bot

Because they want you to be legally responsible for the bot that has access to potentially millions of user's data
it's got nothing to do with your age
It's a trust relationship. Discord trusts you with data for millions of users, you trust them with one thing: your real ID.
No it's a lot more than that
not only that
You get every single message, channel, role, user's avatars and names
You can do a lot from shit you can scrape off Discord.

And if you get Presence data? You can literally know someone's waking schedule on discord, what music they listen to, what games they play...
You already trust Discord with all that information.
M 14
Started coding when I was 11

Discord wants to trust that you won't do nasty shady things with the information of millions of others.
๐ค๐ค
I will provide lol
My parents think I waste time on pc for 8 hours day

And I actually code 8 hours
it takes me 5 hours to make a economy command (really difficult one)
lol
Uk my teacher was teaching what Is database and it works plus html. I asked him sir should I use sql or mongo he said "Go read books don't google these stuffs it's for big kids "
I was like :


I wouldn't know, I don't understand what you're babbling on about
Maybe keep random conversations to #general ?
I know you like asking what host to use like every other day but still.
M just saying school = suck
Hehe


who looking to bot reviewes
Wot?
?
What are u trying to say
That's nice dear.
Everyone does
Verification takes 1 week or more.
ok bro
"bro". Well that means you're turkish.
But my bot has only Turkish laungauge support.
"bro" is turkish, "sir" is indian. ๐
So do half the bots on top.gg. You're fine.
@umbral zealot wait uk India
ok
I m from India lawl @umbral zealot
ok sir
No u sir
if possible to send dm message when someone vote my bot without webhook service but with dbl bot webhook service and get the user id from the embed data?, i has get the data but I am not sure to use this method
O
Nope, only possible with webhooks
hmmm ok
Can someone help me make login using discord? (On my webpage)
Use auth
This post describes OAuth 2.0 in a simplified format to help developers and service providers implement the protocol.
OAuth 2.0 is the modern standard for securing access to APIs. OAuth 2.0 Simplified is a guide to building an OAuth 2.0 server. Through high-level
Integrate your service with Discord โ whether it's a bot or a game or whatever your wildest imagination can come up with.
does anyone know how to limit a command to the bot owner??
compare author ids
@bot.command(name='servername', help='This command displays the no of servers in which its on')
async def servers(ctx):
if ctx.message.author.id =='my id'
await ctx.send(bot.guilds)
you're comparing an int to a string, there's no need to omit ids, all ids are public data
and also, what norizon sent
for future reference, message is redundant there, you could've done ctx.author

I've been trying to make my bot send the outcome of this:
ccxt.sortBy(Object.values(tickers), "quoteVolume", true).map(ticker => ({ price: ticker['last'].toFixed(3) }))
Though I have been able to console.log the outcome:
[ { price: '1048.330' } ]
I tried, i get some code data in my url, but ho to get user id, avatar and email from it?
i've been trying to improve my bot for like 4 hours straight and my brain is fried
you need to exchange that code for an access token (https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-access-token-exchange-example)
after that you can make a request to this endpoint https://discord.com/developers/docs/resources/user#get-current-user
the request needs to have an Authorization header in the format of Bearer <access token here>
email

I had 2 variables for this. One of them is the warnReason and the other is warnUser. How do i exclude the mention from the warnReason?
Yes i have a command handler
how?
shift?
using args.shift?
The shift() method removes the first element from an array and returns that removed element. This method changes the length of the array.
Could someone point me towards the docs for rate limits on sending messages to a channel for bots?
why is that?
const warnUser = message.mentions.users.first()
const warnReason = args.join(' ')
warnReason.shift();``` is this right?
no?

Do you not have google where you live
Because shift modifies the entire array - all elements' indexes are changed and that makes it slow
hmmm i see
sooooo. what do i do? XD
Oki
also clicking the link i said or read what googleFeud just sent
I think i clicked the link
Is it 5 messages per 5 seconds? I can't find the official docs anywhere
clicking the link won't magically give you the solution
you have to read it
thats ebcause your ratelimits come with the header on your http request
there isnt a set ratelimit
though, give me one second
i have some guides
const warnUser = message.mentions.users.first()
const warnReason = args.join(' ')
warnReason.slice(warnUser.length).trim().split(/ +/);``` how about this?
since its in the official api server, i assume its being updated and maintened
read what i said previously
?
just read
hint: from here on down
ok
If I send 1 message every 5 seconds I should be safe right?
that would work, my bad
so, how can i turn warnReason into an array
the reason is
both me and feud were suggesting you remove the first element
but .slice() is also valid for a string
warn use is an object though
Erm
toString() would probably be doable, but not accurate all the time
so its better to manipulate it in the array
rather than in the string
Use the slice method on the args array, and then use join to turn it into a string
ok
and if you want to remove the first element, give slice 1, not the length of the array
first one. slice is a function
Oki
How can I get the nickname#tag of the person who changed the name of the guild? guildUpdate
I hope I wrote what I want correctly
It worked thanks @cinder patio @opal plank
I have a problem about node.js
you need to use audit logs
In this code, I wanna define a json {asdqwe: 123}
I want to use variable in json object but I can't
okay
{[time]:"123"}
Thank you
Which database is good for a bot with dashboard?
any will work. i use currently MongoDB
each database has its pros and cons
i use sqlite
Me too
i use postgres/cassandra
I have programmed my bot with quick.db
๐๏ธ
data[time]
?
that should work lol
um so
I use sqlite3 but idk how it works with a online dashboard xD
ws
embed.thumbnail.url: Not a well formed URL.``` my code: ```.setThumbnail(`https://vacefron.nl/api/ejected?name=${message.author.username}&impostor=true&crewmate=red`)```
it has some really handy shit already ready to pop out of the gate
hmm guess i could learn more using ws
the same way as anything else
Ok
now here's an idea for those who code client mods out there
block by role
never again will you have to see whitenames randomly spewing nonsense 
??
Hmm
const Discord = require('discord.js');
const client = new Discord.Client();
const prefix = '/'
client.on('ready', () => {
console.log('bot is ready!')
});
client.login('token')
38.7 secs ?
'token' isnt a valid token
sup
just dont want to share token
oh, aight
okay
so, whats the issue?
what's wrong with that code then?
Nothing
