#development
1 messages · Page 1160 of 1
id just start by console logging the result from
api()
because the lib isnt really clear about it
if redditImage is a url than just filter out anything that ends with .mp4
but i dont know how ):
i'm sure there's a better method but you can just use .endsWith()
Java discord Lib?
here's a terrible solution:
let redditImage = ``;
while(redditImage.endsWith(`.mp4`)) {
redditImage = await api(subreddit)
}
async while?
or is it mime type
it doesnt really say if it gives headers or anything
unless im looking at the wrong lib
the real question, why is there a million reddit api wrappers?
is everyone actually that lazy
yes
yes.
Oof.
ffff
hello better server
thats the day im afraid of
I currently limit myself to just $100 a month for servers & other services to run my shit, so I also worry about that day
i'm going to soon be surpassing $100 a month
my vps provider is about to start providing 1tb of object/block storage for $15 a month, but for now they charge a ton for extra nvme space
so for now, i cant go past the space i have.
Yee, cheapest I've found is 10GB/$1 for Nvme, not that I've really looked around atm
does anyone know how to disable firefox's new weird security thing that redirects all POST requests on localhost to https (thus breaking it)
A smartass response would be to use Chrome...
I mean, it works
As for my personal response:
is that why I might be getting PR_END_OF_FILE_ERROR?
possibly, and yeah i've switched to chrome but it sucks
Well so, im using a GitHub page, but i dont want the ppl see the code, how can i hide it?
you can't
how is the browser supposed to display the site if you don't provide it the code to display it 
inb4 how to hide token????
didnt find any video that explains d4j so... im using jda
you can look at the code for any website
@solemn latch Not all
I know, but I actually think u guys were talkin about scrapping or something about that
excuse mua
can't find anything online about firefox's new dumb feature which bugs me
the saga continues: my index was deleting itself simply because the disk ran out of space
can't find anything online about firefox's new dumb feature which bugs me
@sick cloud hmm?
it redirects http requests on localhost to https @honest perch
which as its localhost, breaks it
yea
so i have a register form on http://localhost/register and when i click submit (which should POST it to the same url) it tries to POST to https
no it's not a plugin and wdym
already have
i'm not dumb, i get firefox, but there's nothing about this
no settings, no obscure forum post
just started last night randomly
apache config perhaps
what
where do you get apache config from a discussion about why firefox is breaking it
discord's role positions are ordered from highest to lowest right? 0 would be the everyone role?
just making sure
yes
^
thanks
hey tim do you have any idea about my issue
or do i just have to move to chrome for development now
also
how do i fix this
yeah, boomer
Im just joking 
found this for you, hopefully it helps [https://developer.chrome.com/extensions/contentSecurityPolicy#relaxing]
most sites throw a few errors when you visit them anyway, just leave it 
well, if the thing dnst load maybe cause any issue on his website, who knows..
everything works besides that when i do the ban command, everything happens like the dm sends and the channel message sends but it doesnt ban, i just copied the new features from the kick command and changed all the 'kick' to 'ban', the new kick commands work completely fine but the ban doesnt, the error is literally just this, doesnt give me any information at all https://cdn.discordapp.com/attachments/600424726531407882/744672394618077316/unknown.png
thats the line that wont work for some reason i dont understand why
the colors tho
yuh
internal server errors aren't your fault
it's at discord's side
damn
so theres nothing i can do
you can't do anything but to wait for it to resolve and possibly have a mental breakdown if you feel like it
hm ok
if its not fixed within the next couple of days i will actually die
is it possible to issue ssl for localhost
yes
at least with dotnet
im pretty sure the cert generated with dotnet works locally everywhere though
dotnet dev-certs https --trust
does discord.py also works on python 3.8.5?
wdym dotnet
I tried but I'm not sure
it's a part of .net core @sick cloud
nope
it's been around since .net core 2.0
well, yeah it's a part of it
just not exclusive to it
yes
wym
well to make a https server iirc http needs a public and private key file or somethig
yeah examples do
var key = fs.readFileSync(__dirname + '/../certs/selfsigned.key');
var cert = fs.readFileSync(__dirname + '/../certs/selfsigned.crt');
var options = {
key: key,
cert: cert
};
https.createServer(options, app);
so
the cert is probably for :5001
so i assumed i needed a key/certificate
yeah i've got no idea how well this integrates with other languages
on .net it works perfectly fine
https://github.com/FiloSottile/mkcert this might be of help
Starting in version 75, Firefox can be configured to use client certificates provided by the operating system on Windows and macOS.
Is there a way to recreate streamkit's discord bot to set custom and larger pictures?
someone know how to use case in discord.js
because i want to do a help command with reactions
no case
because i want to do a help command with reactions
this sounds like pagination
Him: 
case, like capitalization? 🤔
Halo
Hey devs,
I have a question related to You agree that your use of the Service will not include sending unsolicited marketing messages or broadcasts (i.e., spam).
I would like to add a "Use code CODEHERE in-game to support the bot!" Message that deletes itself after 10 seconds. The bots usage is specific for certain games and this code is provided to me by the game developers. I get a very small percentage from it. Anything I get would go towards keeping the bot online 24/7.
When someone does !invite (which can only be used in DMs), the bot would tell them "By using this bot you agree to receive solicited promotion in the form of a content creator code."
Would this break ToS? I see a lot of people do worse everyday haha.
ToS questions shouldnt be sended in discord support server? or mail supporter?
does anyone know how i can get my chatbot's status to say how many people it is talking with?
I guess? It's related to bot development and everyone here has bots that follow ToS, so I'd assume they'd be knowledgeable here.
well, probably most of the owners of a bot here dnst even read the ToS once or even know what it is
im sure only 20% here read the Tos
I mean, it depends on the library @grand crystal
Ah, I'm a server Admin so I have to know ToS
I'll try to ask elsewhere though.
what are libraries @earnest phoenix ?
okay then
Okay let me put it this way, it depends on the programming language you use @grand crystal
I swear everyone here uses JS, but never Python
lol
I don't know JS so you'll have to wait for someone who does, sorry
check your visual @regal tapir
go away
I swear everyone here uses JS, but never Python
@earnest phoenix Python is bae
I've been very happy with Python so far, aside from a few things
like what
Hmm
A language like C# can do a number of things better than it, for example it has Unity, & game modding is a lot cleaner than in Python @sudden geyser
Python also is kinda disappointing when it comes to desktop applications
More than kinda
Yeah there are some areas where X may be preferred over Y (the right tool for the job), but for me, I like using Python for simple scripts or when what I'm doing is not advanced
I tried tkinter for desktop apps and it was quite painful
PyQT is better, perhaps you should try that
Wym? @knotty steeple
Python also is kinda disappointing when it comes to desktop applications
Yeah I figured you meant that
Thats literally what the discussion is about, idk if you read up or not

Electron
just stop

swiftui has been fun but that's pretty much one platform only
ios, macos, watchos, tvos, that stuff
Halo guys
yeah but it makes writing desktop apps on mac very easy. simple issue is that's only apple so you have to do something else for other platforms
hey, so i tried some example code of ytdl core i found and implemented it into my bot.
the music plays fine and all, but after around 1 minute and 4 seconds, the audio stops. what could this be about?
const stream = ytdl("https://www.youtube.com/watch?v=p8vrRDLEg2Q&list=PLQppNW31XMyytTvTGfv0rFCfNU3pebctR&index=2", { filter: 'audioonly' });
const dispatcher = connection.play(stream);
that doesnt make any sense at all, i would prefer real answers.
that is an answer what are u on about
how exactly would i have been ip banned? by youtube? as i can listen to the songs by myself?
that doesnt make any sense at all.
that is the only reason i would know unless u can keep on playing it but it always stops after that time
who else would u get banned by? vimeo?
then please dont write anything about that topic. its just spam at this point.
@sudden geyser swiftui is good if you want 10.15+
I'm on big sur and it makes 10.15 look smol
but I'm still gonna use storyboards no matter what
they're much cleaner imo
and swift has terrible support for them
so I stick to objc
@sudden geyser
I don't have much experience in storyboards sadly. Isn't that like with pages where it's done visually with minimal designing from code
you design the ui in the storyboard file but all the logic takes place in the files
you can still add elements from code
but it mainly takes place in the storyboard file
how do i dm a specific set user
user.send()
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”).
how can i disable this, to let me use local scripts
ie <script>...</script> in the html
^ has to be an actual User class
if you have a message from this user, it would be
message.author.send()
if you wanted to get the user, youd have to get it from cache, or fetch it
quick question
in a switch
its default: yes?
im tired and i forgot how to use js
That's what it is in oop typically
csp is really really dumb
Its Ask for Help timeee
xDDD
So euhhh Im trying to make a modlogs command with Discord.js and MongoDB
but I have no clue how to make it
idk if i should use an array
and if so how to use it
or. like idk im very confused ;n;
I mean, read the js docs and try and work on it.
We cant
here.
I can't really even tell what this modlogs command is supposed to be
basically it takes bans, mutes, kicks, warns, and reports done with my bot
and logs them into one place under a user
so you can do <modlogs @sweet ruin and get all infractions and modlogs against that user
if that makes sense
save warnings under the users
no
oh
i don’t think an array will work
oh okay
Mongodb supports arrays of objects
you’ll probably lose a function that bigger bots have
idk much about mongo though so yeah
hm Okay
hey uh does anyone here use postgresql?
well
it's more of a question of how
i can extract data from the database in dpy when the data isn't an int or slice
So if your table was
_id <ulong>, Bans <string[]>, Mutes<string[],...
trying to extract the invite code
{afterThing['invite_code']}
but i keep getting the error
TypeError: list indices must be integers or slices, not str

