#development
1 messages Β· Page 415 of 1
also you forgot ""
also it is client.login('token')

^
oh ok
@languid dragon when u try not to spoon feed but the person doesnt understand anything
then
how about you do some research
and actually learn how to code before you start using the discord API wrapper
you clearly dont know how to javascript
since you tried to put a string in without quotes
^
you'd better learning before trying to code
I hope you already generated a new token x)
huh?
hi guys spoonfeed me π
@quasi raptor any mention of role/channel/user contains the id of the entity you're pinging, <@!id> for users, <@&id> for roles, <#id> for channels, add \ before mention and you'll see that ^^
so you only need to use a little bit of regexp to get the provided id
@halcyon torrent thats great!
@quasi raptor 
hey um guys
my commands arent working
could anyone help me pls
i could send you a file for them
dont you think you get more help than you should? xD
im sorru
learn to debug on your own, you have console.log and internet if you dont understand the error message
its not an error message
it just none of my commands are working
AHAHAH I FIGURED IT OUT
IM OUT MOTHERFUCKERS
WOOOOOOOOOOOOOOOO
XD
my message didn't come through
ah
I'm thinking about making my images from html instead of pillow package
what do you guys think?
Ignoring exception in command greet
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/bot.py", line 846, in process_commands
yield from command.invoke(ctx)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 367, in invoke
yield from self.prepare(ctx)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 345, in prepare
yield from self._parse_arguments(ctx)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 304, in _parse_arguments
transformed = yield from self.transform(ctx, param)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 212, in transform
raise MissingRequiredArgument('{0.name} is a required argument that is missing.'.format(param))
discord.ext.commands.errors.MissingRequiredArgument: ctx is a required argument that is missing.
I have this problem
I can run only potato help
...
**ctx is a required argument that is missing **
Um no? How
what's your code
Wait one sec
@bot.command()
async def greet(ctx):
await ctx.send("π π Hello, there!")
How
async, right?
Yep
@steel nacellet.command(pass_context=True)
async def greet(ctx):
await ctx.send("π π Hello, there!")
oh
ping
ctx.send is rewrite and context should be passed automatically.
^
Ignoring exception in command greet
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 50, in wrapped
ret = yield from coro(*args, **kwargs)
File "bot.py", line 25, in greet
await ctx.send("π π Hello, there!")
AttributeError: 'Context' object has no attribute 'send'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/bot.py", line 846, in process_commands
yield from command.invoke(ctx)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 374, in invoke
yield from injected(*ctx.args, **ctx.kwargs)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 54, in wrapped
raise CommandInvokeError(e) from e
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'Context' object has no attribute 'send'
Error
You are using async, I assume?
Try using bot.say.
Okay wait
And pass_context=True
await bot.send_message(ctx.channel, "hi")
Or await bot.say()
^
self is not defined there, hence, I doubt it is self.bot.
@steel nacellet.command(pass_context=True)
async def greet(ctx):
await ctx.send("π π Hello, there!")
Replace this with..?
@slender thistle @floral stone
I'm in class
One sec
don't have time to spoonfeed
You are welcome.
@tardy hatch You are using the latest version of discord.py...
send is part of the rewrite version
so i want to make a giphy command that searches for a gif. there is a parameter for rating. should i do g or pg
ok
Can anyone tell me something simple? I have a bot coded in discord.py (rewrite version, non-command module) and am wondering about one of the features discord.py holds. It's the presence changing for the client.
The client can change the status and game at the same time. However, because the rate limit is at 5 updates in 1 minute, does changing the game and status of the bot in one presence changing line count as 2 presence updates in Discord? What I mean is this example I can take from my own bot.
await client.change_presence(activity=bot_game, status=bot_status)```
Does it change the ``activity`` and ``status`` seperately and so count as 2 changes or does it change them simultaneously and then count as only 1? Thanks in advance.
It is one afaik
Alright, thanks.
like you would send a simple picture
And for this question, docs are your greatest friend
i am not using a richembed
how to remove that little bit of white, moving the div
it's the body
you can see
I am not sure if its either html or body
so I always just do it on both
Β―_(γ)_/Β―
probably html
i usually start all stylesheets with a
* {
margin: 0; padding: 0;
box-sizing: border-box;
}
the problem of the page margin solves itself plus you get consistent margin/padding behaviour across all browsers
https://gyazo.com/fd5690dda7b5c62b174e183caf4324f4 does anyone know what this means?
lol
How do you make the bot say how many servers it is on the client log, i have tried many things but i don't know what to do. I'm using discord.js
do you know how to get how many servers it is in
no
@languid imp
Does anyone know what can make an asyncio loop not work?
what are you using?
Python.
js
Adding await asyncio.sleep() into try: actually made it work. 
You don't define it
isn't it an argument
You can't use message outside of the message evrnt
Guild create doesnt have that
Event
So you cant reference a message
Use bot.guilds.get
bot.channel.get
alright 1 min
@topaz fjord nou
weeb
no me
That's not enough info
Show error
Then show how you did it
wdym
... The code
I just realized you set bot activity in create and delete
That's gonna get you d/c from the gateway
Your supposed to get the guild before u get the channel iirc
so how do i fix it?
Get the guild then get the channel from the guild
No
wtf?
what docs.
The discord.js docs
While we're at it please don't set bot activity in guild create/delete
Kthx
I feel like what I said before just was ignored
Do you know how to fix my problem ?
I do but im not gonna give you code
y i cri
Rule 7B
assfeed instead?
This is what docs were made for
i am trying to learn
but i need more help
@elder rapids what would u class this command as
I'm getting this infrequent issue and it seems to happen on very few downloads
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I thought I already fixed it once, apparently not
any thoughts?
umm please provide a bit of context like code
That's all it prints out, it attempts to download audio from youtube then throws that error only on specific songs
I get no lines where it errors since it's not related to my project
Could it be country restriction?
it has something to do with the SSL certificate
I have already added the SSL cert from youtube to my keystore
thought that fixed it, did on some songs
and not others
tis an odd one
Why would you need to manually add youtubes tls cert
please, use codeboxes when you're sharing code 
Canβt
I am on mobile.
@elder rapids It was one of the recommendations I read off google as an attempt to fix it 
just do add 3 ` at the beginning and the end of the code part :x
Youtubes tls cert should automatically work fine if you have he proper cert Auth like every OS should
Donβt see it.
`
βββ
copy it
const Discord = require('discord.js');
module.exports.run = async (bot, message, args) => {
let msg = '__**Help Menu**__';
bot.commands.forEach(c => {
msg = msg + `\n**${c.help.name}** - ${c.help.description}`;
});
msg = msg + `\n**For more help, go to **(server invite) the bot prefix is also ${bot.prefix} you can find it by clicking the bot Mee5 and see what its watching.`;
let embed = new Discord.RichEmbed().setDescription(msg).setColor('#2763b8');
message.channel.send('Help has been sent in DMs! Good luck with my commands!');
message.author.send(embed).catch(() => {
message.channel.send('An error occured');
});
}
module.exports.help = {
name: 'help',
description: 'Shows the help menu'
}
There.
any error message?
How do you make your bot always run without you having your pc on?
buy a vps
you need a server to run the bot
What server
you can use your pc or rent a server
run the code?!?
Oh
You sure you want a PC on 24/7
No
Rent a vps then if you don't want that
then you need to rent a server or vps
I mean or by the name
What do you mean by not as good
^
Slower
Oh
@elder rapids, If Iβm making a chat moderator and joke bot, I canβt use web host?
You're not making a website
Well you can but dont
Just rent a vps
Oh
And it's in the name
@elder rapids such a weeb
Oh ok
Bigger better servers can cost 50 to hundreds
When you need more power you would have to upgrade
Oh
@elder rapids thousands
Yes and thousands
Depends on how big the bot you want to be.
I'm on mobile cut me slack
So the big bots like pokecord
I'm not going to write everything
@elder rapids no
They pay thousand if dollars?
They potentially are
Oh
Oh
Rythm are about 5-6k iirc
you don't need 1000$
^
Rythm has several dedis
Most are for lavalink
So for a bot with maybe 10-30 commands, how much would it be
for help
Ew
thanks for insulting us before asking for help lol
π @topaz fjord
I don't accept
The resources your bot needs is more dependent on what your bot is doing
but i accept π
Not amount of commands
i need mental help
More servers = more money
We're not a mental hospital
HOLD THE FUCK UP
Now
That's good shit not fuck that shit
Go to #memes-and-media if you want to say random stuff
fuck me too
Also that discord.js website is useless lmao
ik
It actually helps if you know how to read docs
We gave you some
Learn how to interpret documentation then
that goes up my ass
/shrug
Nope.
No because it's spoon feeding
why the fuck not
No
We're not here to code for you
i know
You wonβt learn then.
Rule 7B
i just need some fucking help
Why is not my website displayed on your website as online?
and it didnt work
If you need help we cannot help you by π₯
The real question is why are you vulgar
idk
It does work.
No need to do that while asking for help
u wana spoon my ass EWWW @earnest phoenix
@stuck coyote how is this related
...
so basically
I'm about to ping a mod 
Ahsan take that to #memes-and-media
u know what my code is yes.
This is for development help.
Define it.
Why is not my website displayed on your website as online? https://discordbots.org/bot/389841440034783242 @topaz fjord
but its weird
@stuck coyote your bot is displayed offline because it's offline
its guildcreate/delete thing
Well we cannot help you with that much info.
@stuck coyote your bot was kicked most likely
No, it's online
Several people are typing...
That's what "???" means
We told you why your code didn't work in the other stuff
I just checked your bot and it's offline
Go back and look
wtfff
@elder rapids No, he did not
@stuck coyote
What category would an XKCD command be under?
Now you turned it on
it wasnt in the server
owo
no it wasnt lol, aeth added it
It was here 2 minutes ago
i know but u checked AFTER aeth added it
yep i give up 2day
This is fake
something like user.guild.channel
@dire abyss either keep this like G rated or dont message in here at all.
Don't use that, it's an example
Not even right but k
I know, thus I said don't use my example
Anyways, what category would an XKCD command be under?
fun on my bot
ok, thanks
Not with me @topaz fjord
bot.guilds.get('id').channels.get('id')
``` @dire abyss I don't know how fucking clear I can get
is that js or py
c#
oh
js
THANK U BABE @topaz fjord
ok
No
spoonfeed is cool
^
It was a joke
Im sorry @elder rapids just got really pissed off
Wow
^
That's not something to be proud of
?
i think we're going to be the three muskateras
No
fuck u too babe
I thought wanda told you to keep it pg
pg 13
π Aly
wanda, you deserved a pat
pat
@south finch pat pat
er slight mention, they just wanted a spoonfeed too
Weirdos is not singular
β€
sigh
i mean for people like him
Ok
I need clarification
back to dev talk
The discord outage broke my bot.
Yup
Show error?
But it doesnβt have 2048 characters.
i'm sorry to say it, but it most probably does
in description?
Yup.
interesting
const Discord = require('discord.js');
module.exports.run = async (bot, message, args) => {
let msg = '__**Help Menu**__';
bot.commands.forEach(c => {
msg = msg + `\n**${c.help.name}** - ${c.help.description}`;
});
msg = msg + `\n**For more help, go to **(server invite) the bot prefix is also ${bot.prefix} you can find it by clicking the bot Mee5 and see what its watching.`;
let embed = new Discord.RichEmbed().setDescription(msg).setColor('#2763b8');
message.channel.send('Help has been sent in DMs! Good luck with my commands!');
message.author.send(embed).catch(() => {
message.channel.send('An error occured');
});
}
module.exports.help = {
name: 'help',
description: 'Shows the help menu'
}
Look.
Embeds can't go over 1024
well you have a for each command for every cmd with the description of it, ofc it does exceed, try printing out the msg variable and you'll see
tf
So how do I make it have more than one post than?
embed description is 2048
field description or value is 1024
post more embeds?
or make a paginator with the reactions
More like ratelimiter
or just make a list of command without the description
No thanks.
I donβt have time to go through all 40 commands.
Deleting the description line.
its not that hard
you don't have to delete the desc?
as you want
Since that would help a lot more.
What if I reach the limit even after I take off description.
Ok gtg.
If you want to explain do it in my DMs so I can read it tomorrow l
Only if you want to.
for my bot I wrote a lib that handles the limits shown above and if those are exceeded it paginates with reactions you could do the same but instead of pagination just send multiple messages
that way you'll have a centralized place and you can reuse it in other commands as well
why make your own lib
@floral stone Becuase why not?
It's extraly unneeded imo.
still better than spamming copy paste π€
erm im getting this error, im not sure why, since the thing im requiring is another class http://prntscr.com/jjb7h9
http://prntscr.com/jjb8ta do i need to get the Discord.Client class in that other folder?
because thats in Client
you need to export the class in order to use it like that through require
module.exports = class jrClient ...
like this? http://prntscr.com/jjb9bz
that would work too
it has this error tho.. TypeError: Class extends value #<Object> is not a constructor or null
idk why
should i export Discord.Client instead?
no
are you exporting jrClient where jrClient is located @earnest phoenix
or you did it in the command file xD
nah im exporting it in the same file
which is Client.js
you can try something very basic to see if it works and then go chunk by chunk to find out what's messing with it
as an example, that works
why is command extending client, i see a big problem
who knows what he is doing 
please dont show bad examples kthank
I am following his code so I don't confuse him more
@earnest phoenix btw, Client is undefined thats why and commands shouldn't extend Client
its not undefined, its an object =)
Im making a framework like klasa and kommanda
ive made a v1 already
but im moving to classes
instead of functions
@earnest phoenix you cant make klasa or komada
its one of a kind
@clever yew amirite
I know
im pretty much just adding util to discord.js
yes but Commands shouldn't extend Client
thats just a horrible idea and wont work
true
okay
how am i suppost to get <Client>.commands tho?
Having trouble with thinking of some commands to add, any suggestions?
same
uhh
userphone?
:3
I have userphone on my bot
const fs = require("fs");
class Client extends DiscordClient {
constructor(...args) {
super(...args);
this.commands = new Discord.Collection();
}
async loadCommands() {
// load all commands from directory, require them, set them into this.commands... profit
}
async login(token) {
await this.loadCommands();
return super.login(token);
}
}```
then
make a base Command class
Well, got this to work, now I go to sleep https://vgy.me/tIuvpQ.png
nice
ew
Does Hyper support SSH?
yea
Which language are you using @earnest phoenix ?
Node.js
And Discord.js as the lib
Like when someone does {prefix}help
It sends more than one help messages in the users DMs.
ah, js, i'm useless then >.>
Oh ok.
@earnest phoenix can't you just do user.send() multiple times?
I don't even have that once.
for DMing users?
Wait what I am confused.
how are you currently sending a dm?
const Discord = require('discord.js');
module.exports.run = async (bot, message, args) => {
let msg = '__**Help Menu**__';
bot.commands.forEach(c => {
msg = msg + `\n**${c.help.name}** - ${c.help.description}`;
});
msg = msg + `\n**For more help, go to **(server invite the bot prefix is also ${bot.prefix} you can find it by clicking the bot Mee5 and see what its watching.`;
let embed = new Discord.RichEmbed().setDescription(msg).setColor('#2763b8');
message.channel.send('Help has been sent in DMs! Good luck with my commands!');
message.author.send(embed).catch(() => {
message.channel.send('An error occured');
});
}
module.exports.help = {
name: 'help',
description: 'Shows the help menu'
}
can you not just send two things?
How?
message.author.send("Help message part 1");
message.author.send("Help message part 2");
Where do I put it??
what are you even trying to do
Well.
My help message that appears in peoples DMs is over 2k charavters.
characters
ok
So I need to make it send more than one post so they can see all of it.
Well fro the command to work.
for*
and where do you send the help message in the code
The one that makes it DM the user?
yes
I think it is line 10
so just do it twice
let embedPart1 = new Discord.RichEmbed().setDescription(msgPart1).setColor('#2763b8');
message.channel.send('Help has been sent in DMs! Good luck with my commands!');
message.author.send(embedPart1 ).catch(() => {
message.channel.send('An error occured');
});
let embedPart2 = new Discord.RichEmbed().setDescription(msgPart2).setColor('#2763b8');
message.author.send(embedPart1 ).catch(() => {
message.channel.send('An error occured');
});
Sorry I don't get that.
@earnest phoenix Yes it works with Node, you have to know How to use JSON parse and such things though
that's fine
I've left JS and I'm going for C# instead
C# is really nice 
python for life
^
yes

#python4life
python>.>
@earnest phoenix can u show me help command file for js?
Your welcome.
How do people catch actual name changes and avatar changes? I can catch nick names and message edits but not those.
What lib?
if your lib isn't shit it'll have events for both of them
just take a look at the documentation or source
Nicknames are usually under member update
wait the lib isn't forced to split anyway
you can do that with a simple if statement
username and avatar changes trigger userUpdate
and you can test with simple statements
C# > all
can someone help me send the server count to the website?
im sorry for asking alot
and also
DISCORD.JS ALLDAY
#312614469819826177 have vague examples of how we used to do it
or you can go to the api docs on the website for the updated way
we have a dblapi.js library for posting the stats now
coolcool
Should I PR my weird code to dblpy lib because it's example kinda does not work.
i'm having trouble with adding my dbl token?
is it the one where we get on the place where you sent me?
you can get ur API tokens from clicking ur app here
coolcool
is that d.js?
use that instead
I can't.
..
@earnest phoenix then why bother replying? lmfao
@tardy hatch i don't think anyone here will help you with cogs
it's something you will need to read the documentation on
Idk
then dont
sure thing
Or u can help me
Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.
Here:
are you trying to add redbot cogs?
@languid dragon no
I try to add cogs for a simple python bot
do you mean this? https://pypi.org/project/Cogs/
because
it doesn't even seem like you know what you're asking for
if that's what you're looking at
then the instructions are right there
...
how to download google Cosmo
google: how to add cogs to a python bot
too rusty at python sorry
@rich depot really needs better hosting
I'm hosting my bot on a hecking raspberry pi, and it's still faster than breadbot
it's been over10 times since I'm recommending skysilk to people
there is a free plan you can use
but right now they are in beta testing so any plan gives you 100% discount
But is it better than a Raspberry Pi?
idk what's better, it's like a normal any other vps
Well, I practically have my Raspberry Pi next to me right now, so
well, the only difference is you will be connecting to your vps's vm
yes they are in beta testing
they are a new service
but they still have a free plan that anyone will be able to use after closing beta
iirc, the free plan contains 12mb/s, 500GB storage and 512MB RAM
something like that
The Pi 3 has 1GB of ram and can be wired to your home network
It also supports usb
so checkmate Β―_(γ)_/Β―
does your bot even use that much of that system?
Let's see
&stats
oh right
bot commands don't work here lol
= STATISTICS = β’ Mem Usage :: 17.15 MB β’ Uptime :: 18 secs β’ Users :: 6,597 β’ Servers :: 22 β’ Channels :: 548 β’ Discord.js :: v12.0.0-dev β’ Node :: v10.0.0
That's what it says
I thought your bot is @rich depot, theses are the stats from @fallen crag 
I was just saying that breadbot needs better hosting since it was slower than my bot
Which my bot is also kinda slow
Are you sure the delay is because of the hosting?
omg dis guy he cant even google
I wish I could count the amount of times you have already asked this and acting like it's the first time you have ever asked
On google i can t find
@ruby dust ikr
thanks ken
^
Then you should learn how to research
rip
Error: http://prntscr.com/jjid3n
Code that caused the error: const gifsearch = require('gifsearch');
Can anyone help me?
I don't get the error.
So I need help from someone that understands it to try to explain it to me.
do you have that module installed
in package.json add gifsearch
It already is there.
have you installed the module
you clearly forgot the - in the require
if thats the name of the module
gif-search
why
why the python can stop by itself automacilly when we left it idle

I am trying to grab the latest message within a channel with discord.py (rewrite). However i see no variable in the channel object to grab the messages, let alone the latest one.
Anyone else did this before and so how can i grab the message?
I see get_message, but without an id i wont be able to grab that last one
(Maybe i am just missing the value)
channel
['__abstractmethods__', '__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__slotnames__', '__slots__', '__str__', '__subclasshook__', '_abc_cache', '_abc_negative_cache', '_abc_negative_cache_version', '_abc_registry', '_edit', '_fill_overwrites', '_get_channel', '_move', '_overwrites', '_state', '_update', 'category', 'category_id', 'changed_roles', 'create_invite', 'create_webhook', 'created_at', 'delete', 'delete_messages', 'edit', 'get_message', 'guild', 'history', 'id', 'invites', 'is_nsfw', 'members', 'mention', 'name', 'nsfw', 'overwrites', 'overwrites_for', 'permissions_for', 'pins', 'position', 'purge', 'send', 'set_permissions', 'topic', 'trigger_typing', 'typing', 'webhooks']
What are some essential bot commands that every bot should have?
nvm, solved.
channel = bot.get_channel([channelid])
async for message in channel.history(limit=1):
return message.content
@molten pewter whatever if it is kind of significant
like a fun command or a utility or music, not only info ping and help
get your own ideas lol don't ask for more
ok
that's what I do
Thats another way of doing it ye
Axler
Removed miliseconds. http://a.very.lewd.cat/usI8p.png Opinions?
This was supposed to go in #general, uh.
and i feel like it's hard to read
like you can't differentiate what is a title and what is content
ygm?
use markdown
like
Status: DND
could be
Status: DND
or at least something else, but then vertically it'll be difficult to read
Will see.
@slender thistle personally still think if you haven't done anything with it to move the users pfp into the author image
^
Embed author has an image
Oh
I got it wrong at first. π
What about the image field? Leave it empty or?
http://a.very.lewd.cat/FtLkC.png :^) @languid dragon
its ok
Ask your question rather than saying you need help and unnecessarily drawing out the conversation
ok
so
What I want; I want to set ssl config to my server (nginx)
What is env; Ubuntu 18.04 LTS server & nginx 1.14
What is prob; Error code in Firefox is SSL_ERROR_NO_CYPHER_OVERLAP
What was last config; ssl_ciphers HIGH:!aNULL:!MD5;
Here
How would I make my bot send more than one help post in DMs?
lib?
I mean like you know how dyno and other bots have more than one post in your DMs when you do {prefix}help.
I am trying to add that to my bot since it won't work unless I do so.
send the help command code
Lemme change to not have the invite in it one sec.
const Discord = require('discord.js');
module.exports.run = async (bot, message, args) => {
let msg = '__**Help Menu**__';
bot.commands.forEach(c => {
msg = msg + `\n**${c.help.name}** - ${c.help.description}`;
});
msg = msg + `\n**For more help, go to **{server invite} the bot prefix is also ${bot.prefix} you can find it by clicking the bot Mee5 and see what its watching.`;
let embed = new Discord.RichEmbed().setDescription(msg).setColor('#2763b8');
message.channel.send('Help has been sent in DMs! Good luck with my commands!');
message.author.send(embed).catch(() => {
message.channel.send('An error occured');
});
}
module.exports.help = {
name: 'help',
description: 'Shows the help menu'
}
There.
yo
on peux m'aider a savoir pk quand je fais une des comandes ca delete mon json afk ?
https://hastebin.com/wurexedoba.js
What do you mean??
@spring ember
create an array and split it to multiple arrays of a length of your choice
then send each one in different message
One second let me see what arrays mean in discord.js docs
Oh ok.
guys how to use islambot
ask their support server?
Umm how would I do that??
@spring ember Sorry for the ping but how would I do that?
Sorry I am not really used to this.
learn javascript first @earnest phoenix
Ok.
You are sending a single embed and the text its too big to fit. What you want to do is split the text in multiple pieces and instead of sending one embed, send all the pieces one by one. However not knowing about arrays is something very primitive so you should definitely first learn the basic programming stuff, read about the language youβll be using, read some of the libβs docs etc. and then try to solve problems.
oi
oi
error?
Im trying to get the total member count, offline or online. Everytime the bot updates the member count name of a channel, it fluxates
doesnt give me the same number
how would I get all of them, including offline members in 100 + member servers
@kind garnet discord.js?
yes
msg.guild.members.size is what you need i think
What line is the code on @earnest phoenix ?
@earnest phoenix not that good with Java, but can you search your code for gClient.chatMsg
Or chatMsg
its users
Java doesn't have TypeErrors
and that doesnt work
Seeing if it is called anywhere
um
Well, I'm out of ideas then π
rip
@night imp any ideas?
It doesnt give an error.
what does it return
it gives off fluxuating member sizes.
Perhaps because caching?
^
Also make sure your discord.js is up to date
I just tested it and got the same output
It should do it by default...
Yea well its not
client.channels.get('444332803572891649').setName(`${client.guilds.size} Servers | ${client.users.size} Users`);
let msg = message.channel.send("Updating Server & Guild Count...").then(msg => msg.edit("Updated!!"))
}}```
i need smart java person who uses lavalink
wut does this mean
[17:28:34] [ ERROR] [SocketServer] Error when opening websocket
java.lang.NumberFormatException: For input string: ""
at java.base/java.lang.NumberFormatException.forInputString(Unknown Source)
at java.base/java.lang.Integer.parseInt(Unknown Source)
at java.base/java.lang.Integer.parseInt(Unknown Source)
at lavalink.server.io.SocketServer.onOpen(SocketServer.java:81)
at org.java_websocket.server.WebSocketServer.onWebsocketOpen(WebSocketServer.java:568)
at org.java_websocket.WebSocketImpl.open(WebSocketImpl.java:706)
at org.java_websocket.WebSocketImpl.decodeHandshake(WebSocketImpl.java:281)
at org.java_websocket.WebSocketImpl.decode(WebSocketImpl.java:215)
at org.java_websocket.server.WebSocketServer$WebSocketWorker.run(WebSocketServer.java:888)


