#development
1 messages Β· Page 1064 of 1
which one? i triedusing it on the div, but nothing
since the text is already centered on the button
yeah
align: center; ?
Maybe
kk
There's something that should align the container
nope
Epic
I'll go check vsc
you want to align the container tag inside the center tag?
h
margin auto worked for me π€
Oh Tim's here heyyyyyy
im always here, sadly
i mean
only the second grid, "hmm" is getting centered
the other one is just on the right
hosted the bot finally thanks @elder loom
Fuck it i need help brb
you have a grid with 3 columns
@plain acorn no problem
you cant center like that
oh
grid items always stick to the grid
@elder loom sending you the link for the server m testing it in
so on my beautiful, sexy website i want to move the text at the bottom up but its not working for some reason [http://alebot.epizy.com/]
Free Web Hosting with Unlimited Disk Space, Unlimited Bandwidth and Unlimited Websites from InfinityFree. With PHP and MySQL and no forced ads on your site.
u m
lol
Use flex boxes. That's a lot simplier
its a website i swear
canyouhelpme?
Just give your parent display flex, justify content: center
wdym dice?
No one knows a solution to me?
which text?
wait ill show
the one at the bottom with the button
i want it moved up but it just wont
no i mean i want to move the element up
oh
also no, no keyframes used
Lol everyone is working on websites apparently
yes
no idea why all of a sudden these past few days its been like this lmao
So no one knows how to block the scroll function when a certain object has a certain class??
Overflow hidden
btw the alebot website is my first time doing web design x)
$(this).on("mousewheel DOMMouseScroll", function(e) {
if (!$(".outer-nav").hasClass("is-vis") && !$(".outer-nav").hasClass("is-vis")) {
e.preventDefault();
var i = e.originalEvent.wheelDelta ? -e.originalEvent.wheelDelta : 20 * e.originalEvent.detail;
i > 50 && o ? (o = !1, clearTimeout(a), a = setTimeout(function() {
o = !0
}, 800), t(1)) : -50 > i && o && (o = !1, clearTimeout(a), a = setTimeout(function() {
o = !0
}, 800), t(-1))
}
}), $(".side-nav li, .outer-nav li").click(function() {
if (!$(this).hasClass("is-active")) {
var t = $(this),
n = t.parent().find(".is-active"),
s = t.parent().children().index(n),
r = t.parent().children().index(t),
o = $(this).parent().children().length - 1;
e(r), i(s, r, o)
}
}), $(".cta").click(function() {
var t = $(".side-nav").find(".is-active"),
n = $(".side-nav").children().index(t),
s = $(".side-nav").children().length - 1,
r = s;
e(s), i(n, r, s)
});
Does anyone know how to make this function to not change on scroll when a certain element has noscroll and is-active classes?
It's a template
Wdym css framework?
u want me to send u the css file? With 35000 lines?
is there any css framework
um yes?
"css framework" lmao
no chiecken
Ok no I mean 3500 lines
$(this).on("mousewheel DOMMouseScroll", function(e) {
if (!$(".outer-nav").hasClass("is-vis") && !$(".outer-nav").hasClass("is-vis")) {
e.preventDefault();
var i = e.originalEvent.wheelDelta ? -e.originalEvent.wheelDelta : 20 * e.originalEvent.detail;
i > 50 && o ? (o = !1, clearTimeout(a), a = setTimeout(function() {
o = !0
}, 800), t(1)) : -50 > i && o && (o = !1, clearTimeout(a), a = setTimeout(function() {
o = !0
}, 800), t(-1))
}
}), $(".side-nav li, .outer-nav li").click(function() {
if (!$(this).hasClass("is-active")) {
var t = $(this),
n = t.parent().find(".is-active"),
s = t.parent().children().index(n),
r = t.parent().children().index(t),
o = $(this).parent().children().length - 1;
e(r), i(s, r, o)
}
}), $(".cta").click(function() {
var t = $(".side-nav").find(".is-active"),
n = $(".side-nav").children().index(t),
s = $(".side-nav").children().length - 1,
r = s;
e(s), i(n, r, s)
});
Or the HTML?
There's basically 4 li's like this:
<li class="l-section section">
<!-- Stuff to display -->
</li>
These are the things that are scrolled between
i think
u can just use .filter(() => document.getElementByClassName('l-section') and then do the scroll wheel stuff?
I dont think so
not sure how it works tbh, idk
I tried this:
$(this).on("mousewheel DOMMouseScroll", function(e) {
if (!$(".outer-nav").hasClass("is-vis") && !$(this).hasClass("is-active") && !$(this).hasClass("noscroll")) {
e.preventDefault();
var i = e.originalEvent.wheelDelta ? -e.originalEvent.wheelDelta : 20 * e.originalEvent.detail;
i > 50 && o ? (o = !1, clearTimeout(a), a = setTimeout(function() {
o = !0
}, 800), t(1)) : -50 > i && o && (o = !1, clearTimeout(a), a = setTimeout(function() {
o = !0
}, 800), t(-1))
}
}), $(".side-nav li, .outer-nav li").click(function() {
if (!$(this).hasClass("is-active")) {
var t = $(this),
n = t.parent().find(".is-active"),
s = t.parent().children().index(n),
r = t.parent().children().index(t),
o = $(this).parent().children().length - 1;
e(r), i(s, r, o)
}
}), $(".cta").click(function() {
var t = $(".side-nav").find(".is-active"),
n = $(".side-nav").children().index(t),
s = $(".side-nav").children().length - 1,
r = s;
e(s), i(n, r, s)
});
But that didn't work either
This is the whole function
how can i make it so that if i hover over h1, p2 appears?
ooo okay
its not working
<p2 style="font-size: 25px;font-family: monospace;text-shadow: 0 0 20px black; visibility: hidden;">
hhhh
</p2>
h1:hover p2 {
visibility: visible;
}
p2?
are these good permissions to have https://cdn.vurighosting.com/u/YnSvy8.png ???
p2?
paragraph 2
If you need them they're fine.
p2 is not html syntax
F
also how do people make website in this style its so common yet i cant find out how https://cdn.vurighosting.com/u/UdINo3.png
i see them constantly with small websites
Could be a Bootstrap template
wow these look like they would take ages to edit
wat
can someone help me tho? i want p2 to appear when i hover over it
p2 is not an element in html
what would i need to do anyway
Fix:
<p id="thistext">
hhhh
</p>
#thistext {
font-size: 25px;
font-family: monospace;
text-shadow: 0 0 20px black;
visibility: hidden;
}
#thistext:hover {
visibility: visible;
}
Use js
frontend
x)
idk where im going with this
<script>
var h1 = document.getElementById('hover')
var thisText = document.getElementById('thisText')
h1.addEventListener('mouseover', function() {
thisText.style.visibility = 'visible'
})
</script>
its not doing anything
ive successfully gone up in the world https://cdn.vurighosting.com/u/wUH7F2.png
what are you trying to do
when i hover over #hover (in this case, h1) i want #thisText (in this case, p2) to change
#hover + #thisText {
color: white;
}
<p2 id="thisText" style="font-size: 25px;font-family: monospace;text-shadow: 0 0 20px black;">
hhhh
</p2>
im not doing a dashboard i just want a sexy website
and then make a dashboard
css can only target children elements, not unrelated elements
where is #hover
<body style="text-align: center;">
<h1 id="hover" style="font-size: 125px;font-family: monospace;text-shadow: 0 0 20px black;margin-top: 0px;margin-bottom: 0px;">
aleBot
</h1>
<p1 style="font-size: 50px;font-family: monospace;text-shadow: 0 0 20px black;">
Invite aleBot today <br>
<a href="https://discordapp.com/oauth2/authorize?client_id=718932190112776203&scope=bot&permissions=2146958847"></a>
</p1>
<br>
<p2 id="thisText" style="font-size: 25px;font-family: monospace;text-shadow: 0 0 20px black;">
hhhh
</p2>
</body>
this is the full shit
you cannot target p2 from h1 via css
css only allows targeting p2 on h1 hover, if p2 is inside h1
a
on h1 hover, add a "hovered" class to body in js
then add css to p2 with and without hover
ok
body p2 and body.hovered p2
@quartz kindle will you help me make a dashboard?
π
add an event listener for mouseover to h1
then on mouseover, you toggle a class in body
the rest is css
*has an aneurism*
^ i feel that
every time i do anything in html / css its been so long that i remember nothing
sounds about right
"help me make a dashboard" involves a lot of stuff lol
i dont know how list list the users server
and i dont know how to log stuff that would be useful
i dont know how to do a lot
do you have their oauth token?
yes
then make a request to the discord api
with their token in the authorization header
ive gotten to getting the users name https://cdn.vurighosting.com/u/6lpvf1.png
unrealistic salary
its a template
and this doesnt work its supposed to be a logout thing https://cdn.vurighosting.com/u/gcU3sT.png
it doees the same thing
tiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiim
can i use a host that is not myself to link to my mongodb and make dashboarding so much easier?
sure
say it was app.infinityfree.net, that ok? (not sure how id do it lol)
whats the thing for users guilds
infinity frees databases are local host
and they give you 128mb of bandwidth
daily limit
but i already have a mongodb set up (at localhost, but i dont wannnna)
if and when i move to the cloud would it be straightforward for that host?
<script>
var hovered = document.getElementById('hovered')
var thisText = document.getElementById('thisText')
var body = document.getElementsByTagName('body')
hovered.addEventListener('mouseover', function() {
thisText.style.visibility = 'visible'
})
</script>
No InglΓͺs!
@pure lion #announcements
:l
you're not doing what i said
Onde bate papo
@quartz kindle how do i use api to logout
@gloomy jetty no #memes-and-media
tim i dont have infinite walnut power
Toma banho rapaz
techincally you dont need to logout from the oauth2
all you need to do is invalidate the user's token on your website
and let the token expire
delete it from your memory
in your website, you consider a user "logged in" if you have their oauth token
if you delete their oauth token from your memory or cookies or whatever
its stored as a session on the user
Tim do you know how I make this function (first one) not trigger when a certain element had the "is-active" and "noscroll" class?
$(this).on("mousewheel DOMMouseScroll", function(e) {
if (!$(".outer-nav").hasClass("is-vis")) {
let n = $(this).parent().find(".is-active")
console.log(n)
if(!n.hasClass("noscroll")) {
e.preventDefault();
var i = e.originalEvent.wheelDelta ? -e.originalEvent.wheelDelta : 20 * e.originalEvent.detail;
i > 50 && o ? (o = !1, clearTimeout(a), a = setTimeout(function() {
o = !0
}, 800), t(1)) : -50 > i && o && (o = !1, clearTimeout(a), a = setTimeout(function() {
o = !0
}, 800), t(-1))
}
}
}), $(".side-nav li, .outer-nav li").click(function() {
if (!$(this).hasClass("is-active")) {
var t = $(this),
n = t.parent().find(".is-active"),
s = t.parent().children().index(n),
r = t.parent().children().index(t),
o = $(this).parent().children().length - 1;
e(r), i(s, r, o)
}
}), $(".cta").click(function() {
var t = $(".side-nav").find(".is-active"),
n = $(".side-nav").children().index(t),
s = $(".side-nav").children().length - 1,
r = s;
e(s), i(n, r, s)
});
kkkk calma ae rapaz, vai la no #memes-and-media antes q vc tome mute
brain.destroy()
@tulip ledge apaga!!!!
apaga?
@tulip ledge i dont even know what that function is supposed to do lol
*cries in retard*
@gloomy jetty #memes-and-media
Ataaaaaaa π
m o o t
Oh scroll it adds the section-is-active to a certain <li> and removes the section-is-active from the other one
Γ isso nΓ© @tulip ledge
sigh
Dude can u talk english and not tag me unless u know an actual solution?
lmao avisei kkkk
how much overhead would an express server use?
tim how the potato-on-a-bike balaclava wearing jumping jacks Christ do i do what you told me to?
i got it to work
gmd gg
I'm predicting Tim just face-palming and calming himself down with liters of coffee by now from this chat
same
(2)
@pure lion ```js
let a = document.getElementById("hover")
let b = document.getElementById("p2")
a.addEventListener("mouseover", () => {
b.classList.toggle("hovered")
})
Tim do you know a way to do it?
o h
hmm
i dont understand anything from that code chicken, i'd need to see it in action in the page
anyway i need to go make dinner
Oh ok
chicken
:sad:
maybe you could toggle sticky?
Meaning I'd have to only run the code if it doesnt have a certain class
anyway i need to go make dinner
Told you
*cries*
$(".main-content").children().eq(e).prevObject[3] this logs this -> https://hastebin.com/yevosumipo.m how do I check if it contains section--is-active
@quartz kindle how do i list all the guilds like this https://cdn.vurighosting.com/u/lJ2Bcq.png
look at the structure, replicate it with guild list
is this a good pice of code
client.on('message', message => {
if (message.content === `+user-info`) {
message.channel.send(`Your username: ${message.author.username}\nYour ID: ${message.author.id}`);
}
});
client.on('message', message => {
if (message.content === `+server`) {
message.channel.send(`Server name: ${message.guild.name}\nTotal members: ${message.guild.memberCount}`);
}
});
sure π€
yeah how do i get the guild list
i presume of the user?
yes
when you auth them, ask for their guilds

yeah how do i do the ask thing
I suppose there is no way to do it then if no one knows how even not Tim π¦
there is a way
I have this issue: TypeError: Cannot read property 'get' of undefined
let serv = req.client.guilds.get(req.params.guildID);```
Express - Discord Passport
i did it, whoops https://cdn.vurighosting.com/u/CXVrgm.png
@obtuse jolt How do I do it then
with magik
Dude if you say there's a way then I expect you to know it
i do but if i just found out by myself why would i share it
I almost have it working
I just need to disable the function if it's on the certain <li>
I hope Tim will return soon
FUCK THATS TOO MANY GUILD IDS https://cdn.vurighosting.com/u/m8GSZx.png
how about some more
thats better sort of https://cdn.vurighosting.com/u/cfA5ZJ.png
wtf is this
[permissions_new] => 36818497
a {
padding: 1px 200px;
background-color: black;
transition: all 0.2s cubic-bezier(0.5, 0.23, 0, 1.02);
}
a:hover {
background-color: white;
transform: scaleX(2);
}
when i hover over <a> i want it to transform but for some reason its not moving or anything
just changing colours
let owners = bot.owners.forEach(owner => {
let rowner = message.guild.members.cache.get(owner)
rowner.id
})```
returns undefined
forEach returns undefined. What exactly do you want to return.
If you want to return rowner.id, you should change .forEach to .map and add a return before it.
Of course, you should make sure rowner is not undefined.
I got it to work but now I have this:
.l-viewport {
position:relative;
width:100%;
height:100vh;
box-shadow:0 0 45px 5px rgba(0,0,0,0.85);
overflow:hidden
}
This overflow hidden makes it so the scroll bar can't go far as you can see in the picture, is there a way to make it to scroll in JS?
Anyone wanna make me a few webhooks
Now the scroll bar is so far to the side help
I did it
I did it
I did it
Finally
Lol
@sudden geyser
let owners = bot.owners.map(owner => {
rowner = message.guild.members.cache.get(owner)
})```
?
hi
You need to return a value from the function you pass to .map. What is owners first of all?
an array
Here's how you use it: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map
On what
() => bla is an implicit return, it returns whatever is left
() => { bla } requires an explicit return, otherwise it returns nothing. it needs to be () => { return bla }
let owners = bot.owners.map(owner => {
message.guild.members.cache.get(owner).id
})```
.addField(`Owners`, `<@${owners}>`, true)
owners is ,
??
Why for foreach?
where?
yea?
can you get the names of all the guilds your bot is in?
Aahru what library are you using
discord.js
Use <Client>.guilds.cache.map
Loop through all the guilds in cache @earnest phoenix
The first argument is a guild instance.
does anyone know what the nuMber shit for canvas is if i want to make an xp bar?
I got auth down but now I need a way to fetch the user guilds. Should I make an api endpoint which gets the user guilds, filters by perms etc. ? Using nuxtjs and nuxt-auth by the way
if you tell me to use canvacord sadie im going to hang myself
let owners = bot.owners.map(owner => {
rowner = message.guild.members.cache.get(owner).id
})
.addField(`Owners`, `<@${rowner}>`, true)
this returns the first value
second*
of the array
that code makes 0 sense
^
@pure lion it's just maths
i already told you, you already have an array of IDs
x)
bot.owners.foreach(owner => {
<embed>.addField(`Owners`, `<@${owner}>`, true)
})
owners.forEach(o => o.user.delete())```
you want one field for each owner?
you want one field for each owner?
@quartz kindle That's my interpretation
current_xp / xp_needed_for_next_level * width_of_xp_bar
That would give you the width of the current progress based on the width of the xp bar
why are you mapping?
@quartz kindle
let owners = bot.owners.forEach(owner => {
console.log(owner)
})```
nvm
π¬
Is bot.owners a existing array?
MongoDB π
mongodb scares me
You could use this, but I'm sure there is a better way.
var owners = "";
bot.owners.forEach(owner => {
owners += `<@${owner}>`;
});
embed.addField(`Owners`, `${owners}`, true)
mongodb scares me
@sudden geyser Why?
i did it but fuck my console holy https://cdn.vurighosting.com/u/yQRTur.png
oop databases in general are scary for me.
also you can just use .map as it's more efficient
they'll both get the job done anyway
it worked

this isnt testing
was, responding to pizza
dm a mod if you fixed it
ok
I guess I can ask until he gets back
so I managed to make him stop spamming when people use keywords from his commands, but he is still responding when a command is send without the prefix
if I write just help instead of p!help, I still get him responding.
how do I make the prefix a dependency?
didn't know bots had a gender
anyways
check for the prefix...?
you're probably checking for the length of it
yeah
didn't know bots had a gender
@earnest phoenix the word bot, is a masculine noun
don't be a snowflake
you're probably checking for the length of it
I am actually
thanks buddy
What are intents for?
They're to specify what events you want Discord to send you at gateway. It helps save resources (for example, presence update).
So what does the guild gateway do
Or guild_messages etc
Will it just send all the bots guilds or?
What each intent does is on the dev docs
Is there a way of catching a Forbidden error without try/except?
Node?
wut
If your using js
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/catch
.
Don't dot post
ok nvm again
i got this code
if (message.channel.guild.roles.get(myrole[0]).position < message.channel.guild.roles.get(roles[0]).position) {
if (!memberRole.map((e) => e.id).some((e) => member.roles.includes(e))) {
// add role
} else {
// remove role
}
} else {
// bot cant add role due to it being higher
}
does anyone know why its keep on saying my bot doesn't have perms? (the last else statement)
I log message.channel.guild.roles.get(myrole[0]).position and message.channel.guild.roles.get(roles[0]).position
the first on logs 24 (myrole) and the second one logs 25 (roles)
position ^
i think you has seing the role
@digital ibex you can just use GuildMember#manageable instead of manually checking role position
Oh myb
i am happy and sad at the same time because the same reason
is there a bot.users.fetch equivalent in Eris?
client.users.get
wait
can that fetch users that the bot can't see?
or only the ones that the bot can see
alright
have a limit of gif duration?
client.users is the cache
or i can create a gif of 1 hour
To get users from REST you need to use bot.getRESTGuildMember()
and if i can how can i do it for my bot
alright thanks
no mental
@quaint hornet gifs arent limited by time (if im not mistaken), they are only limited by size
your bot won't be able to get that user, you'd need getRESTUser, not getRESTGuildMember
so i can generate a 1 hour gif to my bot liryc comand
i want to do the lirycs appear at the same time of the original music
@digital ibex and yeah, i was wondering why it was GuildMember and not just User
so insted of a big text on screen
there are hour long songs?
anyone got any ideas about my issue?
It began playing at midnight on the 31st of December 1999, and will continue to play without repetition until the last moment of 2999, at which point it will complete its cycle and begin again
your cpu when this is finished π₯΄
@digital ibex else wont do anything, you have to check if (!message.guild.me.hasPermission("MANAGE_ROLES"))
im already checking for that
why wont else do anything? and its becuase my bots highest role is lower than the role im trying to give it
not because it doesn't have the manage role perm
yeah?
so it will return it has no permission
thats why i've got the else statement
send full code
?????
if (message.channel.guild.roles.get(myrole[0]).position < message.channel.guild.roles.get(roles[0]).position) {
if (!memberRole.map((e) => e.id).some((e) => member.roles.includes(e))) {
// add role
} else {
// remove role
}
} else {
// bot cant add role due to it being higher
}```
well Two Finnish Artists Create Longest GIF in the World That Will Play for 1000 Years
judging by message.channel.guild
alright
try putting else if (message.channel.guild.roles.get(myrole[0]).position > message.channel.guild.roles.get(roles[0]).position)
see if that fixes the issue
Β―_(γ)_/Β―
well now i just have to find some way to get the lirycs with a timestamp
this probably gets asked a lot but anyone know some good hosting services?
depends of what you use
python
so i have a dumb question
can i make a website that has file system access 
if (message.channel.guild.roles.get(myrole[0]).position > message.channel.guild.roles.get(roles[0]).position) {
if (!memberRole.map((e) => e.id).some((e) => member.roles.includes(e))) {
// add role
} else {
// remove role
}
} else if (message.channel.guild.roles.get(myrole[0]).position < message.channel.guild.roles.get(roles[0]).position){
// no perms
}```
so i have a dumb question
can i make a website that has file system access :blobThonk:
like access to all files?
client side or server side, tony?
client side, painfully
nope
i need to pass through a directory and fetch all md files lol
oh right
hmm
i mean
you could, in server side, send that data, and in the client side do whatever u want with it
are you using express for your backend?
oh
all i have at my disposal is front end js
yea
its for a doc gen thing
since the docs are being hosted on gh pages
no back end
small question too
i have this layout
does this make sense programmatically
like can you see the structure roughly
Mhm
I need help how to make a code to show the server logo
Read the docs
Can you send me it
Anyone have this error?
https://ghostbin.co/paste/wazv3 order.js
https://ghostbin.co/paste/mpt8e index.js
https://ghostbin.co/paste/baw5o claimOrder.js
enmap.ensure
doesnt add one of my subobjects
(node:18052) UnhandledPromiseRejectionWarning: TypeError: Cannot set property 'ableTo' of undefined
In your third file, observeable.order.review.ableTo for some reason is undefined and you're trying to set it to true.
is observeable being logged?
what is it logging?
isnt working corrrectly
when u console.log in the third file
its logging the obj
without a subobject
i dont know wha tht exact is because my friend ended the vsshare session
its most likely a problem with enmap
client.channels.cache.get("733486836768309279").send(${suggestMsg} (by: ${message.author});
TypeError: Cannot read property 'send' of undefined
i am having trouble fixing this
It means the channel was not found in the cached collection.
You should verify that the result of .get() is not undefined.
client.channels.cache is a collection of cached channels your client has access to. In reality, they're called managers.
But the point is client.channels.cache.get(...) has the possibility of returning undefined. Therefore, you should make sure to check it beforehand (e.g., if (channel !== undefined) {...})
what if it's null?
undefined I meant*
okay well what if it's undefined?
return it?
if i return it then it's not doing what i want it do
If it's undefined, don't try to send it. As a better example: ```js
let channel = client.channels.cache.get(...)
if (channel !== undefined) {
// send it with channel.send(...)
} else {
// do something if it doesn't
}```
well if i don't send it then the what's the point of command
return if channel is falsy
We don't know what your command does, so you should be able to handle if you can't find the channel.
i am trying to send a message to only this channel 733486836768309279 from what user says
is there a way to find the channel or do something so i can send message in there
What lib are you using?
[
{
type: 'file',
inRootDirectory: false,
name: 'test2.md',
path: '/testing',
rawContents: 'more test content',
renderedContents: '<p>more test content</p><br />'
},
{
type: 'file',
inRootDirectory: true,
name: 'test.md',
path: '/',
rawContents: '# Hello\ntest content',
renderedContents: '<h1 id="hello">Hello</h1><br /><p>test content</p><br />'
},
{
type: 'directory',
inRootDirectory: true,
name: 'testing',
path: '/'
}
]
success π
now reading the dir for all md files, sanitizing and rendering them to html
Oof
I just checked what you first wrote. Are you sure client has channels?
You are missing the guild
i am?

A client instance does have the .channels property.
The issue is the channel ID could not be found in the collection. Are you 100% sure the channel ID is actually pointing to an existing channel.
That collection must be huge
i just created it, could that be the problem?
wait let me try doing it with different chnanel
Probably not if you receive it through gateway. But like I and Zere said, you need to check if it's not equal to undefined. THis has been going in circles for a bit.
Console.log client.channels and see whats inside
okay
ChannelManager {
cacheType: [Function: Collection],
cache: Collection [Map] {}
}
zeref

...
I am new here and trying to respect rule nΒ° 7.a.
An advice to give you is to always log and see/analyse what your variables hold when you face issues. It will help you a lot and most of the time you won't even need help:)

π
what do you want (https://dontasktoask.com)
@earnest phoenix you fking forgot to save
bruh
Ctrl+S
i did lmao
ahem
Show me package.json
The file you're in is called index.js, not Index,js
Yeah
im dumb
You type node index,js instead of node index.js
you can actually type node . too
it was a comma
im dum
Ik, dont worry, that happened to me alot.
lmao
i have bot with 14 servers in it
Is there a good way to write binary statistics trees to a file?
And would it be faster than java object serialization?
does anyone know how to make the bot appear as "typing" in discord.js?
how do you move the navbar to the right?
@earnest phoenix thats really obvious sorry lol
should've thought to look that up on the docs
Its fine
yea whatβs your problem?
i need my bot to embed like carl bot
i mean like
embed #hex {message}
but i can only set to 1 hex
what to do?
what lang
Js
Library?
hm
should i make seprate commands like embed red or something?
embed blue
like this
Anyone?
You want your embed to have color?
i want it to be like Carl bot
Uhh
color is easy
but i mean like
we can choose each colour
embed #hex {message}
like this
I dont quite get that.
becuase i can only set it to RANDOM or any other
exactly
Ah
the setColor() method of a message embed object accepts hex
^
ty
embed.setColor('user\'s hex color input')
uh
i should use this in the place of .setColor?
embed.setColor('user\'s hex color input')
this
no, you replace that string with what the user inputs
yeah
if (!args[1]) return message.reply("Please add a message");
let text = args.slice(1).join(" ");
let sayEmbed = new Discord.RichEmbed()
.setColor("#0a0000")
.setAuthor(" ")
.setDescription(text);
if (!message.member.hasPermission("MANAGE_MESSAGES")) {
return message.reply(
"**You need __Manage Messages__ Permission to use this command ** :blast: "
);
}
message.channel.send(sayEmbed);
message.delete();
};
see this my code
what should i edit
the .setColor() part
ok
if (!args[1]) return message.reply("Please add a message");
let text = args.slice(1).join(" ");
let sayEmbed = new Discord.RichEmbed()
.setColor(`user\'s hex color input')
.setAuthor(" ")
.setDescription(text);
if (!message.member.hasPermission("MANAGE_MESSAGES")) {
return message.reply(
"**You need __Manage Messages__ Permission to use this command ** :blast: "
);
}
message.channel.send(sayEmbed);
message.delete();
};
this?
exports.run = (client, message, args) => {
if (!args[1]) return message.reply("Please add a message");
let text = args.slice(1).join(" ");
let sayEmbed = new Discord.RichEmbed()
.setColor(args[0])
.setAuthor(" ")
.setDescription(text);
if (!message.member.hasPermission("MANAGE_MESSAGES")) {
return message.reply(
"**You need __Manage Messages__ Permission to use this command ** :blast: "
);
}
message.channel.send(sayEmbed);
message.delete();
};
owo
Also you use discord.js 11?
this is my old code
Upgrade to discord.js 12
I am new
what should i do to update?
instead of RichEmbed, it'll be MessageEmbed
Yep
but i use that only
that's all you'll need to change for that command it seems
and that works perfectly
okay
const fs = require("fs");
exports.run = (client, message, args) => {
if (!args[1]) return message.reply("Please add a message");
let text = args.slice(1).join(" ");
message.channel.send(text);
};
exports.help = {
name: "embed"
};
exports.run = (client, message, args) => {
if (!args[1]) return message.reply("Please add a message");
let text = args.slice(1).join(" ");
let sayEmbed = new Discord.RichEmbed()
.setColor(args[0])
.setAuthor(" ")
.setDescription(text);
if (!message.member.hasPermission("MANAGE_MESSAGES")) {
return message.reply(
"**You need __Manage Messages__ Permission to use this command ** :blast: "
);
}
message.channel.send(sayEmbed);
message.delete();
};
exports.help = {
name: "embed"
};
this is my full code
is this okay?
for custom color
Yes
Send error message please.
Hey
Since most API give a name if we fetch them
Like
They have "LINK" : www.limk.com
But I found a API
Which had something like this
And no name
So how do I fetch it and make it into an embed
JSON.undefined ?
Wdym?
I need art 
Perfect
heck yeah
Oh forgot the credits
does a Developer Application License allow you to have announcement channels
Yes
@strange trout May i have the website link?
It's not public, working on localhost
how dumb-
I am not dumb
anyone else get a dm from discord just now?
from clyde?
Yes
i havent got it but its probably bcs you need a Privacy Policy for bots in the Future
do you have a verified bot
i think they sent it to all the verified ones
Guys whats the best programming lqnguage for making a discord bot?
Is it scratch?
ban yourself
and its js
theres not really a best
@earnest phoenix I got that dm aswell
It's official right
my bot got verified a few days ago
O that's cool
anybody have the docs for Queue
anyone have a quick and dirty way to count emoji reactions on a message?
js?
python apologies.
then idk
Maybe read the docs
trying to find it online, but nobody on stackoverflow cares about discord so lol.
Check the doc
anybody have the docs for Queue
@earnest phoenix what queue?
yeah im not understanding.
def check(reaction, user):
return user == message.author and str(reaction.emoji) == 'π'
this looks like the code im looking for in the docs.
.
ok this discord is useless. good bye
does anyone know
just wait
a hidden iframe
how tho
it's not playing the video.. the youtube link won't work
how do we src it
Embed the video and set it's display to none
<audio controls autoplay>
<source src="https://www.youtube.com/watch?v=4F7sdy2rZws" type="audio/mpeg">
</audio>
Subscribe for more epic music: https://www.youtube.com/user/wersion751EXTENDED
Like our page on facebook: https://www.facebook.com/pages/Wersion751/236499826560046?ref_type=bookmark
Publisher: Revolt Production Music
Composers: Philippe Briand and Gabriel Saban
Album: ''Infini...
I tried this
it didn't work
style="display: none"
oh I don't know then
You should be able to get the code from youtube itself, there's like an embed video option
a
<iframe width="900" height="506" src="https://www.youtube.com/embed/4F7sdy2rZws?rel=0;&autoplay=1&mute=1&loop=1&playlist=4F7sdy2rZws" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
how do I ge tthis to auto play
@south coyote its not auto playing
hm..
when page loads it won't
:l
why
π¦
attemp this
<iframe width="900" height="506" src="https://www.youtube.com/embed/4F7sdy2rZws?autoplay=1" autoplay=true></iframe>
nothing ?
nothing
it won't auto play
anyone having this problem ?
it's stopping my bot from starting,
<div id="ytplayer"></div>
<script>
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/player_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
var player;
function onYouTubePlayerAPIReady() {
player = new YT.Player('ytplayer', {
height: '360',
width: '640',
videoId: '4F7sdy2rZws',
autoplay: 1
});
}
</script>
@earnest phoenix attemp this
it was working 30 mins ago π 

