#development
1 messages ยท Page 1588 of 1
i wasnt sure if i could
Its this selector right
.bot-card
like adding a background img?
yes
as far as i know you cannot change the card with css code or smth, just edit your bot and there's a section that asks for imgur link for your bot's card
are external url links not supposed to work in iframes put in the bot description?
Im a little confused on where that is at
on your bot's edit page, right after tags section
https://i.imgur.com/qtubOIT.png
oh i see thank you for the help
anytime ๐
-botinfo 743292394237329440
743292394237329440
SMUGY FUGY
1928
A bot to make your life with moderation on Discord.com easier than it ever was. It has many commands and is really good at helping mods.
undefined
++
1
0
No server count
@quaint wasp
looks like they work with target="_blank"
๐
please use #commands for that
alr.
Once again im back where do i change the icon for the bot
I got this as my blacklist code:
And I get this error:
TypeError: command.run is not a function
well looks like your command doesn't have a run function
i guess it's because you're using client.aliases.get
I just cahged get to cache
which probably returns a string, am i right?
yes..
a string doesn't have a run method
client.aliases.get(something)
so you get a string
which doesn't have a run method
hence "command.run is not a function"
its a command tho..
a run method is not going to magically appear on the string just because it's a command name
Then how do I see if a member that is blacklisted ran a command?
bruh
check to see if that user.id is in a database of blacklisted users
and if they did run a command, you can just return and not run anything after that
But how do I ditect if they did ran one?
if (message.author.id == "id");
Like..
use ===
check type too
never hurts to
If the typed ++help
Why would you ban someone of using the help command?
ok then if they run the command, all u gotta do is check if the message.author.id is the one running the command
exactly what nickname did
I would ban them from using all commands.
but the id is in the database...
alr.
then u need to get it from the database
prob using a path to the file or a require if ur using mongo or smth
I am using mongo..
Then check if the author's id is in the database
^
get the database
check if message.author.id is in the database
and if it is, then you just return so it run anything else within the command
Return
bruh
I got this:
const blacklist = require('./models/blacklist')
if (!message.content.startsWith(prefix)) return;
blacklist.findOne({ id : message.author.id }, async(err, data) => {
if(err) throw err;
if(!data) {
if (!message.guild) return;
if (!message.member) message.member = await message.guild.fetchMember(message);
const args = message.content.slice(prefix.length).trim().split(/ +/g);
const cmd = args.shift().toLowerCase();
if (cmd.length == 0) return;
let command = client.commands.cache(cmd)
if (!command) command = client.commands.cache(client.aliases.get(cmd));
if (command) command.run(client, message, args)
} else {
message.channel.send('You are blacklisted!')
}
})```
and I cant think of anything else.
I'll go to sleep...
see ya in the morning... I hope.
Dude
...
@opal plank thats quite a few unmarked files https://million.is-a.computer/files/dWPPIEA2OYusXsjb.png
@crimson vapor indeed
you been working for a while?
when it comes to data, im probably some of the biggest trackers here
i track almost everything the bot produces
and im going to be adding more
since i changed lib, i can query some more stuff now
like each shards individual time avarage to startup
and a couple other things
@crimson vapor indeed, i made a lot of new files
is there any reason to use external sharding over internal sharding with 1 core?
a couple actually
by splitting the shards, you split all the processing power, this prevent from overusing a single processor
lets say, you have all 2500 in each shard
and you doing intensive stuff like image generation like i am
in the single shard, you'd be using all shards into a single core, that would be your bottleneck, since a single core can only do SO much
in the latter, when you shard into multiple processes, you will be splitting each 2500 chunk of guilds(shard) into differnt processes
so when a guild requests images, simultaneously, you'd be processing stuff on different cores/threads
so you wouldnt bottleneck a single core
thats the basic gist of it, theres a couple more advanced features you can abuse of by having a multi core bot, but thats as far as you'll need to understand them
Ahh my bad, I mean that I only have access to one core for now
Sorry
But that's interesting I'll keep it in mind if I decide to scale up my servers
remember, you dont NEED to shard until you get to 2500 servers
Right
But I'm nearing it
So i'm just wondering if there's any reason not to internally shard
though sharding is good for either intensive stuff or a lot of server count
I'm not doing any heavy work, just querying a mysql db
theres none, unless you wanna split the workload to make sure you arent bottenecking 1 shard
np โค๏ธ
<3
im also getting awfully cvlose to sharding
well, i did shard
but im getting close to being required to shard
erm, how many sevrers
road to 1900
in 2 months
dam in 2 months
impressive!
mine's rather slow and sitting at ~1300... but when i get there i'll get there
you got some room to breath then
how do i get a webhook secret
yeah... believe it or not i used persistent arrays to store all my user data at one point... once i realized i had to shard i spent a good 20 hrs refactoring my entire codebase to use mysql LMAO
rip
const client = new discord.Client();
const alexa = require("alexa-bot-api");
var chatbot = new alexa("aw2plm"); //free access key for Mewtwo Machine channel (provided by CTK WARRIOR)
client.on("ready", () => {
console.log("Ready for chatting!| Bot by 0_0");
});
client.on("message", async message => {
if (message.author.bot) return;
let content = message.content;
chatbot.getReply(content).then(r => message.channel.send(r));
});
bot.login(token);
OOF
if you ACTUALLY got a problem with developemt, post it
again
otherwise keep it to yourself
ok
by deleting the bot from queue and readding it to queue
Check if the server has a set channel for bots messages > if true > get the channel id > message.guild.channels.cache.get(channelID) > send the message in there
to set it us soemthing liek quick db
this is assuming you;re using javascript
right
i only want a super simple thing for my server lol, so id prob just match strings
but thanks for the hepl
what
-botinfo 767624993507901470
767624993507901470
Atla
8495
An all-purpose bot with powerful moderation tools, giveaway hosting and an EXCLUSIVE Demon Slayer game ! (Many more features coming soon !)
undefined
t
85
40
59 Servers
@crude light
oops
how did you do ?
@earnest phoenix sdk
https://discord.com/developers/docs/game-sdk/sdk-starter-guide i started it and a bunch of other people took the ride lmao
Integrate your service with Discord โ whether it's a bot or a game or whatever your wildest imagination can come up with.
kinda sad people are copying it but okay
I can proudly say I was the first to copy it
and jade the next
meh its fine, as long as its not blatant copy its fine, i didnt develop the SDK, i just brought the idea to ad the bot in status with it
lol
inb4 a server thinks someone is self botting and gets banned
kekw
i already cleared with some discord devs
i had some people in my dms claiming it was mods
its not selfbotting you don't even use a token you use a client id
lol
lol
well that user isnt 100% a staff member lol
thought most people using RPC and not SDK, and RPC is depreacted
staff on the server yes
nono
Enterprise IS staff
he's one of the most active in ddevs
he and advaith are prob the most active
bunny active af too
you say discord staff as if they are an actual discord staff member
close enough
i dont think they are actual employeed, but idk how the hierarchy works interally
Ya they are
advaith isnt employed, but he's not mod either
Oh
Enterprise is only a mod, actual discord employees have the admin role
yeah, still a big figure in regards to it though
the point stands, i've had some people call me out in dms telling me i was using client mods cuz of my presence
yea
Client mods can only seen by the client, lmao
i had to go there to clarify
ยฏ_(ใ)_/ยฏ
cuz apprently me pointing the docs out wasnt enough
its that small of a feature
people are too thick in the brain to realise
theres barely anyone using it
thats why i still get a bit protective over it
i've ever only seen 2 people use it
advaith being one of them
so when i see people using it to advertise bots like i did, i kinda get a bit bummed out cuz it takes away the uniqueness
lol
If I had a bot to advertise I would probably do it too
Poggers who
Lol
I'll prob get stuck halfway through
ฮจ
Why doesn't the HTML <style> tag work on my description?
lol
@opal plank is the team part necessary in the sdk part or optional
optional, SDK can be run with any clangs
and you dont need to verify either
you can run it locally and still get the presence
just dont copy my status and we clear

my ego wont screech with people advertising their servers
The server and user count?
just generally advertising bots in status
dont think there has been an instance of that happening before me
with SDK at least
Odds are there probably was but you just didn't see it
indeed, but im in quite a fwe servers, most of them are huge
better for his ego
specially on my alts
lol
there were very few people who used SDK for presence like this
and to find someoene who was advertising bots ontop of it was a rare find
yeees
but like i said, it was mainly my ego talking there, i personally dont like people copying me, but im also old enough to understand nobody is unique as long as its on the internet

im not that big of a crybaby
@slender thistle bean them
kekw
tbf Erwin, MultiRPC is blowing up because of it now 
and ego kicks back in
even tho its deprecated
LMAO
yes
legit tho luke?
and i think Builder is planning to move anyway
HAHHAHAHAH
im fairly certain discord will remove it in the future
i DID use stuff for that in the past
yea but even then
i used both RPC and SDK
he'll prolly move to the SDK soon enough
SDK is current, but i used RPC before it was deprecated
https://youtu.be/elOt6da_eiM (client mods warning)
Basically this is a sneak peak of what i've been working on telling about what this project is about. Please feel free to comment your opinion on it, be it good or bad. Thank you
i used to make rich presence for some games without it
uh oh
also, thats blatently ads, if someone doesnt like it, just let me know
but its on topic
just wait for someone to do a youtube tutorial on how to advertise ur bot in ur rich presence
or status
whatever you wanna call it
@opal plank i dont think people will stop calling it RPC
k I give up already im too lazy lol
still technically rich presence
wait im gonna hit up a youtuber I know who likes to do clickbait to make the video for me
hehe
i think so too, but the facto is, RPC IS depreacated
i used to mess with rich presence a lot before i messed with bot development
so its an area im familiar with
I mean technically its not, client side wise since the SDK uses the same front end elements, it just uses a different backend now
using the sdk seems like pain
its called Game SDK for a reason
its not nearly as bad as you think
lol
kekw
its supposed to be used for games
not for some skid to advertise his genshin bot

though i made good use fo it
sdk, no
well
technically yes
you can use napi to use c langs
@quartz kindle might be able to help with it
he constantly uses napi for his module
@opal plank shush and come cuddle with me instead
Looks like there is a module for it https://github.com/open-unlight/node-discord-game
what about meeeeee
I see how it is
https://discord.com/developers/docs/resources/channel#create-message how should I do the form data for this
Integrate your service with Discord โ whether it's a bot or a game or whatever your wildest imagination can come up with.
Hi i have a bot that has recently seen a boom and crossed the 100 servers.The commands are behaving a lot slower.Will verification and whitelisting solve the issue?
I dont see any issue at server end where cpu usage is around 30% on an average.
just ask
30% is pretty much for such a small bot, you definiently have some performance bottleneck in your code.
my bot which is in 20 guilds and has 5 shards (don't ask why) uses only like 1-2 percent of my ONE vcpu
i think it's about internet speed or RAM. as i know, your bot won't be slowed down if it's not verified yet ยฏ\_(ใ)_/ยฏ
Your code is definitely doing something weird if it's slowed down with the guild count
ram? rammmmmm? it should not be problem even with 100 guilds
Are you doing any heavy processing?
RAM ain't the problem here, I'm prone to believe
it depends on your bot's feature, mine can reach 800mb only in 150 guilds.
Hello
Its a music bot
I need a good host and the host support github
oh then it's normak
you just need to buy better server and optimize your code if you're using your own implementation
I dont think so because i have checked server stats and its no where near to the limits
music bots need cpu power
yes
ยฏ_(ใ)_/ยฏ
Yes need to check that and i checked cpu it hasnt gone beyond 40%
what about internet speed
on debian based distro: sh $ sudo apt install speedtest-cli $ speedtest-cli
hosted on vult.com -Ubuntu 20.10
2048 MB RAM
ya cool ..thanks
cache.get?
message.client.queue.cache is undefined
no because you can't get a property of undefined
how do you define message.client.queue
maybe you accidentally added cache?
why did you add it
check how you defined it
like feud said
queue no cache?
that's not how you define message.client.queue, though
ask your code
you coded it
You would know what message.client.queue is if you coded everything by yourself
so either you need to show us the part you created the .queue
@summer torrent so, I found out why the commands didn't work. Apparently, it was because I was running 2 functions at the same time to check whether to run a staff command or a normal command, which apparently the dedi didn't like (it worked locally). So I made it so that it'll only run the normal command handler, but if the normal command doesn't exist, it'll try running the staff command handler instead, which made the normal commands work on the dedi but not the staff commands, which still worked locally. I get no errors, I even tried to force an error by doing throw new Error("test") where it's supposed to go, but that literally did nothing, I didn't receive any errors from that either, so apparently it doesn't even try to enter the staff command handler, it still only returns whilst working locally with the exact same code.
if (!command) {
try {
var { staffCommandHandler } = require('./staffCommandhandler.js');
staffCommandHandler(client, message).catch(err => {throw new Error(err)});
} catch (err) {
throw new Error(err);
} finally {
return;
}
}
or we can't really help you
love that var
vars are for boomers
๐คฆ
well simple solution: show us your main bot code
uh are you sure the bot and your local are on the same code (restart your bot)
I am sure yes
the dedi automatically pulls from the repo and restarts the bot whenever I push
i can show u the whole file
and if it wasn't loaded
bin it https://paste.mod.gg
also I dont recommend using var unless you really need it, it causes some weird scoping issues at times thats super hard to debug
I've been using var for ages, never run into any issues with it
Check where you defined your client
That doesn't mean you should always use it
ah well then you'll likely need to do some debugging, it could be some issue higher up in your command manager or even command loader
I mean, the var isn't the issue
yeah it may not be the issue
I literally tried to throw an error to see if it even went into that part of the code when on the dedi
and it doesn't
it doesn't enter the try
which means theres some problem even higher
also dont mix sync and async code
it works perfectly when hosted locally, but then on the dedi, it doesn't
all my code is async
uh, in the code you showed earlier there is try catch which is sync and .catch which is async
I see, well, that's one thing, but the thing is that it doesn't even enter the try
but I suppose I'll try removing the try catch
seen as the command handler is already async
yeah so where the client.queue = part
and that didn't make any difference
which means there some other issue higher up the hierarchy
no, I'm asking what is client.queue
where is it created
the list
Is there a way to get if a user accepted the Rule screening?
library? e.g. discord.js, discord.py
discord.js
Hi I am new๐
How use glitch.com
just check the line 33, there's unfinished json term
@earnest phoenix ok so I just checked, the membership screening is available only in master
apparently I messed up the capitalization of the file, but it ignored that locally
so that makes me even more confused
on why it ignored the capitalization locally
so either you need to change to master branch or use the hack here: https://github.com/discordjs/discord.js/issues/5163#issuecomment-752865883
Hi, does anyone please know in what form I should put the channel ID in the message?
okay thank you
[#development](/guild/264445053596991498/channel/272764566411149314/) ?
Thank you!
const Discord = require('discord.js');
const client = new Discord.Client();
const config = require('./config.js');
client.login(config.token);
console.log('im ready!')
app.get("/api/bot-data", (req, res)=>{
res.send({ members: client.guilds.reduce((a,b) => a + b.memberCount,0).toLocaleString(), guilds: client.guilds.length });
});
im trying to make member+server count web api but i got error "app is not defined" how can i solve?
Where's your app and express defines?
const express = require('express')
const app = express()
oh thanks
no worries
any pythoner knows how i could costum the header of a aiohttp request?
does anyone know how to make it so if you vote for the bot it dms you thanking you
You'll have to use the top.gg sdk https://github.com/top-gg/node-sdk
(assuming you're using node.js, for python see top-gg/python-sdk)
Note that the sdk only creates a middleware that you can use - it doesn't handle everything for you. You'll have to create an express server, and set the endpoint you want to act as the webhook at top.gg/bot/id/webhooks
Oki
How do u change the entire bot color page?
try to use .entity-wrapper selector for that
I want to create a discord bot that will write specific text when email comes a letter. Tell me how) And is it really possible to do it?
I looked in the documentation, found nothing.
I am writing in Python. But JS is fine too.
so you want to send a message to a channel when you receive an email?
yes
use ifttt
and a discord webhook
ifttt is ez to use
no coding required either
even available as app
or as a website
lol
OR if you want to do it yourself, https://developers.google.com/gmail/api/guides/push#:~:text=Pub%2FSub Limitations-,Overview,determine if they have changed assuming it's a gmail email
ifttt would be the easier route
you can't
yes
but it is possible
yes, through the audit log
you will need audit log perms for that
once the bot joins the server and does the guildjoin event, pull the audit logs and check for the entry
What I can do if my friend is doing some fake servers to make my bot get verified ? He doesn't understand that servers needs to be real
Joining / creating invites of a server your bot joined is a massive breach of privacy
Why try?
Discord will likely flag your bot for "suspicious growth"
How I can stop him ?
by just leaving the guilds that he invited ur bot in
if (guild.owner == ur friend) leave
Why try
const client = new Discord.Client({ fetchAllMembers: true, disableMentions: 'everyone' }); When I try fetchAllMembers bot didn't work does anyone have an idea (i have server members intent)
don't please fetch all members in any case
it just rips ur ram and processing power
and fetchAllMembers is removed in djs master and will be removed in djs 13
Hmm
does VPS give a domain?
no
some companies do, but most don't
you'd usually get one with web hosting, but not vps hosting
though some providers also sell domains
aight
namecheap is the cheapest way to get a domain
freenom if you want a free domain
is MessageEmbed defined?
no
Oh no, it isnโt lol
there you go, you found your problem
Who have code nuke for dbd / DBD.js
no
Dbd.js whatโs that LOL

Brh u didnt know what is dbd.js
F
Whatโs that?
Whatโs the full name for it
What do you mean by "nuke"
Whatโs the full name for it?
I need code nuke
dbd.js is literally a wrapper around discord.js so you just need to know what that is "in discord.js"
For my bot
Ohh discord bot designer?
Yed
LOL
no literally https://dbd.js.org/
Pretty sure nukes are against ToS if it's what I'm thinking of
@earnest phoenix
Ohhh, woah never heard of it
@umbral zealot nuke is like purge but 1 channel in 1 command
Like p!nuke
nuke
Ahh I see not bad
Ok so that's basically:
- Clone the channel
- Delete the old one
super simple
channel.clone().then(() => channel.delete())
literally that simple
How about instead of that you explain to us why what I just said isn't what you need?
using words.
He means like, it purges a full channel and then yea no messages left
Oh u all mean i said nuke is like word

No errors, just not wanting to reply
What this code u send
Use "purge" instead of "nuke" next time for that
yes, I said your run isn't part of the export
because the traditional definition of "nuke" in Discord bots is different from "re-creating" a channel
Yes, but thatโs how my bot works, all of my commands have run @slender thistle
U all mean i said nuke is like word ?
Every person is different when they talk about "nuke" that's why we had to make sure of exactly what you needed
But the only way to remove all the messages in a channel is to clone it and then delete it. This is the way.
I already gave you the code.
^^
Hi

does anyone know how to use react-switch on a ejs file?
Is code nuke for dbd
dbd is a discord.js wrapper, so it's the same thing
You don't define client anywhere
react-switch, as in, a thing for react.js ?
Sa
Ohhhh okay, lemme fix thanks!
๐
yea.. it s an npm module that is using react, but i don t really know how to use it... so yea
you can't use react.js things with EJS
That's like trying to use a nitro injector on an electric car
oh
nice analogy XD
EJS and react are completely different frameworks
(well if EJS is even considered one)
Seriously those are 2 completely different technologies. React.js is fully 100% front-end, EJS is a back-end template generator
So take your whole EJS project
And chuck it in the garbage
And start learning react.js
how could i get the statement of a switch button?
Oh yes Vue.js is absolutely great, too
i set*
You mean with EJS? You don't. EJS is back-end before it's sent to the front-end, it doesn't do back and forth interaction
We have already provided the code that will delte and recreate a channel
IF you want to know how to integrate that specifically into dbd.js, maybe just ask on their discord server
https://dbd.js.org/ , click "Discord" at the bottom
Is the code
yes
Oh k
Continuously asking here won't magically turn this answer into a full blown dbd.js command code - go ask on their server if you need that
sa
Hello.
Is it true that itโs not allowed to have a changing status, that changes every 5 seccons?
The maximum frequency you can change your status is 5 times per 20 seconds (approx. every 4 seconds); any faster than that is considered as Discord API Abuse.
If you're using that command to gauge statistics, you should add memory usage
also, change the Server: field to be Users:
Hmm why?
and also make creator dynamic
it's 5/60
the max frequency is once every 15-ish seconds
Integrate your service with Discord โ whether it's a bot or a game or whatever your wildest imagination can come up with.
don't think so
I read that the general rate limit for the Discord API is 10k requests per10 minutes
im fairly certain it is for the game sdk
the presence ratelimit was tested
it's around 5/60
I'm assuming that was done with a library that doesn't handle rate limits for you then?
don't know
Cool, just making sure. But yea it 5/60 sounds reasonable
from dapi
Discord's API rate limits requests in order to prevent abuse and overload of our services. Rate limits are applied on a per-route basis (meaning they can be different for each route called) and per-account performing the request
What
make sure that your presence actually changed
it's a gateway request so it won't error out
like a REST one would
Clients are allowed to send 120 gateway commands every 60 seconds, meaning you can send an average of 2 commands per second.
I take it that doesnt log the info logger
cuz you're just gonna hit the ratelimit and d.py is just silently re-scheduling it
Not quite because sending messages are REST
Huh? That's just what it said in the developer portal docs
I mean, there would be some delay in the requests if I was actually ratelimited, no?
no
no
it isn't a REST request
oh well I cba to set up a logger rn 
best way to test this is to track presence updates via an event
the thing is, it modifies its presence cache after sending the requests. So, the real presence doesn't actually change.
What's the name of the stars on the site, I think it changed and now my stars arent coloured
Those stars^
I dont have there name anymore or something
I thought they were .entity-header_star
But they ain't anymore?
Oh wait lemme ask in #topgg-api
More fitting
Idk im not on my laptop, use inspect element
I did but cant find them lmao, I'll keep looking then
Well I searched in the page
And the only thing with stars
Was my css
no where else did it specify stars
maybe I'll remove the css and see if it appears
Its
its a pain
they moved the class identifiers
So now its way more difficult styling
Hey yall
Told to come here to ask about hosting
Anyone have experience using VPS to host the bot and web interface?
A lot of people are but you're going to have to be a bit more specific in your question
Sure
the stars are so shit now 
Itโs a node.js bot to fetch RSS feeds only. Iโm also looking to host my website and the web interface on the same VPS
Iโm just not sure what my hardware specification should be
There's no real answer to that beyond "Whatever it needs" unfortunately
look for a VPS provider that you can grow with, start small, see if you need more power, upgrade if you do
I see
Iโm trying to be as cheap as possible since Iโm hosting it for my server only
still cant seem to find what the stars are called
I've literally hosted 5 bots + 2 websites on the cheapest ovh.com VPS so... I don't think you should quite worry about that right now
You have to use the explicit CSS selector
Iโm looking at 1 core, 2gb RAM and 1 mbps speed with 40gb SSD
not that you can change their color anyway 
So we can't change stars colours?
That is plenty of power
Might start with that as itโs the cheapest option for me right now
well
StarRating__StyledPath-sc-14c4h6v-0 rLJyx is your class
but you have no way of knowing if the star is filled or not
Thank you for the feedback, appreciate it
what are you guys even talking about, those stars definitely have colors
Were on abt making the stars custom colours
and in white
dum dum, we're talking about changing the stars
about the best you can do is just blindly override the css
and just hope no one questions why your bot has a 5 star rating ๐คฃ
Try editing said colours for those active stars without hard coding them so they can change freely as well as the stars at the top
F it didnt work
I'm pretty sure if I wanted to I could do this wihtin a few minutes of googling
let's see.
"How to change SVG color with css"
I was using this
<style> .entity-header__star{ background: -webkit-linear-gradient(0deg, #058BF2, #4AC3E8 , #00F2FF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.2; } </style>
But yk
๐
why do top.gg have to make it harder to customise... one of the 7 wonders of the world
there's literally a class="star" you can use
didnt work quite as well as was anticipating
so it's just .star?
Lol
that applies to all stars, if you want to change the fill it will fill it to all be filled, giving a invalid star rating
so you're 4 star bot will look like its 5 stars 
hence the pain
cuz we lost the active star class 
not entirely sure though why my yellow is being turned to transparrent

Can we litterally not override these vars
What?
you're right, sorry ยฏ_(ใ)_/ยฏ
Clearly there's a missing feature in the css for that

just poor css
aye!
we managed to override teh vars
Ooo how
No idea why the vars are diffrent for the two star sections though 
Go open an issue here: https://github.com/top-gg/issues
i cba
Well, suffer, then.
this site means vvv little to me lol
๐ก
:root {
--contrast-light: 255,255,255
}
.entity-header__stars > span:nth-child(1) > span:nth-child(1) > span > span:nth-child(1) > svg:nth-child(1) {
width: 20px;
height: 20px;
fill: rgba(var(--contrast-light), 1);
}```
should make them 20px x 20px with the changable color
see above
the opacity isnt changing though which is 
oh targeting the wrong thing
So where would I put my
<style> .entity-header__star{ background: -webkit-linear-gradient(0deg, #058BF2, #4AC3E8 , #00F2FF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.2; } </style>โ
In the mix
or should I just scrap that^
Okay nvm cant change the opacity without changing it for all stars
ffs
rLJyx, SFFgH
heres hoping these class names dont change
They will 
would suprise me
They literally will, they're dynamic.
some of the stuff is mindbogglingly enough
This is a web framework, those styles are dynamic and based on a hash of the styles or something
Thanks for the lecture lmao
which means any tiny change breaks them. If they're even stable enough between rebuilds of the site in the first place, which I doubt they are tbh
thats generally pretty bad in industry lol
No it's not. It's specifically a thing you don't like because you're trying to modify a style but that's the one place where that's a problem
In terms of generating dynamic websites using contemporary modern framworks, dynamic styles is extremely common.
Very rare to see dynamic css linked class names lol
Not in react, vue, and angular builds.
no?
You and I have very different experiences with web development then.
thats not dynamic styles though
they're just using random class names and linking it to some amount of css cuz derp
life was never simple
Well I did it but its white, I want blue, changing the rgb to blue breakes it lmao

:root {
--contrast-light: 255, 153, 0
}
.entity-header__stars > span:nth-child(1) > span:nth-child(1) > span > span:nth-child(1) > svg:nth-child(1) {
width: 20px;
height: 20px;
}
.rLJyx { /* Filled Stars */
fill: rgba(var(--contrast-light), 1);
}
.SFFgH { /* UnFilled Stars */
fill: rgba(var(--contrast-light), 0);
}```
this is it atm
change to what ever flavor you feel like
The review stars are
even more cancer 
mm ig the best way to not make the whole site css just janked is to make a new var and use that

yeah uhhh...
yeah
one might say
its a small issue
change the var name
to not override everything
my css is custom enough to where it doesnt really effect me
but you'll probably wanna change that
--star-colour or smth
alr
css .SFFgH, .bGrTHK { fill: rgba(var(--contrast-light), 0); stroke: rgb\(var(--contrast-light); stroke-width: 2px; }
oof
\
:root {
--star-colour: 255, 153, 0
}
.entity-header__stars > span:nth-child(1) > span:nth-child(1) > span > span:nth-child(1) > svg:nth-child(1), .star > svg {
width: 20px;
height: 20px;
}
.rLJyx, .cIdQeE { /* Filled Stars */
fill: rgba(var(--star-colour), 1);
stroke: none;
}
.SFFgH, .bGrTHK { /* UnFilled Stars */
fill: rgba(var(--star-colour), 0);
stroke: rgb(var(--star-colour));
stroke-width: 2px;
}```
veld gonna get a stabbing if those random names change
Although the css is changing again in a month so just prepare
Oh dope that one works, and yeah cant wait for another name change!
they change the names so they can watch us suffer looking for them
so i try to make a tag save system but i get 2 errors
https://srcb.in/MEAhuqO0Cr
what are the 2 errors
look in the sourcebin on the bottom
i only called it once
i dont see it twice
or more
how can i fix it bcz i just used it the same like a tutorial
can i see your tag file
nah
somebody else?
message.react() isn't working, but there's no logging errors either
Did u pass any param to it?
I did
await message.react('โ').catch(err => { console.error(err); });
maybe I don't need await, but that's not the problem for sure
Did u modify default intents for your client?
how can i access all these values in discord.py?https://docs.top.gg/api/bot/
Sadly idk what could cause reaction failure without errors, maybe someone with more djs experience could help u
yea, ty for trying
@outer perch maybe the code isn't executing?
IMAGINE
I just found that
๐คฆ๐ปโโ๏ธ ๐คฆ๐ปโโ๏ธ ๐คฆ๐ปโโ๏ธ ๐คฆ๐ปโโ๏ธ
I started botDev.js
where drip jolyne at
swapped xD
but bot.js has DEV's token
ah yes, development issues
cuz I wanna test the main one with the other's client
it's on purpose
o
locally, bot.js is tested with Dev's token sometimes
depends one what I want to test
ฤฑam Kodur
Can i edit the vote page of my bot
Hi, I've already asked for a name tag, but does anyone please know in what form should I include the emoji ID in the message?
No
You need both ID and name of the emoji
and use <:name:id> and <a:name:id> (for animated emojis)
Ok, thanks!
I made a tag system which add tags to new members on server. But sometime it doesn't work and there is no error message.
why did you make a new connection each time the command is used? and then never close it?
like this is also your issue.
i would suggest using one file to make your MongoDB connection and then export it either by attaching it to your client or by requiring it in each file you need it
So... I'm using SQLite for my discord bot, now I have a second type of bot wich basically is a minecraft bot and I need to access that SQLite databse in there, my friend told me SQLite only supports 1 session meaning I can't access the db from my minecraft bot, so he told me I'd have to make an API with express I looked up how to do it but it doesn't show how to access the API if you get what I mean, cuz I suppose that node-fetch isn't used to access an API the same system
Can anyone help me?
epic codes ๐
I want to create embeds in Module
But Idk how
i need help with translating python again, this is array indexing, right, what does the minus do
i'm taking a guess that it's accessing the array backwards
got it
name: "servers",
category: "info",
description: "Returns latency and API ping",
run: async (client, message, args) => {
client.guilds.cache.forEach(guild => {
const embed = new client.MessageEmbed()
.setColor("RANDOM")
.setDescription(`${guild.name} | ${guild.id} > ${guild.owner}`)
message.channel.send(embed);
})
}
}```
MY code
okay?
Error: (node:6332) UnhandledPromiseRejectionWarning: TypeError: client.MessageEmbed is not a constructor
you get MessageEmbed() from require("discord.js"), not client
So what do I need to change?
I learn new sorry :((
bro
the command idea is shite
imagine if you could access it backwards injs
dont display all your guilds
shit would break
Could you help me?
This is a example
name: "av",
category: "info",
description: "get Avatar",
run: async (client, {author, channel}, args) => {
let embed;
embed = new client.MessageEmbed()
.setColor("RANDOM")
.setImage(author.displayAvatarURL())
.setFooter(author.username, author.displayAvatarURL);
await channel.send(embed);
}
}```
require("discord.js").MessageEmbed
name: "av",
category: "info",
description: "get Avatar",
run: async (client, {author, channel}, args) => {
let embed;
embed = require("discord.js").MessageEmbed()
.setColor("RANDOM")
.setImage(author.displayAvatarURL())
.setFooter(author.username, author.displayAvatarURL);
await channel.send(embed);
}
}```
Like this?
try it and see
Nope doesnt work
(node:11740) UnhandledPromiseRejectionWarning: TypeError: Class constructor MessageEmbed cannot be invoked without 'new'
Right
right
can you try guessing the fix?
actually, you don't have to guess, try reading the error
@earnest phoenix i think #development message might help
Ohhh I think before that a new must go
Yes
Where to but? can you please help me just this once :((
that'd be segfault in C/++ :)
that's why i like negative array indexing
const Discord = require('discord.js')
new Discord.MessageEmbed()
Is there a way to get a list of every server your bot is in?
Omggg much thanks
Can you also tell me how to get all the servers into one embed? @pale vessel
you dont
No, sorry
What do you mean?
its bad to do that
yep
no
Yes
@jade zodiac how to get Bot Developer roles?
oof..
make bot and get approved on dbl
If your bot is on too many servers you can't list all servers in one embed
@earnest phoenix
add me on your
never
5head
no
@jade zodiac please
๐
He's asking @jade zodiac to add him as an owner of his bot
@jade zodiac how to do that?
??
you have 3% i block you if you ping me again
how do I sent ``` inside of a code block?
\
I just use string.replace(/`/g, "\u200b`");
ty
is someone else having trouble with bots?
my bot isnt replying to any command i didnt change anything and there is no errors
ty
help needed
how can i add a .catch to my codes beacuse i get a rejection warning in the console every time someone runs a command
add .catch(fn) to methods that return a promise
ok
How to make Chat code?
you can log the error without having node to yell at you js method(something).catch(console.error);
name: "kick",
category: "moderation",
description: "kick user",
run: async (client, {author, channel}, args, message) => {
const member = message.guild.members.cache.get(args[0]);
if (!message.member.hasPermission('KICK_MEMBERS'))
return message.reply('Sie haben keine Berechtigung, diesen Befehl zu verwenden!');
if (args.length === 0)
return message.reply('Bitte geben sie eine ID an!');
if (member) {
member
.kick()
.then((member) => message.channel.send(`${member} wurde gekickt.`))
.catch((err) => message.channel.send('Ich kann diesen User nicjt kicken :('));
} else {
message.channel.send('User nicht gefunden!');
}
}
}```