Undefined variable
But i never use slice in my code 
Then something is configured wrong or was instantiated incorrectly (unless it a bug) for a discord.js object
Probably djs or djs light bug
Already dm tiM
im getting issue with TypeError: TypeError: redeclaration of var Client, im not sure wtf is causing it
I don't have any variables called client
using eris if relevant because discord.js isn't compatible
Are you sure you dont have any variables named client?
Hmm, weird.
the code is running on the rhino engine or whatever
and not js
const Eris = require('./node_modules/eris/index.js');
is the line I get the error on

Eris has something called client iirc.
require("Eris")
Oh
I have to specify exact file
Minor mistake nbd
I mean its understandable considering that would normally work
"use strict";
const Client = require("./lib/Client");
function Eris(token, options) {
return new Client(token, options);
}
hmm
maybe if I remove the strict mode it would help
🤷♂️ let's hope
nope
Anyone know how to add an image generated with canvas to show in an embed?
Right now I do
message.channel.send({ files: [image] }), but I don't know how to add it into an embed
You upload it into a erb
What's an erb sorry
Web
Preciso de um sistema de anunciar tipo #anunciar para anunciar para todos os membros do ds como faço, eu faço pelo dbd discord bot designer
Version Inglish
I need an #announce advertising system to advertise to all ds members as I do, I do it for the dbd discord bot designer

