#development
1 messages · Page 1507 of 1
yes it does work, make sure you're calling this code after the DOM has loaded, you can use an event listener or put the script at the bottom of your <body></body> tags
for
What is that length property on instance.constructor
hmm not much of different
Why there's a huge difference for the first test.
what the fuck was the first test about?!?
Honestly it doesn't matter
its all same test actually :v
checking an array of string but loop 5 times to check the result
dunno why the first for is that high
i want luca's profile picture
oh is that it
yes?
idk man
no in pc it has the playing status
it merges with the blue color
and looks lime the earth
see it looks like this
luca clone 
wait so just that im correct
lol
you know how to use dev tools to edit a pfp
but dont know how to use dev tools to get the url of a pfp

no
i know
but
i was confused
cuz i coudnt understand
that it actually was a man
i thought they were clouds
idk seems a lil scientific name of a pig to me
thats y i wanted it
how to check if the bot can add a role to a user? djs
its the manageable property afaik https://discord.js.org/#/docs/main/stable/class/GuildMember?scrollTo=manageable
good don't know any code that could play this http://ice.abradio.cz/fajnnorth128.mp3?
why is it so hard to edit metadata for length tags
i make a embed but it doesnt fit right inside the embed so how can i make it wider
hey guys so the latency is too much and its messing things up
1k ping
i changed my server to US
so now players in asia
have high pings
i need help ;-;
somebody can help?
?? What do u mean doesn't fit
@crystal wigeon tell players to change server region to US
nvm i fixed it
oh kay
My bot is at 80% being close at getting verified
Hoe much time would it take mor
More
Lol it's at 80% still a week lol
No the entire duration from 0% to approved is about a week
So most likely only like 1 or 2 more days
Also this isn't really development related (channel is only really meant for asking for help with or discussing code) 

