#development
1 messages · Page 536 of 1
no use a 0 width space
says the kid
3)’fndynegnetbe
That’s mine
<insert-cool-prefix-here>|
Ignore the I
thats my prefix
my prefix can technically be despactio
since you can make it whatveer you want
as long as its under 10 characters
Mobile apps lag
we have spam
I press the button once
no its not him spamming
And since I have T-Mobile btw
it happens to me too
it just doesnt send and then it decides to send three times
Alright just leave it, it was an accident so carry on
hahaha
POLL
Which prefix looks/sound better?
= “tiktok:command”
= “!TikTok command”
= “$tiktok command”
😀 = “tk.command”
TikTok can also be TT for short. And mentions too.
use mention
Not the point ._.
none
@sick cloud dude just pick one geez
if(killoff == null) {
const help = new Discord.RichEmbed()
.setDescription("Hello, " + message.author.username + `! I am ${bot.user.username} and here are my commands:`)
.setColor(colors)
.addField('🎉 fun', `These commands are fun!`)
.addField("✋ basic", `Some classic commands`)
.addField(" ✅ custom", "Custom commands (**ccadd, ccdelete and ccprefix Requires you to have specific permissions**)")
.addField(" ⬆️️ http", "HTTP request commands")
.addField("🔧 config", "Configurable server commands for your guild. Such as.. set join message, set leave message.. and so on.. (**requires specific permission for these**)")
.addField("🔨 moderation", "the moderator commands (**requires specific permission for these**)")
.addField("USAGE", "**type " + prefix + "help <command category> to list commands on that category**")
.addField("PERMISSIONS", "**If the bot is not responding to any commands, please make sure it has 'MANAGE_MESSAGES' permissions, or it will not work.**")
.addField("Credits", "**Created by Swifti#2050**")
message.channel.send(help)
}``` How would I add like a link into that where it doesn't show as a link, but it shows like Click `here`. but the here is a link
Instead of credits
markdown @earnest phoenix [text](link)
thanks it worked
how many times cam you safely edit a role per hour or something
okay
why my bot does not all all command modules
await Commands.AddModulesAsync(Assembly.GetEntryAssembly());
inevermind i found out the problem
https://cdn.discordapp.com/attachments/459637978269220864/522698311900200970/unknown.png
how i can remove the middle of - thingy
That's an issue with your site's code, we'd need to have the link to help
-bots 293317293222526976
User not found
@normal salmon
Can someone please tell me what's wrong here. I keep getting undefined as response.
show he full error
There's no error
The response is the only problem
There was no error and the status code was also 200.
undefined in the console.log or undefined in the send?
Undefined in the console.log as well as send.
-bots @gilded plank
Bots don't have bots, silly.
XD
Don't use Luca in here please, Keep this chat development oriented
yes. how do I develop another dyno bot @coral trellis

Ok
Any luck with my problem?
Something smells fishy here
@quasi forge not really, i'd try replicate it in something like postman
?
And finally gave up and asked you guys
Replicate the request in postman
Already did
and what's the response?
Brb
...k
@quasi forge you’re not requesting site if I’m not mistaken
Well
It might work like that
But just try and do
request(site_url,options)
And if that doesn’t work all I can really think of is that you should use .then but at the same time probably doesn’t matter but that’s how I do it. idk
@bright spear sorry tag, lofi-bot.glitch.me/
lmao, yes
@empty steppe https://www.reddit.com/r/reactionrole/comments/a0nl26/bot_continuous_downtimes/ (my bot)
take a look at the tweet & messages stash
ok thanks, thats reassuring 😃
@quasi forge try what I said
Do
request(`https://discordapp.com/api/oauth2/token`, access_options, function(etc..```
can anyone help
emojis not working on bot
i enter correct and bot is in server
but no :/
it always shows
:emoji:
😫
Emotes don't work in titles
uhh 😦
They do not work in .setTitle()
ok
Yeah nsfw commands aren’t allowed to be advertised
Smh
Well I’m not a server administrator so I guess I’ll skidaddle
You need a full invite link
Yes you do
Watch it work
Wager
Try it
Try it
cool
Then you must be doing it wrong
🤷
got me good
You need to calm down
This shit toxic
You’re the one getting pissed over it
I was just trying to help
How was I supposed to know you already tried it
Kek blocked
Unlucky
Ok back to development
Yeah callumok you’re being toxic for no reason don’t get pissed when you don’t get help
Because if you disrespect the people giving you help you don’t get help
A n y w a y s
Kek a whole month mute