Sorry
Ds > Discord
Web
@earnest phoenix It's generated inside the code tho
So it changes depending on the user
Wait lemme check
way of speaking
okie
Saber
The .setImage require url
So you have to save the canvas as png file, and upload it to webserver, and get that image url
And put it in .setImage
okay thx
Np
can someone help me make a function that just sets the first character of a string to uppercase
just use <String>.charAt and .substring
@sick cloud i can
let str = "ihihuwiqiw"
str[0] = str[0].toUpperCase();
Eay
Easy
That mutates the string though 
Oh lol
actually I may be dumb
Nah m8
yes, but it can seem clunky
Someone can left me a tip how to create a bot at mobile?
I'd avoid it tbh. you have far tools to work with
Tbh?
to be honest
Dont use glitch
They suspend project that host discord bot
But theres a risk duh
What apps you guys recommend to create a bot at mobile?
And glitch ban pinging
any reason to use other libraries over discord.js?
And glitch ban pinging
Ops
dbd
@earnest phoenix yes
like eris
use that one
get a pc and code on it @dusty tulip
@worthy glacier djs-light eris, kolas thingy
@worthy glacier depends on how big your bot is
ehhh
eris is good for big bots
ok
why
get a pc and code on it @dusty tulip
@sick cloud the problem is, i dont have pc
@dusty tulip to be honest, its easier to mke a bot on pc
buy one
most of them r 15 secs long
buy one
@sick cloud dont have money
you can get a laptop for cheap
@sick cloud dont have money too
Most discord bot maker app are garbages
ask your parents then
Most discord bot maker app are garbages
@earnest phoenix 😮
Mobile
@sick cloud why is eris better for larger bots
you're not on mobile
Phone lol
Mobile legends XD
You also have steam lol
@sick cloud do u seriously think that everyone has enough money to get a pc?
@worthy glacier eris uses a lot less ram
You also have steam lol
@earnest phoenix bruh i dont use the steam btw XD
Djs light use less ram then djs
ah
eris is a library
whats djs light
a lapyop is notba pc
Djs but without cache
no