hey
i need help with this code
discord.ext.commands.errors.MissingRequiredArgument: role is a required argument that is missing.
that's not a code error
that's an invocation error
if you set role as one of the args
you need to provide it
use https://hasteb.in to upload the code
I think so
lol
are you having issues with the roleadd command?
you need to invoke it as [prefix]roleadd channel, messageid, emoji, role
you aren't providing the role
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: UnboundLocalError: local variable 'cursor' referenced before assignment
yes i am sorry you are right but now i discovered a new bug xD
ah
in roleadd
oh
wow now new error
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'builtin_function_or_method' object has no attribute 'execute'
Also, you should probably switch from a blocking lib if you want to make this bot be public, blocking will make the bot not responsive every time that a reaction is added, removed or the roleadd command is called, until it's complete
main.cursor()
Make sure to change that for all 3
Would using a token and an encrypted password be overkill for authorising access to my API, or would it be reasonable?
lol
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: type object 'reaction' has no attribute 'guild_id'
@olive rune XD
so reaction represents a payload object, right?
yea?
does it say which line the error is on?
Guys! How do i put my website like this one did?
iframe
f"SELECT emoji, role, message_id, channel_id FROM reaction WHERE guild_id = '{reaction.guild_id}' and message_id = '{messageid}'")```
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: type object 'reaction' has no attribute 'guild_id'
what is that? lol
Can you put type(reaction) just after async def so smth like: py async def blah_blah(self, reaction): print(type(reaction))
Does the error give a line number?
try doing something like guildid = reaction.guild_id on the line below cursor = main.cursor()
then use that
oh
@sacred trout don't use fstrings
then again, it's not really using user input
i will try in some time i was programming for like 3 hours and i am tired now
i wanna play valo xD
im playing mc
what is the function that is used to get Server Count on discord.py
this is what i have so far
@bot.command(pass_context=True)
async def botservers(context):
await context.channel.send("I'm in " + str(len(context.guild)) + " servers")```
please @ me if you can help
len(context.bot.guilds)
or just len(bot.guilds) would work as well
Redundant pass_context though
Also, use f string 😳
pass_context is required for some of my command. i know it is no longer needed but for some commands it throws an error that requires me to pass context. so i just keep it all the same, let errors and confusion that way
Huh, what error?
I mean sure the commands work, because Command's __init__ takes any kwarg, the thing is that it's doing nothing with invalid kwargs. So it's pretty much redundant.
https://pastebin.com/nxvNXmLg what is this
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
@willow mirage using javascript to change css is the most cringest thing in the entire 96,000,000,000 light years of the entire fucking observable universe
let members = message.guild.members.cache.filter(m => !m.user.roles.cache.some(role));```
why does this not work?
it used to work
just use a stylesheet
If you can learn js you can learn CSS. Just Google anything you need to know
so it just has to be m.roles.cache.some(role)?
tryitandsee
why do people use double backticks for inline code blocks that does nothing
who knows
now it's a typeerror: fn is not a function
idk there's no find in there
collection.some takes a function and you're passing a role
you're probably trying to do collection.has
yes
setTimestamp() if for embed
How to use class methods as generators in js?
if you're passing a raw embed object set the timestamp property iirc
Looking good?
._.
i mean, i agree to it
@tribal siren lemme check

dude, but i dunno how to use it
@tribal siren better?
like in css has no event onClick
And uh, guys
or smth like that
youre code is pure css with no events
How do I make so the uh successful deleted your messages delete in like 5 seconds
@earnest phoenix yes
then why do you need onClick event
CUZ THE BUTTONS
For events you can use js, but using js for all CSS is just inefficient
look at the buttons
this
if you are on PC
smh
I’m iPad btw
@earnest phoenix add a random collar color and a thumbsup gif to the embed
@earnest phoenix look at the nav bar (the link i sent)
@ shivaco
For events you can use js, but using js for all CSS is just inefficient
Ye, but I’m iPad that’s why it may look a bit lol
Cuz my brain just ded
What's the issue?
just put your event stuff in js but the rest and i mean ALL OF THE OTHER CSS in a stylesheet
stylesheets are supa easy:
selector {
propety: value;
}
Command raised an exception: AttributeError: type object 'reaction' has no attribute 'guild_id'
Yes, when user click a button it return onClick and js need to change text color when that event happend
that what i did
I'm on mobile, can you send the check method here?
who?
what?
no you used js for everything
Guys how do I Make a interval for 3 secs
setInterval(() => {
//code
}, 3000)
Thanks
.setinternal(3)
Right?
you can literally just put the elements in a command group like rules inside a div element that is hidden by default and make it visible when the user switches to tab rules
Isn't it reaction.guild.id rather than reaction.guild_id?
make sure you have no sql injection vulnerabilities in your code
do i change it everywhere?
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: type object 'reaction' has no attribute 'guild'
oof
my reactionmessageadd event does not trigger on old messages, I Have activated partial and the fetch
Sorry I've never used event listeners for reactions before. I usually just do client.wait_for() inside of a command
f
ok
▪▪▪▪▪
▪
▪▪▪▪▪
▪
▪
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: type object 'reaction' has no attribute 'member'
try looking up reaction objects in the dpy docs
reaction.message.guild? Just another wild guess
amma try
Lol
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: type object 'reaction' has no attribute 'message'
Hm
@slender thistle
Yeah, probably look up the docs of the reaction class and see if you find any useful variables there
dear turtle hater
some guy needs halp with dpy
Show your code
const client = new Discord.Client({
autoReconnect: true,
partials: ["MESSAGE", "CHANNEL", "GUILD_MEMBER", "REACTION", "MESSAGE", "USER"]
}); // this required to get the messages of the reaction roles
client.on('messageReactionAdd',async (reaction , user ) => {
if (user.partial) await user.fetch();
if (reaction.partial) await reaction.fetch();
if (reaction.message.partial) await reaction.message.fetch();
console.log(reaction)
``` it does not trigger on old messages, any idea why? ping me , when u have a idea
@earnest phoenix send what you're using to set the image
I enabled partials xD
i got it 
worked just now?
yea
RawReactionActionEvent doesn't have message attribute, but it does have message_id.
no i mean
aight
ohh alrighty
what?
What do I do if I want it to delete after 3 seconds and which line?
@sacred trout also lowercase class naming is bad, your variable even shadows it.
you resolve the promise and make a timeout and then call the delete function with the message value
@earnest phoenix .delete({timeout: 3000})
message.channel.send(embed).then(m => m.delete({timeout: 3000}))
Oh thanks cutie
Lol
Let’s try
@willow mirage dosent work :/
Lol jk it works!
Thanks
ok
What if I want it to delete after 2 seconds
that code looks familiar lol
2000?
@rustic nova well I asked for help before too
Many times
Just changed my name etc
is there a way to change bitfield to an array?
What is this error someone help me?
Your shard took too long to be ready
how do I make a command handler that goes inside of folders inside my commands folder
then maybe groups them in the collection
nested command handler
Not trivial, but take a look at this: https://github.com/eslachance/djs-handler
@zenith terrace wdym
@umbral zealot do you comment all of your code, or jut the code that gets read publicly?
I comment the code that's intended for public consumption as learning material.
ok
so wait
makes sense
Hello, can someone help me?
So I have this script. Things I wanted are is log Welcome when logged value are buyer OR one of the developers
const developer = ['staff1', 'staff2', 'staff3']
const buyer = 'owo'
const logged = 'staff1'
if (logged != buyer || !developer.includes(logged)) return console.log('Not welcome')
console.log('Welcome')```
The result when try it are not I wanted. I alredy swapping the value etc, but didnt work as expected.
Is there any alternative function/tricks that result the same as I wanted?
No idea
Then don't reply and let people that do help.
@umbral zealot BRUH, I just said no idea
evie
You get offended to easily...
Your issue might be with your condition. You say logged != buyer || !developer.includes(logged), which is if !a || !b , which can translate to if NOT A OR NOT B. That means, if EITHER of those things is false, it will say "not welcome"
there was no point to say no idea
So this can only be used by someone that has permission to delete messages right?
He's just telling you that it's unnecessary to reply if you can't help in any way
no idea
false, you have no check whatsoever on permissions of the author.
evie
Oh alr, I’ll see what I have to add
Thanks

You can make a function which gets all files/folders from a folder and then use recursion to get nested files, for example:
#development message
yeah I literally pointed to an example: https://github.com/eslachance/djs-handler
infinite recursion is rarely useful tbh.
Ahh thank you. I changed to ternary condition and it works as I expected 
Awesome! 👍


@umbral zealot
fs.readdir("./commands/", async (err, files) => {
if (err) console.log(err);
const header = [['Command', 'Status']];
files.forEach((file, i) => {
if (file.endsWith(".js")) {
let props = require(`./commands/${file}`)
header.push([`${+i + +1}. ${file}`, 'Loaded 🟩']);
bot.commands.set(props.help.name, props);
} else return header.push([`${+i + +1}. ${file}`, 'Loaded 🟥']);
});
console.log(table.table(header));
});
this is what I got rn
not based off yours
chuck it
You literally don't have a handler that can support sub folders
you're asking for one that does
trash yours, and look at the code I sent
I dont want to change the way how my mobile exports work
Well then, glhf buddy.
const Discord = require("discord.js");
module.exports.run = async (bot, message, args, embedconf) => {
};
module.exports.help = {
name: "command"
}
someone tagged me?
so your telling me it is impossible to use a subfolder handler with this
No I'm telling you I gave you a complete solution that works perfectly find and you're refusing it just because it's not code you can 100% copy/paste without thinking
So, y'know, good luck, but your inability to read or write code ain't my problem.
The comments are literally things you can read to know what the code does
That's how we real developers exchange detailed technical information between one another. might wanna get used to "reading words" if you want to get anywhere in life.
Shoveling code ain't it.
okay honestly chill
the whole time you have been yelling at me
Ive been doing stuff in it
long before everything
I'm... not yelling?
whjats the python pip again for server count
You're just acting like a Karen, seriously.
No
There's honestly nothing wrong with that handler, I still use something extremely similar in my own bots.
You can totally add sub-folders to your command handler - you don't have to copy evie's whole repository to do so. Either use the function I sent and modify it a bit (because some method names are wrong), or study the code evie sent you and see how they are doing it and implement it in your command handler
But if you want sub-folders it has to be thrown and replaced with a different loop and code that supports those folders.
study the code evie sent you and see how they are doing it
Yeah that's exactly what they saying they're unable to do, because "there's too many comments"
evie what does this do
fs.readdir("./events/", (err, files) => {
if (err) return console.error(err);
files.forEach(file => {
// If the file is not a JS file, ignore it (thanks, Apple)
if (!file.endsWith(".js")) return;
// Load the event file itself
const event = require(`./events/${file}`);
// Get just the event name from the file name
let eventName = file.split(".")[0];
// super-secret recipe to call events with all their proper arguments *after* the `client` var.
// without going into too many details, this means each event will be called with the client argument,
// followed by its "normal" arguments, like message, member, etc etc.
// This line is awesome by the way. Just sayin'.
client.on(eventName, event.bind(null, client));
});
});
It reads the event folder and loads all events from that folder.
do I need it
ok bcs I already use events normaly
IF you want to keep all you client.on("blah") in your index, then you don't need it
@earnest phoenix you theere?
Yeah I do
I think having events in a folder is much cleaner, honestly.
yes?
umm
is it bad to do this?
i needed help with reation roles
const fs = require("fs"), { resolve } = require("path");
pastebin
Maybe if you actually describe your problem other people can try to help
umm
^
sure
"I need help with these 120 lines of code" isn't really a good description of your issue
only thing I can say for sure: you really need to learn how to spell "Reaction"
class Reation(commands.Cog):
print("Reactioin cog is loaded")
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: type object 'reaction' has no attribute 'member'
message#reply() is like discord reply now right
bcs if so I gotta rewrite lots of verify commands
;,ap
no, discord.js has not yet added message replies, so that's a normal reply with mention.
never update time
The slash interaction API isn't just "reply with a message" it's a completely different system anyway
can you provide full traceback
ok
[Running] python -u "c:\Users\schwt\OneDrive\Desktop\Projects\py projects\bot but with cog\cogs\tempCodeRunnerFile.py"
[Done] exited with code=0 in 3.67 seconds
[Running] python -u "c:\Users\schwt\OneDrive\Desktop\Projects\py projects\bot but with cog\cogs\tempCodeRunnerFile.py"
[Done] exited with code=0 in 3.871 seconds
[Running] python -u "c:\Users\schwt\OneDrive\Desktop\Projects\py projects\bot but with cog\main.py"
Fun cog is loaded
Leveling cog is loaded
Reactioin cog is loaded
Welcome cog is loaded
The bot is online.
Ignoring exception in command roleadd:
Traceback (most recent call last):
File "C:\Users\schwt\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "c:\Users\schwt\OneDrive\Desktop\Projects\py projects\bot but with cog\cogs\reaction.py", line 80, in roleadd
f"SELECT emoji, role, message_id, channel_id FROM reaction WHERE guildid '{reaction.member.guild.id}' and message_id = '{messageid}'")
AttributeError: type object 'reaction' has no attribute 'member'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\schwt\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\ext\commands\bot.py", line 903, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\schwt\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\ext\commands\core.py", line 859, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\schwt\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: type object 'reaction' has no attribute 'member'
it's line 80 in his code.```py
cursor.execute(
f"SELECT emoji, role, message_id, channel_id FROM reaction WHERE guildid '{reaction.member.guild.id}' and message_id = '{messageid}'")
reaction.member doesn't exist
this doesn't make sense either
some more errors maybe?
actually reaction isn't defined here either
I'm just gonna assume you name the class reaction, and here the reaction isn't even defined, so it takes the class http://storage.norizon.cloudns.asia/ss/3bPDB9UB5q.png
@commands.command()
async def roleadd(self, ctx, channel: discord.TextChannel, messageid, emoji, role: discord.Role):
Within this function, reaction doesn't exist.
is that's all or are there more errors?
Within this function, reaction doesn't exist.
thus it takes it from the global scope, which is the cog class
should be
Ah, that's a python thing I'm too javascript to understand, sorry.
lol
to get the guild id just do ctx.guild.id smh
huh? Context does have guild which is Guild object, and a Guild object has an id. What you meant is RawReactionActionEvent doesn't have guild attribute, but it does have guild_id attribute
why use f string on query doe
I INstalled the py for dbl and added the toekn, but my bots server count isnt appearing on the website or does it need a while?
did you set autopost to True?
self.dblpy = dbl.DBLClient(self.bot, self.token, autopost=True)
that should work ig
ill give it some time ifnot ill re-install it
i dont see it on the page https://top.gg/bot/518031285944582144#/
Which line do I write this?
if(!message.member.hasPermission('MANAGE_MESSAGES')) return;
anywhere within your run command, preferably before running anything else
are you sure you passed the right token? Maybe try making a request directly to the api and see what the response is
also, is this meant to be in #topgg-api ?
Alr so can it be under message.channel.send? @umbral zealot
so you want your code to go "ok I deleted the messages"
"oh by the way you don't have permission to run this command"
???
You do understand code is executed from top to bottom and not in random order, right?
@blissful coral
@umbral zealot sorry I’ve forgot, which line?
anywhere within your run function, preferably before running anything else
this is where i got my token @earnest phoenix
But which line do you prefer?
whichever is a line that is inside the run function but before all the other code
try putting it in the first line, if you don't like it then put it in the second, etc.
best practice
So under, run am I right?
that would be inside the run function, yes.
Thank you good sir
@umbral zealot for
// Remove the `.js` in the end.
let commandName = stats.name.split(".")[0];
can I make it be my export?
sure
module.exports.help = {
name: "name"
}
yes you can
okay how
Should be here ig https://top.gg/bot/518031285944582144/webhooks
by... reading the help property
@umbral zealot after return is it return;(“msmsmsm”)
Seriously @earnest phoenix @solemn leaf Please read this:
#development message
I just....
ayo I never messed with exports
"I just need help with this ONE thing"
I feel like there are too many people who try to learn coding by making a bot, rather than making a bot after they know the basics
he says, needing help for the 50th thing
Well i mean, it worked out for me.
That's like trying to learn how to run before you can walk
it may work, but it's sure as hell not easy
Its not easy no.
It's like learning to drive while sitting in a driver's seat barrelling down the highway at 60mph.
@umbral zealot ooohhh it’s return message.reply("blah blah")
But i had about 2 months without going outside (covid) and free of online school, so i just did it.
And i mean, it can work out.
Lol
As long as you understand the code you're writing and not copying things from the internet and hoping it works out
Meaning your existing exports were copy/pasted from somewhere else, but you don't want to copy/paste mine, so you're stuck in a loop of "I don't know what code to shovel". The solution to that is to actually learn JavaScript so you know what you're doing.
Specifically you can read https://js.evie.dev/modules to learn about modules.
Well, you understand it in the first week. Then you ask yourself what the hell you did to make it work.
There's an easy way to find out :)
Lmao I’m alone @earnest phoenix I don’t have friends to test it with me lmao
Alr ima try LLOL
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: OperationalError: near "'788276249033179166'": syntax error
File "c:\Users\schwt\OneDrive\Desktop\Projects\py projects\bot but with cog\cogs\reaction.py", line 80, in roleadd
f"SELECT emoji, role, message_id, channel_id FROM reaction WHERE guild_id '{ctx.message.guild.id}' and message_id = '{messageid}'")
@earnest phoenix
Don't use f-strings in SQL queries
he's been told that
but what else do i do?
is it safe to delete everything from require.cache?
Concatinate the strings
Some wrappers support applying variables via function args to execute
in other words
RTFD
that's just the same doe
not if you get locked out by the API then its for the entire bot. (happened to me once)
Literally told you already
RTFD
bruh
BRUH
bruh moment
a real one fr
BIG BRUH MOMENT
Why wouldn't it be? It's cache. If you remove it, it'll just be added again. But I don't see why you'd want to do that.
yea