id?
eyw
Just had to copy it
thnks
can i have the image of him calling you out @last ferry
Np
in DMs
where are you error
sorry i don't understand turkish
@earnest phoenix
You can't just use any emoji
Your bot has to be in the server the emoji is coming from

Maybe you should stop
I am not looking to be "spoonfeed" the code, but how would I prevent my music bot from stopping any playing music when someone joins. I am using discord.js
@thick bay when someone joins?
the voice channel?
Correct
it should not be an issue
Well some reason
wait
Unless I have
Let me look at something
nvm
Found my issue lol
lol
Some reason my greeting message has a part where it stops the music I am very blind but it's okay
👀
So about 20% into TikTok bot,
How can I get its raw video sources? It seems that every page has a diffrent ID in some way
Take this hashtag for example: https://m.tiktok.com/h5/share/tag/72785511.html?name=1millionaudition&u_code=dal4j8l25hjfm×tamp=1537072617&user_id=295296894812102656&utm_source=twitter&utm_campaign=client_share&utm_medium=android&share_app_name=musically&share_iid=6593596803449571078
now lets look at a video: https://m.tiktok.com/v/6621806094836567302.html
evertthing is diffrent, so I'm confused on how to make a bot for this.
Trending hashtag on TikTok right now! 1 Million Audition India is ON! This time, Join 1 or more of the 5 categories and everyone has the chance to win the final prize:
#1MVinesIN
#1MArtIN
#1MSportsIN
#1MSpecialSkillsIN
#1MFashionIN
Please check the final result here:
https:...
Heres the sources, but I had to find it by inspefting the vido using chrome:
^^^ so can anyone help in the small way by finding/showing me a way to get a tiktok's raw source video
^ it may just play in a audio channel
Is there a way to make a hyperlink in a footer?
no
damn
that's rough
hey
i cant use emojis on bot
bot shows <:emoji:id> as :emoji:
but bot is in server that emoji exists (my server so eh i am sure bot is in server)
but i am so confused
how did you copy the id
show code
ok
how to code a
a what
a
if my bot has a permission name CONNECT
print('a')```
thanks a lot
but that is not i want
if my bot doesnt have the permission 'CONNECT'
then return?
i cant use this
@languid dragon
what?
it will send this error
no
anyone can solve my question?
does it show as :no:
yes
because it doesn't work in this

:no:
but in embeds too it doesnt show
ok i think no
WeiKu
hasPermission is a method of member (guildMember)
The bots user object has nothing to do with the guild
What’re you trying to do?
@rigid crane
The music bot
I’m guessing you’re trying to see if (on message event) it checks if it has permission
Wait are u the other developer from the other day?
message.bot.user?
Uhhhh
What’re you trying to do? Check if the bot has permissions for that guild?
Yes
me?
.hasPermission is only run on a guild member
Oh
Yes .me retrieved the bots member object
.me
Yes
.me gets the member object of the bot from the guild
Instead of doing members.get(bot.id)
hello all sorry for coming here just want to know if somebody here that can help me make my bot do +help get commands then +play choose a num for that specific track please
sure
are you asking abot doing getting the help command to grab all the commands. and then the play command?
Pls
? @earnest phoenix
How do I make a command to lock a channel for say the perms to send a message is
or 
message.channel.send("Channel locked. <tickNo:522836014733983745>";```
I need it so a sertain role can’t send messages on a channel
^ ^ ^ spoonfed no spoonfeeding
@barren brook https://anidiots.guide/understanding/roles
Thanks.
My bot is really bad, I'm thinking about redoing it. Does anyone have a good color i should use for the embeds?
and/or logo
Well for embeds you can make it RANDOM if you can’t come up with a nice one
?
@raven bronze modestacss docs have quite a few nice colors https://modesta.alexflipnote.xyz/colours
The different colours in ModestaCSS
thx
@west mountain what?
for links info ;
@slim heart I would like to make a theme not random, becuase it will fit our logo.
Oh then what color theme are u aiming for?
use your logos color or the opposite of it? 🤔
@mossy vine We are remaking the bot, so we want to use a color other
yes but what color is your logo
wrong serevr
i need help
go to the life bot support server
were is it
are you talking about this bot?
yes
@mossy vine which color is best?
third, just because im a hueg fan of purple
First imo
Yeah first
anybody know maby how to do this please http://prntscr.com/lulkff
P r o g r a m I t ¿
you_arent_gonna_get_spoonfed_here.exe has stopped working.
do it on your own maybe
That means we would spoon feed him
the funny part is @slim heart i did program it its just i cant get my radio stations to work properly with it
just what im saying
Soooooo. What is it?
exactly radio stations my bots are music bots and yeah i have added radio to my bots as i have paid for the links also and they are working
So like literal radio stations?
its just it doesnt want me to add more than 1 because im struggeling to get my bot to let me choose what station
yes
yes but they only play music
yes
That you can access with an antenna
I-
Ole
Ok*
Well that picture seems to be a song picker not a station picker
exactly because this is what i get it to do http://prntscr.com/lulxj6
I’m still extremely confused on what the problem is
can anyone help me setup mentions prefix
i cant get it so that i can choose wit a number
Just make the prefix <@client-id>
well whatever api you’re using should take care of that?
@slim heart but I also want them to use the included prefix
($) [changeable]
so they could do " @placid silo setprefix !"
i did try that also @raven bronze but it still doesnt want me to
Then make an array like [prefix1, prefix2] and then in your command variable remove the second prefix with it
@slate kayak one; I don’t think he was talking to you 2; depending on the api/package you’re using that’ll have whatever number pick it makes
It's cause the loops aren't nested
What
He made more than 1 command called radio like 7 times
He can just do a nested if statements if args equals 1-7 then do this
Yeah
Still confused on the prefix
Willin to bet you can just google it
client.on("message", message => {
const prefixes = ['!', '?', '/'];
let prefix = false;
for(const thisPrefix of prefixes) {
if(message.content.startsWith(thisPrefix)) prefix = thisPrefix;
}
if(!prefix) return;
// Go ahead with the rest of your code!
});```
@raven bronze ezgoogle
Well depending on what command is
How is your code made
Does it have a command variable
so whats the var for the command so "myCoolPrefix <command>" will output "<command>"
🤔 thats got nothing to do with what im asking
ok so heres my code:
ot.on("message", message => {
if(message.author.bot) return;
let cmd = messageArray[0];
const prefixes = ['$', 'g.', 'gimbo.', '@placid silo'];
let prefix = false;
for(const thisPrefix of prefixes) {
if(message.content.startsWith(thisPrefix)) prefix = thisPrefix;
}
if(!prefix) {
return;
} else {
if()
}
});```
how do I make it so a command works here
use else if() instead of else { if() }
nope not the point
how do I get the command var
} else {
if (cmd === `mycommand`{
message.channel.send("Oof.");
}
}```
😂
Lol
Oh lovely
Yt tutorial
Gg
yes YT tutorial haha
👌
Hello
who knows how to make the command lock for my bot discord in js?
to lock the living room
help me please... give code
are people really this dumb?
just don't give up on humanity and keep unrelated stuffs in #memes-and-media
This is rediculous
Hhh yeah
Ever since I could answer basic djs questions and I started coming here sometimes just cuz I’m bored to help people I’ve lost faith in our future like 10x
HTML: https://hasteb.in/huvoqexu.xml
CSS: https://hasteb.in/uketiyiv.hs
Why does this not change the title colour on DBL but it does on my test website?
reposting the same thing over and over, with no real question does nothing
Execuse me!? No I'm working on a new part of the bot with a diffrent prefix.
@formal agate @earnest phoenix
Yeah sure...
lol
Then how do you not know anything you're doing
^
and need help on that simple part...
also
Husky, rule 1 is Don't be a dick. Please follow by that rule.
Don't try to leech off others then.
if you knew what you where doing, you would know that multi prefix you where given does not work
^
^^ remove the public token
reset token
^
I asked for help in #development, but no one ever cares about me, and just bullyes me to the point where I am depressed all the time.
No joke, why.
It kinda is mean.
Becuase I never used multi-prefixes
i tried that
The code is on my GitHub
link?
@marble elm that does not work
first result on google
@formal agate
kool
Is it because the token is on there?
this
On a local server @formal agate
Not on heroku, glitch or anything like that right?
because if you lie this will not work
Im new to this kind of thing
You shouldn't push your bot token on github
^
^^ this is the public token, try making a new file with the token and use .gitignore and add the file there
Yeah and regenerate your token before someone does some bad things with it
^ yeah
I currently have this for my HTML html <div class="moduleTitle">Title</div> <div class="moduleDesc">Description</div>
and this for my CSS css .moduleTitle { color: red; } .moduleDesc { color: green; }
Why does this not change the colour of moduleTitle (https://i.imgur.com/qBQwYCI.png)?
Try this
great
Is superagent good for apits
Discord.js Help
So I made a command for promoting bots and stuff on my server. You do !promote (message) and it will send it to a specific channel (promote channel)
The issue is that when it sends the msg, instead of spaces it uses commas.
For Example
!promote christmas is awesome
My bot says: christmas,is,awesome in the channel
My code is:
client.on('message', message => {
if (!message.guild) return;
var missingPermissionsEmbed = new discord.RichEmbed()
.setColor(embedColor)
.setAuthor(message.author.username, message.author.avatarURL)
.setTitle('Insufficient Permissions!')
.setDescription('You need the `ADMINISTRATOR` permission to use this command!')
.setTimestamp();
if(!message.member.hasPermission('MANAGE_MESSAGES')) return message.channel.send(missingPermissionsEmbed);
if (message.content.startsWith('!promote')) {
let args = message.content.split(" ")
args.shift()
let target = message.mentions.members.first(),
id = args
const embed = ({embed: {
color: 3447003,
fields: [{
name: "**Promoted Server**",
value: `${id}`
},
],
}
});
message.client.channels.get("522572491969921026").send(embed)
}
})
Can anyone help?
.join(" ") the string
for my code or for when i request it to run the command?
In your code
I think ${id} is where your "christmas is awesome" would be so try ${id.join(" ")}
ok i will try, thanks!
@fierce owl
I would recommend sending it in an embed it looks nicer:
let promo = new Discord.RichEmbed()
.setColor("#4999f0")
.setTitle(`Your message here! And ${var}`);
message.channel.send(promo);```
ok
also add a -noembed feature
!promote <message> -noembed
ok
thats just more pain
ok hi im having a problem with my command on my bot
i want it to take the last arg when someone runs the command but it takes the second to last one
c0de
show args content
huh
show the contents of arg
ok wait
https://skullbite.is-for.me/i/85301qpw.png console.log(args.join(" "))
@keen drift
oH wait
console.log(linkRegex.test(args.pop()))
msg.channel.createMessage(args.pop())``` could this be why
a
yes
well then
i recall pop modifies the original array, so when you send the message, the last element is no longer u
fishy pls
What is important that people are directing me here
what
Discor.js help
So I wanna log what what bot does (kicks, pms, promotes)
how would I do it?
kicks?
guildMemberRemove event or something
:^)
@valid frigate @knotty steeple Thtas just commands I have, but I want to have the bot put a message in a log channel when the commands are used
ok
does anyone know how to fix this
.join(' ');
theres an issue in ur eval code
your arguments are ['>$eval', '"OOF', 'w0w"']
and you probably join them with a , so that's why
Am allowed to have a "Command not found" error here? (it sends an error when someone tries to execute a non existing command)
bad practice = something u shouldnt do
lol
how do i send a message to a channel when a command is used. Basically logging it
what lib
i already told you what to do
there are thousands of bots, so eventually there will be something out there with the same prefix as you, and your bot will be spamming "command not found"
oof
discord.js
alright..
client.channels.get('CHANNELID').send('message')```
Question
case (msg.content.startsWith(config.prefix + "autorole")):
let oldRole = message.guild.autorole
if (!message.args[0]) {
if (oldRole !== false) {
bot.config.setAuto(message.guild.id, false);
return message.send("**Autorole has been disabled.**")
} else {
return message.send('**Please provide a role for autorole.**')
}
}
if (message.mentions.roles.first()) return message.send("**Type the role name instead of mentioning it**")
if (!message.guild.roles.exists('name', message.suffix)) return message.send("The role **"+message.suffix+"** does not exist on this server.");
if (message.guild.roles.find('name', message.suffix).position > message.guild.member(bot.user).highestRole.position) return message.send("**I cannot assign a role that is higher than my highest role.**");
bot.config.setAuto(message.guild.id, message.suffix);
message.send("The role **" +message.suffix+ "** will now be assigned to users when they join your server.")
}```
Is this okay? Because it isnt working
be specific
When i run the command it doesnt work.
why do you have a mix of message and msg 
also "message.send"
did you just copy paste that code
no.
or did you actually write it
we already did?
twice
thats only how you find the specific channel and send the message
not how to log it
when a command is used
what do you mean lol
what the fuck
how do i send a message to a channel when a command is used. Basically logging it
send a message to a channel when a command is used
when a user uses a command, send a copy of it to the log channel?
if some kicks someone
the bot sends (user) was kicked from the server by (person)
yeah well you didn't explain anything there
listen for events
we already told you lol, channels.get(id).send()
just put it inside the ban command
someone is your user
like, at the end of the ban command, send it to a channel
ah i see
common sense
but it really isnt that common
how would you expect a person that is new to discord bot development to know that, lol its not common to them,lol
if you have logic and know the language it should be common
not really
to you yes, cause you know how it works, but not to new people
its like playing a instrument, the musician thinks its common sense to put left on top and right on bottom on a woodwind instrument, but to someone how is complete new to it, wouldn't think its common sense cause they don't know that. same thing here, you think its common sense that args comes after the command, cause you learn it and been doing it for a long time. but to someone who is complete new to it wouldn't know, cause they never learn that, lol
fucking why
uh
common sense
im trying to post to dbl's api with
request.post("https://discordbots.org/api/bots/stats", {form: {"server_count": boat.guilds.size}, auth: {"Authorization": boat.config.dbl_token}})
but
i get an error
what
common sense. read the error, and look at what it is saying to your
its supposed to take in two paraments, user and password
"paraments"
but its not?
@knotty steeple authorization is a header not auth
-_- read the error please and tell me thats not what it is saying
and what advaith said authorization is a header not auth
actually yes and no
Lmao
i read errors and understand them more than actually programming problems. and the paraments are user and password for auth, and its saying that auth has received an invalid user or password, so its kinda of makes sense if he didn't use auth right
i am not smarter than people, theres people smarter than me, i just learn from people and self-learn, but i can be wrong, like multiply times.
Do I need to do the server count thing for the website? Cuz I can't get it working, I get an error: unauthorized when using one of the templates in the my ready event
for?
you dont need it, but its nice to have, and makes your bot look better
401/unauthorized means you didn't provide a token/API key
@earnest phoenix you'll need to add the favicon code to your html
Glitch doesn't support uplaoding files like that
Ah, could you provide that?
Just Google code for favicon
It should be something mentioning shortcut-icon
where would i put it in the html?
head
Try https instead of http
Also you should probably fix the issue on line 21 but that shouldn't affect it
@quartz kindle yeah you can, and the glitch UI doesn't support uplaoding files
still the same thing
Check the browser console
like inspect element?
Yeah there's a console button at the top of devtools
Inspect element opens the elements tab in devtools
doesnt support https
Try using the glitch cdn url
idk what that is
do i add the file again?
like that?
then what do I do with it
oh
nvm
figured it out, thank you for your help.
greatly appreciate it.
Yw
How do i host a bot with glitch
well
What language is it in @raven bronze
@bright spear js (discord.js)
Look into the free tier of AWS
Weird, for some reason my webhook is showing that it’s the weekend 
@earnest phoenix what bot
@blazing star weekend = Friday - Sunday in whatever time zone
oh thx
Go to https://discordbots.org and find one
just make sure it doesn't DM lul
lul
Anybody know a good discord.js bot host less then $10 per month?
@earnest phoenix DigitalOcean
Vpsdime is really good @earnest phoenix
I’ve never heard of it but I’ll look into vpsdime
You should also check out scaleway
They have amazing low cost VPSes
like 4 euro for 2 cores 4gb ram and 50 gb ssd
i just go with the flow and use DO
also bc $100 hacktober credit + $50 github student pack
What’s the "init" system?
@valid frigate well it's the best host after AWS
So you're on the good side
Why is my bot not sending messages here?
I went to #commands and used the command j!help and it didn't work here. It works on my server just fine.
It may have been muted
hmmm... what did it respond to?
To other bots
What lib are you using?
just make it ignore bots
I think i already have it fixed
const dont = () => {
throw new Error("( ͡° ͜ʖ ͡°)");
}
if (message.author.bot) {
return dont();
}
good for debugging
lmao
im not proud to admit
but my bot used to use everything as globals
when i was a lil n00b boi
everyone did that at some point
just said that in voice lmaoooo
lies
sa
sa
hey @queen violet you are the only jda dude i know, ever had this pop up in your console?
org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]
at org.json.JSONTokener.syntaxError(JSONTokener.java:505)
at org.json.JSONObject.<init>(JSONObject.java:214)
at org.json.JSONObject.<init>(JSONObject.java:357)
at net.dv8tion.jda.core.requests.WebSocketClient.handleBinary(WebSocketClient.java:944)
at net.dv8tion.jda.core.requests.WebSocketClient.onBinaryMessage(WebSocketClient.java:901)
at com.neovisionaries.ws.client.ListenerManager.callOnBinaryMessage(ListenerManager.java:368)
at com.neovisionaries.ws.client.ReadingThread.callOnBinaryMessage(ReadingThread.java:270)
at com.neovisionaries.ws.client.ReadingThread.handleBinaryFrame(ReadingThread.java:990)
at com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:749)
at com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:108)
at com.neovisionaries.ws.client.ReadingThread.runMain(ReadingThread.java:64)
at com.neovisionaries.ws.client.WebSocketThread.run(WebSocketThread.java:45)
i have no idea what the fuck is happening
its not passing through any of my code
It looks like you have a syntax error.
neither do I, but I think i have gotten this error before.
i would check A JSONObject text must begin with '{' at 1 [character 2 line 1], if not idk.
Someone know how to add multiple field on the same line like that: http://prntscr.com/luy7o7 ?
inline: true
So with jda?
no idea with jda
Okay ty, will search
@dreamy breach you would have to set the inline variable to true
when you add a field using the embedbuilder
so whenever you add a field in jda you do embedbuilder#addfield(string, string, boolean)
you want that boolean to be true
Oh okay ty so much 🤗
ok, right so, my bot trys to find the server owner, but returns "undefined"
addField(`Server Owner`, message.guild.owner, true)```
^ but it works on my servers
Does any one here know how to write a music play and stop command in JavaScript
What lib Tehcno
@late hill Discord.JavaScript
Yes
My first guess would be that owner is an object
So you probably want to display owner.tag
?
owo
only this server dosnt work
\
const owner = msg.guild.members.get(msg.guild.ownerID);
// ...
.addField('who owns this place', owner.user.tag, true)```
xd
Yes
especially in big servers caching will prove annoying
^^^^ that broke it
yes i know that
still not working
no error = no help
at Client.emit (events.js:182:13)
at MessageCreateHandler.handle (/app/node_modules/discord.js/src/client/websocket/packets/handlers/MessageCreate.js:9:34)
at WebSocketPacketManager.handle (/app/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:103:65)
at WebSocketConnection.onPacket (/app/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
at WebSocketConnection.onMessage (/app/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)
at WebSocket.onMessage (/app/node_modules/ws/lib/event-target.js:120:16)
at WebSocket.emit (events.js:182:13)
at Receiver._receiver.onmessage (/app/node_modules/ws/lib/websocket.js:137:47)
at Receiver.dataMessage (/app/node_modules/ws/lib/receiver.js:409:14)
(node:10656) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)
The top?
we need the actual error
😂
the bottom half of the stack doesn't do shit
@earnest phoenix ?
What is have to put for timestamp unit? http://prntscr.com/lv0mb5 I want to display the current timestamp of Discord.
With jda
oh
(node:11515) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'tag' of undefined
pls... learn js @raven bronze
you have errors
means .user is undefined
Someone has an idea to get current timestamp of Discord with jda. I already try that but it said that it needs TemporalAccessor : http://prntscr.com/lv0q6k
Does just putting new Date() not work?
this is prob a stupid question, but what are "shards"
Step up your game with a modern voice & text chat app. Crystal clear voice, multiple server and channel support, mobile apps, and more. Get your free server now!
As bots grow and are added to an increasing number of guilds, some developers may find it necessary to break or split portions of their bots operations into separate logical processes. As such, Discord gateways implement a method of user-controlled guild sharding which allows for splitting events across a number of gateway connections. Guild sharding is entirely user controlled, and requires no state-sharing between separate connections to operate.
basically it splits ur bot into multiple bots/"shards"
joined by a controller
Date exists in java?
it dosnt make sense (the shards), how and why would you use them?
read what i linked
all libs implement sharding diff
but shards are for performance and shit
if you dont understand ask dapi
Hello
hey
-bots @velvet ruin
@high swallow
Hey @bright spear
i can help you with bot dm me
ok private pass
@velvet ruin don't randomly mention people
Okay
const d = require('discord.js')
module.exports.run = async (message, text, admins, bl) => {
message.guild.leave()
}```
?
?
hm
const Discord = require("discord.js");
const client = new Discord.Client();
const admins = ['438733159748599813']
const bl = ['']
const ms = require('ms')
const token = process.env.Token
const fs = require('fs');
const p = '@strange tulip'
const commands = {};
fs.readdirSync('./commands/').forEach(file => {
commands[file.substring(0, file.length - 3)] = require('./commands/' + file);
});
client.on('message', async(message) => {
if(message.content.startsWith(p)){
let text = message.content.split(p)
if (commands[text] != null) {
commands[text].run(message, text, admins, bl)
}
}});```
this in server.js
(+ ready under it)
@raven bronze
Is the command running?
(use console.log)
If it's not then your execution is wrong
@wide ruin
@dreamy breach if you want the current time, use OffsetDateTime.now()
Wow ty ❤
A guy using ipad voted my bot when I check using .hasVoted , it says he didn't vote
I voted in my pc and I used the same code but it says I voted
Anyone knows the cause?
Sometimes, numbers on sites like YouTube and Twitter jump up and down; subscriber counts lag, like-counts bounce all over the place. Why is it so hard for co...
Yea a computer never fails in counting but a phone can
Then why isn't it working?
When he try to vote again it says you already voted
And in api it says he didn't
It's like 2 hours after he voted
Hey! So for some reason my guild add event dosnt work. How can I make it update the gmae to say
pt!help | 0 Servers and when someone adds the bot, pt!help | 1 Servers
you can set a interval to update guild count in your ready event
if your bots grows a lot it wouldn't be a good idea to put it in a guild add event
Someone wanna help me with the css rainbow name and animated profile picture on the website/?
rn my bot crashes and I cannot find the error bcuz the console window closes on crash, is there a way I can write everything that appears in a console window to a log file to read?
your console wont close if you run your bot from within it
Hi
I have a problem
Dresseur.LSac.push('🎅')
message.channel.send(`Noël activé vous gagnez le badge 🎅 en plus du coffre car vous ne l'avez pas (Badge seulement gagnable jusqu'au 25)`)
}```
My code
^
TypeError: Dresseur.Badges.content is not a function
at Client.client.on.message (/home/Akimitsu_Dev/pokemon.js:1022:42)
at emitOne (events.js:116:13)
at Client.emit (events.js:211:7)
at MessageCreateHandler.handle (/home/Akimitsu_Dev/node_modules/discord.js/s
at WebSocketPacketManager.handle (/home/Akimitsu_Dev/node_modules/discord.js
at WebSocketConnection.onPacket (/home/Akimitsu_Dev/node_modules/discord.js/
at WebSocketConnection.onMessage (/home/Akimitsu_Dev/node_modules/discord.js
at WebSocket.onMessage (/home/Akimitsu_Dev/node_modules/ws/lib/event-target.
at emitOne (events.js:116:13)
at WebSocket.emit (events.js:211:7)
My error 🔼
@quartz kindle the last time you have help me for a similar error you can help me plz ?
Or other people
Content is not a function, it's a property. you can see if it equals something (==/===)
?
I replace wath
I want the trainer's badges do not contain: santa: then
Is it not work
@west raptor