Hi
@media only screen and (max-width: 480px)```
how do I make only desktop see something
I want to hide it on mobile
but I can only seem to hide on mobile
but not hide on desktop
@south coyote
sad, my bot is waiting approbation π¦
Coding my guy
import discord
client = discord.Client()
@client.command()
async def ping(ctx):
ctx.send('pong')
done @dark eagle
using css @earnest phoenix
SrNox
how
@media only screen and (max-width: 400px) { /* <-- Or your prefered width */
.gone {
display: none;
}
}```
I tried doing this
but it removes it from mobile
that does not answer
my question
I KNOW HOW TO HIDE from mobile
but how can I hide something on desktop
but show it on mobile
Thx
Anyone know how one would fix this Problem ?
??
Do you use discord.Client or commands.Bot?
bot.commands
What
i guess commands.bot
can someone make me full economy system please? im so bad
hey guyz, I need help with discord commando
@stiff stream no one is going to be making you stuff for free dude

can aynone
@stiff stream i can do for 50$
site link
https://gargle.ml/
Screenshot what it looks like for you
then click docs and screenshot that pls
both of you, this is not hiring channels
if you have bot development questions, feel free to ask
i will
on dif devices
yes
adding custom panel
oh damn, thats neat
oh damn, thats neat
fr
color scheme dont match
idk I will figure something out
i need that wallpaper plz
xd
for the top buttons i mean
it looks better on mobile
nah its ok
or ipad
Hi to all! How can I verify my bot if it is not on 100 servers?
I was gonna make a header