hrm

what is this ?
}
What do you know the solution?
Show me full error and json data
ok thanks
Anyone know about the npm module slappey?
if i have a dd/mm/yyyy string can i turn that into a new Date sort of date somehow
-faq 1 @earnest phoenix
@earnest phoenix
then why are you still asking
😅
"Bot development does NOT start with adding your bot to https://top.gg/"
That
So are you asking how to make a bot or how to add one onto the website?

Hi, im trying to create a covid command but i have this error saying NovelCovid is not a constructor
I got some good covid code
Oh
I got some good covid code
@earnest phoenix no spoonfeeding please.
Yea, do it.
const Discord = require("Discord.js")
//const fetch = require("node-fetch")
const { NovelCovid } = require("novelcovid")
//const api = require("novelcovid")
const track = new NovelCovid();
module.exports = {
name: 'covid',
description: "check the virus info",
async execute(message, args) {
if (!args.length) {
return message.channel.send("Please provide the name of the country")
}
if (args.join(" ") === "all") {
let corona = await track.all()
let embed = new Discord.MessageEmbed()
.setTitle("Global Cases")
.setColor('RANDOM')
.setDescription("Some cases may differ in each country")
.addField("Total cases", corona.cases, true)
.addField("Total Deaths", corona.deaths, true)
.addField("Total Recovered", corona.recovered, true)
.addField("Today's cases", corona.todayCases, true)
.addField("Today's Death", corona.todayDeaths, true)
.addField("Active Cases", corona.active, true)
return message.channel.send(embed)
} else {
let corona = await track.countries(args.join(" "))
let embed = new Discord.MessageEmbed()
.setTitle(`${corona.countries}`)
.setColor('RANDOM')
.setDescription("Some cases may differ in each country")
.addField("Total cases", corona.cases, true)
.addField("Total Deaths", corona.deaths, true)
.addField("Total Recovered", corona.recovered, true)
.addField("Today's cases", corona.todayCases, true)
.addField("Today's Death", corona.todayDeaths, true)
.addField("Active Cases", corona.active, true)
return message.channel.send(embed)
}
}
}
Ok
How about this code
read the docs of novelcovid
Did you installed NovelCovid?
Hm
yeah
ok
Delete this.
do not spoonfeed @earnest phoenix
😂
It's in the module
here is docs https://www.npmjs.com/package/novelcovid
Hmm
That was what i installed
NovelCovid class doesn't exist (according to docs)
This right? npm i -s novelcovid?
@earnest phoenix yes
If you read the docs correctly you see how to define NovelCovid
Oh okay
just make sure to add it in the main file const covid = require('novelcovid');
Or that what I send.
Hmm i have the same error
just make sure u define it the right way
i can give u my covid code
if u want to use
¯_(ツ)_/¯
Yes please
No spoon feeding again.
wait
No
um ok
e
Rule 7 a.
Okay so i have the same error after putting that line
show error
NovelCovid is not a constructor
remove that line
But you deleted the old one?
If i deleted the line where it says const track = new NovelCovid();, it will say track is not defined
first define it in ur main file
Why „track“?
¯_(ツ)_/¯
You won‘t need track if you read the docs.
Cuz i have this line: let corona = await track.all()
const track = new NovelCovid();
use this
const { NovelCovid } = require("novelcovid");
const track = new NovelCovid();```
You won‘t need track if you read the docs
wait
Yea, you don‘t need track.
https://www.npmjs.com/package/novelcovid please read this.
So i can remove this line: let corona = await track.all()?
what did you tried to send
Did you read the docs?
yeah
with bot*
birthday
oh
Hmm im not sure if im doing it right
@summer torrent where do u put the birthday date
what
const Discord = require("Discord.js")
//const fetch = require("node-fetch")
//const { NovelCovid } = require("novelcovid")
const api = require("novelcovid")
//const track = new NovelCovid();
module.exports = {
name: 'covid',
description: "check the virus info",
async execute(message, args) {
if (!args.length) {
return message.channel.send("Please provide the name of the country")
}
if (args.join(" ") === "all") {
let corona = await api.all()
let embed = new Discord.MessageEmbed()
.setTitle("Global Cases")
.setColor('RANDOM')
.setDescription("Some cases may differ in each country")
.addField("Total cases", corona.cases, true)
.addField("Total Deaths", corona.deaths, true)
.addField("Total Recovered", corona.recovered, true)
.addField("Today's cases", corona.todayCases, true)
.addField("Today's Death", corona.todayDeaths, true)
.addField("Active Cases", corona.active, true)
return message.channel.send(embed)
} else {
let corona = await api.countries()
let embed = new Discord.MessageEmbed()
.setTitle(`${corona.countries}`)
.setColor('RANDOM')
.setDescription("Some cases may differ in each country")
.addField("Total cases", corona.cases, true)
.addField("Total Deaths", corona.deaths, true)
.addField("Total Recovered", corona.recovered, true)
.addField("Today's cases", corona.todayCases, true)
.addField("Today's Death", corona.todayDeaths, true)
.addField("Active Cases", corona.active, true)
return message.channel.send(embed)
}
}
}
not sure
approximately how long does bot verification take?
https://hasteb.in/azokaqaq.cs why play my radio bot not music?
Any error?
@fringe axle no
Okay, das ist komisch. But yea we need to speak english.
Discord Down?
can some one help me with my code
Error:(node:12612) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'category' of undefined
anyone?
c.config is undefined
how to change the client status to dnd
@modest crane how to fix it
how to change the client status to dnd
@glossy elk library?
hi i need help with something
@modest crane how to fix it
check wherec.configis defined
can somone help me with a nitro point reward system
wha
Version 12.3.1 has been released!
This fixes 2 regressions that were impacting User#bot and the ShardingManager
The full changelog is available on GitHub: https://github.com/discordjs/discord.js/releases/tag/12.3.1
again?
I'm use Discord.JS https://hasteb.in/unazehus.js my bot is not playing my music stream is come "Error [VOICE_PLAY_INTERFACE_BAD_TYPE]: Unknown stream type"
again?
@delicate shore again what
thats 12.3.1
Como crio um site pro meu bot?, que site uso ou hospedagem?
Version english
How do I create a website for my bot ?, what website do I use or hosting?
vps
and knowledge
you can create it like by framework: react, vue etc. or with raw html5 + (s)css
VPS: https://galaxygate.net
Language / framework: Depends on what you know
GalaxyGate Hosting
If you know Python, then Django or Flask
check pins for more vpses, and https://contabo.com provides pretty cheap ones
German server provider | #VPS from €3.99 / mo | EU and US Locations available | 15+ years of experience | 70k+ happy customers | #hosting #cloud #infrastructure
My Brazilian
Best vps?
Can i code and host my bot using my phone I currently use bdfd
yes but not recommended
use something like termux, but still i recommend vps atleast
K I will use bdfd
what?
Best vps?
@earnest phoenix
Check pins
-vps
A VPS or virtual private server is a virtualized server instance run in the cloud. It acts like a normal server, allowing you to remotely login and manage it just like a physical server or computer. If you're looking for a way to keep your bot online 24/7, a VPS is a great option.
Having trouble choosing a VPS provider or don't know where to start? Click here for a list of common and affordable VPS providers.
Pick one that satisfies your needs.
Galaxy gate that is
case 'purge':
message.delete()
if (!message.guild.me.hasPermission("MANAGE_MESSAGES")){
return message.channel.send("I don't have permission to that, please give me `MANAGE_MESSAGES` permissions");
}
if(message.author.id != '723081690792067143' && !message.member.hasPermission('ADMINISTRATOR')){
message.reply('you dont have the premissions to use this command!');
return;
}
if(!args[1]) return message.channel.send("How many messages you want to Delete? (you provided none!)");
if(isNaN(args[1])) return message.channel.send(`${args[1]} is not a number!`).then(message => message.delete({timeout: 2500}));
if (args[1] > 100) return message.channel.send("Insert the number less then 100").then(message => message.delete({timeout: 2500}));
if (args[1] < 2) return message.channel.send("Insert the number more then 1").then(message => message.delete({timeout: 2500}));
message.channel.bulkDelete(args[1]);
break;
why its not working?
now?
Error code
no, there is no error
ok so
Change message to m when deleting it
I’d also assume you’d need to parse it
using parseInt()
K I will use bdfd
@abstract compass yeah
We are like best friends forever 
Both do the same thing 
how do i add an exclusion to the try for 'all'
@worthy glacier the keyword is finally
Use an if statement.
Yeah you can always use isNaN
ok thx
a non-empty string or a valid number. val=undefined```
const ms = require('ms')
const Time = ms(args[2]);
what the frick is this
That's undefined
args?
you can generate the error by doing some thing like require('ms')(undefined)
So args[2] is not defined
ty
there must be an error for what ur bot has crashed above 
@restive pebble im try to host using 2 heroku apps
Hey, is it an event when a channel is deleted?
Yes.
Ok.
How could I fire up the event. Or listen for the event in eris?
I'm currently using client.on('CHANNEL_CREATE', channel => { })
I don't use Eris, but I assume the docs would say something about that?
I see it already
?
I just can't find out how to get the event.
I assume the same as the Create event?
Tried it?
I tried.
Yes.
client.on('CHANNEL_CREATE', channel => {
client.createMessage('721349163123736636', `${channel.name} was created`);
});
I get no response.
nor error.
Eris has custom events based on raw events like DiscordJS.
Look documentation of Client
You can see events
or
Alright, I'll check.
https://abal.moe/Eris/docs/GuildAuditLogEntry
was checking this
client.on("rawWS", rawData
rawData is Discord's message
You can't use classes in this
client.guildMemberUpdate
Eris, a NodeJS Discord library
Right, got it.
yes
Thanks!
@earnest phoenix how'd I get the data from it though?
If it says It's not a function.
all events is function
@pine aspen it's js client.on("event name", (params here) => { //function here })
@fickle dune > heroku[Worker.1]: State changed from up to crashed
@fickle dune
Heroku is not free, you clearly used the free version and you ran out of your processing power that you are given monthly
heroku isn’t even meant for bot hosting
It's cloud computing, it's for whatever you give it to do
I ditched heroku and bought myself a Raspberry pi which I now use to run my bot
It's very unreliable agreed
Since I'm kinda poor hence GCP Free Tier is used xd
I use heroku and for me it has been perfect
Imagine using a free host for your public Discord bot anyways
As long as you don't use over 500mb ram
xd
Heroku nor Glitch are a valid option for me 
@placid iron yeah when my code was light it worked fine, then when I got more commands I bought myself a raspberry pi to run it
I wouldn't use herokus paid tiers because they seem quite expensive
@neat harness what do you use to host
I would need to setup kuberneters across 15 Glitch projects to make it work
@neat harness what do you use to host
@empty wind GCP
Never heard
Google Cloud Platform
@empty wind yeah, for my quite simple bot it works quite well though
might be off-topic but Heroku is good for small bots unless you use a db which might get a lil bit complicated
Google Cloud Platform
Hmm
The GCP Paid Tier is expensive af
Yeah for small bots Heroku works just fine
I assume you're using the $300 free credit you get
Me?
What does the free tier provide again
Which is basically monthly 614 MB ram Vm Instance
Oh I see
I used up the $300 last year
Same here, but after that was done I switched to a paid VPS @ Contabo
Just get a raspberry pi zero, costs 5 dollars
And now, I'm using my parent's credit card secretly :v
Congrats
🙂
Just get a raspberry pi zero, costs 5 dollars
Can't afford the bandwidth my bot uses myself
https://hastebin.com/ewucutinix.js my bot is not playing my music stream is come "Error [VOICE_PLAY_INTERFACE_BAD_TYPE]: Unknown stream type"
Raspberry pi tanks when trying to do CPU intensive things or uploading on my internet
Sorry, it was off topic
But for the ram you get it is good
Anyway, I host 3 bots on 624 MB RAM, not like anyone uses it anyway
but it needs strong connection
Well I guess
I have a pi 4, thing is a full pc, costs 50 bucks
LavaLink instance
is there a way i can check the bandwith in heroku
With a IPv6 /48 block
Daamn
58k guilds belike
Ips go brrrrrrrrrr
Lol
Technically after 5 days you can re use them
Still waiting for my bot to get approved smh
Just wait lol
Ik
Same, I honestly don't care days
Watch me get denied because it was somehow offline
Tbh I just hope I sort out branding before it gets accepted because I'm kinda confused atm
Same
@empty wind oh u mean in dbl
DBL?
This
accepted in dbl
Is dbl
wth is dbl es em ech
wth is dbl es em ech
@winter basalt
?? Spelling ??
cuz discord doesn't care if your bot is offline it will accept anyhow
Oh discord bot list
...........
dotpost
How do i change the id to a name?
Do user.username
You can't mention users anywhere outside of field values and descriptions of embeds
@earnest phoenix you need to get the username property of the user class
like
message.mentions.users.first().username
Oh okay
const user = message.mentions.users.first() || message.author;
I have already done that
then just go with user.username
okay I will try
.setTitle(${user.username})
me?
Yes
oh is it bad
Of course
You're not explaining anything and just giving them code
Which is bad and also against dbl rules
Also for the emoji, can i just copy and paste cuz i know i can use emojipedia for python but im not sure about js
Yes
Okay cool!
Emojis work anywhere on discord
Cool!
Not sure about custom ones inside embeds
That's fine. I just get them from emojipedia
Cool
Btw is this emoji gone?
nope
But it seems that i can't use it
Yoir pc can't display it
But it will work inside Discord
Oh so i can just use it?
I need help
With what
at end is }
wtf
TJAT MUCH FREAKING FIELDS
fields can have content you know
ohh
And wrong syntax
Yoir syntax is wrong
@earnest phoenix wasn't trying to spoonfeed or something but that's how i started to understand coding, by seeing how it was done
???
but is not in pic
Tf
bad
embed constructor bad
Outdated
Nope
waste of code using embed builders
I have the korrekt link
waste of code using embed builders
imagine using constructors when you literally do the same thing
Constructors are shorter
wrong
Not wrong
Both examples are there ¯_(ツ)_/¯
{embed: field{}}
shorter than
let embed = new Discord.Embed();
embed.Addfield();
Does it impact anything else besides space?
you get the idea
builder is waste of time
calling constructors and methods when you can simply build the object yourself
Thats one field
let embed
embed.filed = 'this'
But for multiple ots shorter
which is the same that you builder is doing
Why are you arguing about a personal preference
If someone finds constructors more readable, so be it
Hey
I am trying to make my bot online rn but I write all the code right, then I open Terminal I type node . but my bot is not getting online!
Could someone help me pls?
Any error messages
Wait...
idc about preference, just teaching that using embed builders is a waste
at least give them both options
even if nanoseconds, declaring a object manually is more code friendly rather than calling those functions using a builder
which ends up doing the exact same thing, its called redundant @cinder patio
{embed: field{}}shorter than
let embed = new Discord.Embed(); embed.Addfield();
@opal plank bruh how do you write these
I never understood
The module wasn't found
🤣
embed objects?
Also use a screenshot software omg
@opal plank yeah
<user/channel>.send({object})
Ok thanks
heres example @latent fog
@latent fog
@honest perch
Module not found
Module?
@opal plank I know that bruh
install module
this makes it so you dont have to declare a variable beforehand unless neded
https://discord.com/developers/docs/resources/channel#message-object this is the documentation about the message objects
Wdym module?
bruh
ah I am having brain aneurysms again
it will be writtenn up
then whats the question @latent fog ?
Wdym module?
@earnest phoenix package
OOOH you mean code blocks?
```js
/js code here
```
u know js? @latent fog
those are 2 different
//code block```
``forgot the name of this``
🤣
@opal plank he came for fun
figured
Bruh
he thinks he can make bots via
Not for fun
Discord Bot Designer
Who?
lakshya
He is live don't ping him
technically im live but not really
O
its the bot thats live and updating my presence instead
oh nice
can u find the loop holes of my bot
without using a software for livestreaming
But one should not ping one unless/until he/she has asked his/her question
i mean i dont mind, i got over 300 servers total in my accounts, if you dont ping me, you likely wont be answered
sure @weak rain , got a test server or something?
support server
https://i.imgur.com/aOi5c5N.png centos 8
Oh
@weak rain dm me
lel
ohk
anyone know the regex of roles mentions
i use this ```js
(/<@!?(\d+?)>/g)
but it only works with users
@stuck scaffold install make
@dreamy cedar replace the !? With &
how
@dreamy cedar replace the !? With &
@golden condor thank you so much
Np
yum install make
<@&role id> is a role mention
Wdym download module
@wary flame ^
Pls explain cause I just learnt how to code
npm i <module-name>
Full error?