he's bruhing himself with caps
so nothing would happen to the code right
actually wait
yea BRUH
yo guys can ya give me some advice to add some new fresh command I got no idea lol

does your bot follow some theme?
Not really just a moderation fun bot @lusty quest
@earnest phoenix command that grabs a random command from github
Lol
did you got the usual Reddit Meme command?
Node.js' documentation states that reloading a native addon may result in an error:
Modules are cached in this object when they are required. By deleting a key value from this object, the next require will reload the module. This does not apply to native addons, for which reloading will result in an error.
@crimson vapor the affect it'll have on your code is when require is called on the module, it'll be reloaded. With cache, it doesn't bother reloading it.
then make a meme Generator
alr ty
Huh how does that work Lol?
use Canvas to edit a meme Template
since you dont know how it work it will get you busy researching


That isn’t really unique
or get him busy askin more questions in here
^^^
I have error in line 1313 pls help.
Economy is unique like a Drunk Russian
Show the coding then
For asking questions when you run into issues you can't solve on google. Not learning how to code
@lusty quest what about like a job economy or something
?
You don't do any development, you only copy code and ask why it doesn't work
Not unique. Lmao.
The economy category is oversaturated
Bruh-
everything could be copied.
yeah... but let's cut it
even some really really stupid code.
this is development after all
Its missing the spaces on the left, that happens when it gets copied.
well the Toppic doesnt forbid chatting about Bot development, and he asked for an idea for a command to add to his bot
the meme generator could work.
They are not that hard...
Dont do Music this is even more saturated than Economy
Make a command to check the weather in a specified location. That might keep you busy for a while-
in the past 3 Days i saw atleast 6 People here asking stuff for Music bots
LOL
Music bots aren't even worth trying to make anymore. It's like trying to make an MMORPG as a small indie company
Hm, its still a nice thing to add if your bot is not focused on 1 category.
try making a customizable soundboard
sure but there is no Reason to add some buggy Music command to your multi Purpose bot. Most people will just use some of the Larger Ones
And then it gives you a random number
you could do this. iirc there are even APIs for 8ball
Yea
Yeah thats true, but if you can get a solid music category in place its alright.
I’m thinking of making like 8ball
There is an api where you enter 2 names and it tells you how much in love they are or whatever. It's pretty fun
you don't need an api for this stuff
It depends how you want to implement it.
if you use a proper Backend eg lavalink or similar then sure, but who would run lavalink just to have a music command for a Multi Purpose bot?
Most people just take two input from users and pick a random number
Or how much money do I have! @lusty quest
?
Like
Or maybe you want to throw in some machine learning neural networks to see how much they love each other 
You say
+how much money do I have
Then it gives you a embed
Number
And it’s like
would require an extensive profile of each user
Ima make that yea that sounds good to me
The power of love is with you.
Just rig that command.
so you got now a few ideas
@sudden geyser The one I used returns the same number if you enter the same names twice, so that's something more than a random number gen 
I rigged my pp command.
In the meantime, does anyone have suggestions for editors dedicated for writing/markdown?
Preferably not VSC
Notepad++? 
use Discord chat
https://stackedit.io/ is a lovely editor for writing markdown online, imho
Full-featured, open-source Markdown editor based on PageDown, the Markdown library used by Stack Overflow and the other Stack Exchange sites.
It works super well and gives you a nice preview
not that I know, but it works on any PC that has a browser. so like. every PC 😂
if you get flagged to often you will get locked out from the API at some point
@umbral zealot can I add an .then for when it is done going through all the commands?
aw, well I'll use it in the meantime. time to flood my google drive omegalul
.then only works on promises, not on for loops
@lusty quest with the uh how much money do I have I can copy n paste a 8ball command and modify it a bit
And make it embed etc
bru
@umbral zealot How should I make it run after it is done
literally put the code after the loop
did and it logged
╔══════════╤════════╗
║ Category │ Status ║
╚══════════╧════════╝
╔═════════╤════════╗
║ Command │ Status ║
╚═════════╧════════╝
css
how do u do it?
mhm
you know css
bits an peices
get the class
this is what i have so far
border: 5px solid var(--gold);
border-radius: 64px 64px 64px 64px;
}```
for the header
image
which is the icon
well you need to chaneg the image
yes, how tho
probably by setting the background property of the header image class
try
.entity-header__image {
backround-image: url("url-to-your-image");
border: 5px solid var(--gold);
border-radius: 64px 64px 64px 64px;
}
Not sure if it'll work tho, just a guess
o, ty
do discord links eork
*work
Not sure, you can try it
try background instead of background-image
nope
isn't --gold a custom variable
mhm
maybe that's why it's failing
remove the border to see if it works without it
or replace var(--gold) with a valid color
ok
so
backround-image: url("https://media.giphy.com/media/j7Qdi1oI45tQuXgljo/giphy.gif");
border: 5px solid #F9A602;
border-radius: 64px 64px 64px 64px;```
try it
So
nope
you misspelled background
wow
fixed it but it did not work .entity-header__image { background-image: url("https://media.giphy.com/media/j7Qdi1oI45tQuXgljo/giphy.gif"); border: 5px solid #F9A602; border-radius: 64px 64px 64px 64px;
Since the avatar is defined with a src in the website I'm not sure if it's even possible to replace it with css? I might be wrong, have you seen others use gifs as avatars?
yes
The idea is that your main element is displayed in very small details (almost with visibility: hidden) but you have a ::before/::after that's actually displayed
If I want this embed yea it’s under user.unban right?
Enable developer mode and you can right-click people and then "copy ID" :)
why the api is very high in my server
Time taken: 4031 ms
Discord API: 5509 ms
Bc its wrong
That 1 is kinda
?
Well do what turtle guy said, google "how to replace html element with css"
what can i do
Also see this
Help me....
I'm just rephrasing an answer from stackoverflow
:/ help
Relax, people will see your message
I'm not a js dev
You can't unban a user or member because they're not accessible
it's guild.unban("id")
what
you'd replace the message.channel.send with the embed
I mean not that this unban would work anyways because of what I said, tbh
i'm waiting 😦
@umbral zealot I’ll fix it it’s line 18 right?
This is related to your internet connection that's either very slow, or too far away from the discord servers so there's high latency.
Autocorrect..
ok thanks
How about you listen to what I said and go learn JavaScript instead of pestering us to write your entire bot one line at a time?
I jUst need help making it embed :/
You need help for literally everything, not just this.
It seems like you've "just" needed help for a lot of things
That’s what development is for..
They're not supposed to write the bot for you.
If you don't know JavaScript it's not a good idea to make a bot with JavaScript
No I’m just asking if I need it to be embed it’s under User.ban right?
?
I already answered that question
Think logically
There’s no message channel send @umbral zealot
message.reply then, same difference
you'd know they're the same thing if you actually understood any of this code
That’s something else it tells you that you haven’t mentioned a user @umbral zealot
Not that a user has been unbanned
iwanna to make a music bot but the idont have a package for it
Well then sure, put it under that pointless user.unban
message.reply('a').then((m) => {m.edit('a')});
@umbral zealot yes I’ll change it...... I knew it before that it wouldn’t work
iwant help pls
what code
What do you have now, what did you try, what didn't work?
are u using glitch . com?
glitch banned discord bots
Really? Nice
im pretty sure
then they said use a phone app called termux
I accidentally removed something but I can’t remember now it’s showing error..
@umbral zealot
maybe try CTRL+Z ?
Oh. Yeah. I've done that
#development message
I’m iPad @umbral zealot
no really
Then "undo", man, idfk
no
Which package
which language
which library
What do you have now, what did you try, what didn't work?
@umbral zealot what do you see wrong with it? It was some about like cool down or something
I don't know what your code does, or what the error is, or what line you deleted. Go learn javascript.
imade a bot and I made a code on glitch.com
😬
my face too ^
but to re-write it you'd have to know what the hell you're doing which you clearly don't.
I heard that djs has a require function in its send function, is this true?
That answers literally none of my 4 questions
hmm
iwant package for a musicbot
{dancin
Ok great
Still doesn't answer the questions
language English
PROGRAMMING language ffs
He means uh he wants the coding for the music bot
wait iwill send u the code
comst Bot =require("ctk-musicbot");
const musicbot = new Bot({
Token: 'xxx'
prefix : '~'
});
musicbot.start();
So you don't have any idea how to answer any of my 4 questions? smh
@umbral zealot godsaved me
Ok well that looks like javascript
It was cooldownAmount);
if only you could spell const properly maybe
sorry but idont know any coding language
Then maybe you should learn first
comst sounds like cheems 
Try python I think that’s the easiest one @young moth
thank u guys for your time
only
I just need to keep him online
Oh what website are you using?
get a VPS to run the bot on
@young moth if it’s repl.it or glitch.com then I can maybe help
"Free" VPS wont run Music bots
Glitch is not an appropriate place to host bots, you cannot keep it online 24/7
noo
for a music bot there's no appropriate place that's free.
Oh uh
the code never works
comst Bot =require("ctk-musicbot");
const musicbot = new Bot({
Token: 'xxx'
prefix : '~'
});
musicbot.start();
- you don't know how to code
- you do'nt know how to host
you shouldn't be trying to make a music bot at this stage. Use an existing one.
Well, when I was a newbie I knew nothing i also copied codes I still am a newbie but learnt new stuff and tried to make my own
or learn how to
comst
Hello, which team is there to ask for help for discord bot developer or I am adding friends there, but the invitation is not going, what will I do or when I add friends, can I tell you where the invitations are coming?
can u test my code?
help pls
Your code, if you copied it literally, has an actual error in it
comst is not a thing
Lmfao
This channel is for help with programming, not finding people to code, so if you have any programming question, please go ahead and ask them. We can help you as a community.
will u help me?
It's const
Help you learn to spell? No.
ok thx
that's what stands out to me at least (idk JS)
My help is this:
- you don't know how to code
- you don't know how to host
you shouldn't be trying to make a music bot at this stage. Use an existing one.
If you absolutely want to make one yourself, learn javascript first. #development message
Red flag
Just took me 7 months
YouTube is not fit for Discord bots
Yea
I mean , there are javascript tutorials on youtube, some people learn better with videos. That's a valid thing.
But the thing is
Yea
Learning bots before javascript though, that usually doesn't work.
LEARN javascript first
JS — sure, but D.js
That's like Making calculater without knowing maths
sounds about right

@umbral zealot ima be honest, I don’t learn from documents but I learnt a bit lol
well if reading isn't your thing, try javascript tutorials on youtube
and if that doesn't work, go to school or pay for a tutor
clearly.
what error
I mean like it’s saying on my server that there is a bug but I don’t see any
Not showing any thh
"it's saying on my server that there is a bug" you said
how is it showing? what is it showing?
And there's nothing in the console that shows an error?
Yea
this part here you can't see because you're on a damn iPhone trying to code
Just says everything loaded successfully
if(!user.bucks !== null && user.bucks < amount) return message.channel.send(a, nomoney); this does the complete wrong thing
Sounds like your code is silently catching errors and sending them to the void, which is entirely unhelpful.
Yea I know...
remove that ! behind user.bucks
acutally maybe

