#development
1 messages ยท Page 601 of 1
im done with my bot
Why do i get a forbidden 403 error when trying to post my server counts using dblpy?
Easier to make an HTTP call manually
uh hi
I have a bit of a problem
so for my bot I use the following as a welcome message:
A new user by the name of ${member} has joined **${member.guild.name}**!
It tells me that {member} is not defined
so what can I do?
<@&304313580025544704>
Don't tag all mods
please dont ping all mods for non-emergencies
sty

define member
should I do smt like member = GuildMember
is this the guildMemberAdd event?
yes
use whatever you defined the parameter as
I have a list of random messages that will be sent
so if you called it guildMember, use that
Why do i get a forbidden 403 error when trying to post my server counts using dblpy?
#topgg-api youll prob have better luck there
ok thanks
syztum can I pm u for a sec?
why ๐ค
Maybe don't put member
just use the parameter you passed in
ag well of course its undefined
lol
move that into the place where you defined member
or make it a function and pass member
I never understood functions how do they work?
sorry im on mobile haha lot of typos
np lol
yes
But still
^Depending on what lib he uses, just putting "member" there might not be the best idea
hes using d.js obv
and stringifying the member object gives you the tag
but I had only one massage at the start when I first coded the bot and that message was in guildMemberAdd event and it worked fine
yea because it was in the event
move your messages into the event where member is defined and it will work
oh okay lemme see
I understand most of discord.js but sometimes I do get stuck on simple stuff
yeah yeah xD
i gotta blast but good luck have fun lol
cya
xD
Was there ever a survey don't about what languages/libs everyone here uses. I feel like a solid 80%+ is js stuff.
in here probably
its not oop so its easily picked up by low iqs
even then they fail to have basic understanding of if closures
class Channel extends Base { ...
class ClientApplication extends Base { ...
class Emoji extends Base { ...
class Guild extends Base { ...
class Webhook { ...
And so on...
github.com/discordjs/discord.js/blob/master/src/structures/Channel.js
github.com/discordjs/discord.js/blob/master/src/structures/ClientApplication.js
github.com/discordjs/discord.js/blob/master/src/structures/Emoji.js
github.com/discordjs/discord.js/blob/master/src/structures/Guild.js
github.com/discordjs/discord.js/blob/master/src/structures/Webhook.js
What?
Kikkia: I feel like a solid 80%+ is js stuff.
cry: its not oop so its easily picked up by low iqs
discordjs is oop library
Does this server count as multiple servers?
We might have 2x the members of other guilds but we don't count as 2 guilds
Ok cool
it is...
@spring ember wdym it counts as a big guild in terms of discord
Hello,
i want to send an embed and set the thumbnail or image as the guilds main image.
i was trying .setThumbnail(msg.guild.icon), icon is something like '351e9e265e23e0f6df5bbf23708c5f04', but .setThumbnail() expects an url. what can i do?
iconUrl?
oh its actually there. i missed it while going through the object. thanks!
Hello, I want to make a bot that sends cute images on command. What's the best practice for this? I feel like hosting .gif on my own host will just eat bandwidth.... I don't have money for that @_@
What do people usually do?
how long does a vote last? 12 hrs i assume?
@robust ice i hardcoded mine in
off of links
ยฏ_(ใ)_/ยฏ
yup
xD
@robust ice It's not as bad as you think. Discord proxies embeds through their own CDN so the only time it'll really get loaded is when its loaded by discord and when anyone that clicks the link
I'd expect most people to just keep it in discord and look at it through the embed
but the initial send attachment (outgoing bandwidth)
because it keeps sending from local host
even without hotlinking
yea the hotlinking will be discord's cdn but the initial... sending :<
yeah ik ik
i thought you just meant
sending a link lol
which may just be the best way to go about doing it ๐คท
To sorta emulate the attachment, you could always send an embed with the url as the image
yep yep
okay third times a charm anyone able to help with something??
just ask your question my dude-erino
its easier to explain via voice are you able to join a vc?
I guess
Uh...
ok the problem now is that they're slow
sending 2mb gif file everytime for a command is a bad idea?
maybe I'll just hardcode discord cdn images then, but how reliable are they? will they delete it eventually?
if the message gets deleted, so do the attachments
otherwise no, discord cant afford to have data loss
๐ค
The attachment doesn't get deleted from the servers, just locally (eventually)
I just used mantaro bots for a while, they reply with gifs incredibly fast, how do they do that?
no delay at all
Embeds
They don't need to save images locally on the bot, it simply takes the picture from a link and tells discord to display it from that link
Except it hides the url
What are they trying to do? I
when using setImage() or whatever it is the embed just displays the image
not the link
They don't delete the link. Using embeds just don't show it
Yea
ahh let me try embeds then
The link is still there the embed just doesn't show it like Jaylon said
not attachment
what are you doing
I just got here and read only a little bit of chat ยฏ_(ใ)_/ยฏ
idk what they are doing
I think they are trying to send an image just not the link
They don't want to send a file every time they need to show a picture
Oh
mhmm
Why not use an image api
I have my own image api
There usually are some for what you are looking for
but I dont use it lmao
I am trying to make my own api
That simply takes the url and outputs the image
just not sure how to go about it
imma grab something a sec
kk
we just need to work on our own ui
apache
well its old
could be slower than node.js
Then use it on my bot
we use oauth2 for auth
Ouu nice
and make sure its only me or my co dev has access to image api
๐
then make an ui so that we can upload from webpage
then grab the link and use it here
its just long to maintain that kind of api
Huh?
picture api in short
maintaining pictures, updating it ๐
yeah that works tooo
I was able to search for lolicon ๐
use regex for more failsafe
and It is tiresome to try and ban all those keywords
Apache is server software right
apache is a webserver that you can use for lots of stuff
supports ssl auto regen too
Well they don't stop the actual request from searching for it
ez pz https
hmm that works really great the embed
I make sure to put +-lolicon in my request
but it shows that left bar
Ah
make the embed color invisible
Change the embed color :p
True
It makes it look odd, but it does the job
Question who here codes on mobile?
๐
for me I just used my bot's character hair color
for my embed colors
makes sense if you ask me
hmm, the image is significantly smaller too
If the image was too big
it scales to the embed size
the embed is going to downscale it to fit the embed
Ye what Weeb said
How do I get my nickname changed
๐
I don't like it
ask mod
Do I ping one or?
just ask oone
Mk
no there's a padding box around the embed
if you just attach a file, it doesn't have that embed box
But then you actually have to send a LOT more data
not putting it in an embed
does on mobile because mobile devs lack basic common sense ๐
When you put an image in an embed if the image is too big it will scale to the size of the embed
............I'm talking about the embed box padding
you cant get rid of it without clientside css
So Mantaro bot doesn't use embed... it's direct file attachment
Mk.
They don't have that embed box
Yea it uses embeds
but wow the bandwidth....
Then how do they get rid of the embed box padding + styling
utils like imagemagick do a pretty good job of gif compression
Ye
Mk
This bot is actually outdated as hell
I don't think it has been updated has it?
I don't think so
can't imagine that 2.5mb per request bandwidth
Not in a while.
I thought badnwidth had something to do with Audio stuff or am I wrong?
I tried another command that uses anilist and it doesn't even pull the right information or get rid of html tags
And I just found out my bot literally does the same thing, but actually works. lmao
uploading a file on each command is just straight up api abuse imo
Lmao
I didn't even know another bot did that. welp
Did what?
Used an anime command that uses the anilist api
Ah.
It just uses the outdated one from the look of it
like 90% of generic weeb bots do that
Not really
okay maybe like 80%
Very few do that
Clap
Guess the server name xD
arse
?
Oh no
The server name is called
Clap Them Sluts
It was originally
Clap Them Cheeks
but my friend dared me to change it to what it is now
sluts
Lol
oof
I am so hungry
xD
Mk I did not understand any of what you said
So from what I am gathering
you want to send that in an embed
Then put the values in an embed?
Pull the values from the database
and put them in an embed
db.fetch() isnt a method with the db hes using
if db.get() returns that array, then all you have to do is map it like i told you to do earlier
let me try to explain againjs // you have this const arr = [ { id: '015_00', level: 17, iv: 40 }, { id: '162_00', level: 33, iv: 5 }, { id: '137_00', level: 3, iv: 68 }, ]; arr[0]; // => { id: '015_00', level: 17, iv: 40 } arr[0].id // => '015_00' arr.map(e => e.id) // => [ '015_00', '162_00', '137_00' ]
its hard to explain this in better detail without just giving you the answer
like this
hes already getting it. his problem is he cant figure out how to get the values from the objects in his array
yeah and you're saying .fetch isnt the same as .get
i dont see what youre getting at... ive never used quick.db and theres no .fetch() in the docs
i just sent you the picutre
its an aliases
and its also changed to .fetch instead of .get
can you see now
where the hecc did you get that from
you see it yet?
ok .fetch() is an alias but... why does he need to use the alias
he already has the data from the db 
whats wrong with using an aliases jesus christ, why are you making such a big deal over .get and .fetch
just stop
lmao
how do i make it show the # of servers on discord bot list
๐ก ๐ก
1 alias, 2 aliases
lol
How do you make a bot that welcomes those who joined?
read the docs
where is the docs?
Google whatever your db is
@prisma vigil
@astral quail things it doesnt problem
@ready_dino0924#6878 what language
he left
Read #502193464054644737
for the third time; message above me
Fixed my bot finally xD
yay
I was up last night till like 3AM and did not fix it but today in like 5 mins I fixed it
lmao
Peter can I dm u for a sec?
sure
o!p ืฆืืขืื
hey can anyone help me?
i want to underline some in discord.
__underline__
ohhh thank you ๐
Hello peeps , how much time does it take to approve a bot ?
i did read xD nothing is being mentioned there
hmm
i search in list and check if he is online i dont see anything, even though he is online and ready to kick off
once it gets approved, it will be shown on the new bots page
I'm trying to get channel from my db, but is an int, so when i do log['channel'] i ofc get an error, how would i get it as an int?
which language / library?
i dont work with python, so i cant help. but can you post your code on how you get it from the database?
log = await bot.pool.fetch("SELECT * FROM logging WHERE guildid = $1", ctx.guild.id)
@earnest phoenix on mobile, but try python print(str(channel))
i get channel isn't defined
Str(whatevs) gets the string representation of stuff. Although if it's something more complex like a class, do something like python Class.__repr__
My code was assuming that you have retrieved the value from the db
Where channel = that value
no
Python
ill try
Ecks dee
It's useful for scripting but not bigger stuff imo
Yea.
I used python when I first began coding
it was discord.py async
then I switched to rewrite and stopped after that
Same, I wrote one in py at launch of the api, then discord.py then split some into Java, then eventually all into Java/kotlin. It gets really unsustainable
'-'
client.login(config.token);
How do I get permissions of a member from the guild again?
ex: GET /guilds/399688888739692552/members/142408079177285632
Gives me json { "nick": null, "user": { "username": "JPBBerry", "discriminator": "0001", "id": "142408079177285632", "avatar": "a_efef6cdcb9b5426c5b0925df69e9ce89" }, "roles": [ "399696617504112655", "415323805943070721", "416797136081125377", "417079846011797505", "481283540965916682", "517078121174925314", "518957303920066567", "523577988294639629", "526394881367867412", "540668410217103400", "540668482182709260", "547540372067450880", "551068271542009866", "557607683222667285", "558820531197968384", "559081097271443479", "559086971725807636" ], "mute": false, "deaf": false, "joined_at": "2018-01-07T22:20:57.013000+00:00" }
But that doesn't have any permissions value?
oh thats just annoying
if you need for a channel, you'll need to get the channel and use the overrides
roles are easy
just bitwise or
perms = roles.filter(r => member.roles.contains(r.id)).reduce(0, (a, b) => a | b)
yes
but there's only one extra request
to get all roles
How do I turn 104172609 into what the examples show, (like 0x0000008)
i woulda sworn that you can do it on those numbers
why would you?
im lost
authRequest("/guilds/399688888739692552/members/142408079177285632").then(res1=>{
authRequest("/guilds/399688888739692552/roles").then(res2=>{
console.log((res2.filter(r => res1.roles.contains(r.id)).reduce((a,b)=>a.permissions|b.permissions) & 0x0000008) != 0)
})
})```
this just returns false no matter what i think im doin somethin wrong again
o wait
i need to switch around a.permissions | b.permissions
checking if a member has certain permissions
wow
wym wow
bc i dont understand what do you do
ummm, ok?
the order for a bitwise or doesn't matter
the .reduce was the wrong way around
ughh im so lost
it works in one guild but not another testing one
ooooo
anyone know why my bot does not show online status on the website any longer?
ID?
262691055030370306
why was it kicked? O.o
dm's on join
gotcha. Is there a way for re review?
we can reinvite it here if you fix it and are sure that it is fixed
just lemme know when it is and I'll reinvite
fixed. Please reinvite it. Guess i accidentally comment out a line of code.
thank you! And thanks for checking
np


pip3 install pydisk
pip3 maybe because python 3
ok trying pip3
thats ghey
Shut
Well ask your friend what's that
I have no idea what pydisk is
i moded it to meat how i wanted it
yea i have no clue what it is as well
i go and ask my freind again
brb
@obsidian shoal do you know how to code?
a bit, not a lot
well you'll need to first learn a discord lib
discord.js right?
Integrate your service with Discord โ whether it's a bot or a game or your whatever you wildest imagination can come up with.
yeah discord.js is one
I use discord.js
but we won't just give you the code for a command
save stuff in a db
db?
database
@spring ember @slender thistle, pydisc was a custom (private) libary that I created for a bot called 'Snex'.
I opensourced all of the snex code but I forgot to include the libary.
Meanwhile I've lost the libary and can't find it to help Acoustic Pixel, or anyone else who tries to use that code.
wouldn't pydisc still be stored in your site-packages folder?
@obsidian shoal Postgress might be a great option for you.
Here is some more info for js.
https://node-postgres.com/
@analog beacon I've looked there, couldn't find it.
ah ok
welp mission failed.
Iโm using discord.js
Iโm looking at an overwatch api
it outputs this as an example
{ username: 'Calvin',
level: 861,
portrait: 'https://d1u1mce87gyfbn.cloudfront.net/game/unlocks/0x0250000000000EF7.png',
games:
{ quickplay: { won: 647, played: undefined },
competitive: { won: 15, lost: 12, draw: 0, played: 27 } },
playtime: { quickplay: '129 hours', competitive: '5 hours' },
competitive:
{ rank: 4416,
rank_img: 'https://d1u1mce87gyfbn.cloudfront.net/game/rank-icons/season-2/rank-7.png' },
levelFrame: 'https://d1u1mce87gyfbn.cloudfront.net/game/playerlevelrewards/0x0250000000000974_Border.png',
star: 'https://d1u1mce87gyfbn.cloudfront.net/game/playerlevelrewards/0x0250000000000974_Rank.png' }
holy.. that looks awful
aaaaanyways
how would I go about formatting that, as I have no clue.
I would ideally want to just get the name, level, and rank
Why is my bot muted if I can ask ??
wdym?
@fiery mauve as a role "muted"
@broken elm just get the data you need and send it?
do you know how to access object keys and values in javascript?
@stable halo I updated the bot and it's not that command anymore :/
ask the moderators for an unmute
Where ??
Okay x)
Ask in #general, #development is for code development
Oh okay oops
How can I list the members that have 'Administrator' permission?
I'm using discord.js
Like:
?adminlist command
Later message;
Admin List:
- Admin 1
- Admin 2
Like that
how can i get the ids of all the guilds my bot is in
So when user type ?help check if he got an permission and if yes send an message... @low bolt
What
Does anyone know, why does the font become rectangle when i host the bot on linux?
The text actually: แ |ฯฯัะบยขะฝฯฯ
On windows, it's fine.
hmm probs cause they font file doesn't have the alt code @winter hawk
And i donโt remember how to make the bot send a new message if the message has more than 2k characters
before you send you can
1. look at the message you are about to send
2. if longer than 2k characters
2a. split it by words (something like string.split(" ") depending on lang)
2b. Iterate through all words counting the length.
2c. Once you've hit over ~1900 chars, then start putting all of the remaining words in a new string.
2d. keep doing that (splitting by length of ~1900) until done with all
3. send it
Thats probably not the most efficient way to do it, buts pretty easy to do/understand
I know most libs do support built in splitting, but some don't. The ones that I have seen that do, dont require literally any work, just send the message normally
Discord.py rewrite
A Cogs Example for the rewrite version of - discord.py - bot_example.py
fuck
i realized that i can expose my token with eval
how do i not make it not do that
i mean like to make it respond with a different message instead of the token
if input = [input] output no
not make it not do that = double negative = make it do that
Why do you have an open eval?
it's protected
Then surely it's fine
Make it DM you
but if i use client.token, that's a problem
edit the client object i guess
because there's so many ways to get "client.token" using different phrasing
message.client.token message.guild.channels.first().messages.first().client.token 
client.nope = "haha nope"
if(message.content.indexOf(".token") > -1) { message.content.replace(".token",".nope") }
before eval
in our case its after eval
if you wanna use regex to detect an actual token-like string, then yeah
there are many ways of doing it
im just preventing .token to be called in the first place
there are still ways to trick it though lul
my linux is bad
my mac is worse
thats right
im bill gates windows
^^
(This is #development)
rip
2:45am cant be young again sighs
Is it possible to get all the server names your bot is in, not just for logging
If you want people to be able to assist you, please provide more information, such as what library and language you're using, the code in question and what you are trying to do and/or what is causing the error.
Discord.js
wdym not just for logging?
Like a command
yeah dont do that
<client>.guilds.forEach(guild => {
console.log(guild.name, guild.id) // do whatever you want to do with it here;
});
๐
I agree it is brute force, but realistically, even if you dont do it asyncronously, unless it's tens of thousands plus, youll be ok.
Yewah
A better plan would be to check your database on every new message to see if that guild is in it
its more the fact that you cant really fit more than like 100 or so guild names into one message lol
and if not add it
dump it into hastebin and reply with a link problem solved /s
well hes logging them individually
cry has a good idea. Or you could just use queries to a db if you use one. But since hers trying to print them to stdout it makes me think he doesn't have too too many
yeah, probably
lmao
@quartz kindle Make it 10 instead
define it
lul
its already
@earnest phoenix where does it say that? what are you trying to do?
const Discord = require('discord.js');
const ayarlar = require('../ayarlar.json');
var prefix = ayarlar.prefix;
module.exports = client => {
console.log('>>Oynuyor kฤฑsmฤฑ baลarฤฑyla gรผncellendi.');
console.log('Bot hazฤฑr ve giriล yaptฤฑ รstadฤฑm.');
var Games = [
`${client.users.size} Kullanฤฑcฤฑ ฤฐรงin Teลekkรผrler`,
`${client.guilds.size} Sunucu ฤฐรงin Teลekkรผrler`,
`!!help | 7/24๐ฅ | Frep`,
`!!add | !!play | !!skip | !!pause | !!resume`,
];
setInterval(function() {
var random = Math.floor(Math.random()*(Games.length-0+1)+0);
client.user.setGame(Games[random], "https://www.twitch.tv/frepturetv");
}, 2 * 2500);
};
code blocks please
Error: Cannot find module 'C:\Users\KAAN\Desktop\FREPBOT\readys.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
but its in FREPBOT/events/ready.js
]]moreinfo
If you want people to be able to assist you, please provide more information, such as what library and language you're using, the code in question and what you are trying to do and/or what is causing the error.
it says FREPBOT/ready.js
where do you require it? i dont see it in your code. also please use code blocks
what library are you using?
js
making sure
like this:
```
code
```
in where
const { Client } = require('discord.js');
const YouTube = require('simple-youtube-api');
const yt = require('ytdl-core');
const ayarlar = require('./ayarlar.json');
const client = new Client();
const Discord = require('discord.js')
const youtube = new YouTube(ayarlar.api);
require('./eventLoader')(client);
weary
Please use code blocks
what is that
this is how you should send code https://i.imgur.com/Je3991c.png
oh k
code blocks:this
there you go
const { Client } = require('discord.js');
const YouTube = require('simple-youtube-api');
const yt = require('ytdl-core');
const ayarlar = require('./ayarlar.json');
const client = new Client();
const Discord = require('discord.js')
const youtube = new YouTube(ayarlar.api);
require('./eventLoader')(client);
this is my blabla
put js after the first ```
ok, but we still dont see where you require ready.js
in events
then show code for events
const Discord = require('discord.js');
const ayarlar = require('../ayarlar.json');
var prefix = ayarlar.prefix;
module.exports = client => {
console.log('>>Oynuyor kฤฑsmฤฑ baลarฤฑyla gรผncellendi.');
console.log('Bot hazฤฑr ve giriล yaptฤฑ รstadฤฑm.');
var Games = [
`${client.users.size} Kullanฤฑcฤฑ ฤฐรงin Teลekkรผrler`,
`${client.guilds.size} Sunucu ฤฐรงin Teลekkรผrler`,
`!!help | 7/24๐ฅ | Frep`,
`!!add | !!play | !!skip | !!pause | !!resume`,
];
setInterval(function() {
var random = Math.floor(Math.random()*(Games.length-0+1)+0);
client.user.setGame(Games[random], "https://www.twitch.tv/frepturetv");
}, 2 * 2500);
};
i dont see any ready.js here
where in your code do you use that file?
yes, but where do you write require("ready.js")
show where did you write it
then why do you have that file?
require('./eventLoader')(client);
my codes are deleted
i have that
in server.js
somewhere in your code, its trying to require the file ready.js
you have to find where it is
hi, where bots hosts?
leme dewlete it
what
Check the pins in this channel if you are looking for a good hoist @marble salmon
@quartz kindle how ill fint it
open all your js files
find*
there's a code in one of your files that has readys.js needed
idk
@zealous veldt ok, thx
No problem
you are probably requiring the file in the wrong folder
where do you have require("ready.js") or something like that
anyway, the path is wrong
it says it cant find readys.js
make sure its ready, not readys
should be /events/ready.jz
so send server.js
oh you did above
and tell where it is located
const { Client } = require('discord.js');
const YouTube = require('simple-youtube-api');
const yt = require('ytdl-core');
const ayarlar = require('./ayarlar.json');
const client = new Client();
const Discord = require('discord.js')
const youtube = new YouTube(ayarlar.api);
require('./eventLoader')(client);
its not probobly
there's no ready.js in there
you shouldnt add anything
it looks like a module dependency, also the spelling is wrong lmao
what the heck is require('./eventLoader')(client)
idk
what's the code for eventLoader?
so you just copy pasted this bot and have no idea whats going on
do you know what you are doing at least
i see
have your friend come here /shrug
do you have an eventLoader.js in your bots folder?
well this has nothing to do with music
so why are you requiring it
does ลit care you
if you don't have that file
๐ค
i changed that to this
what is your project structure
seems to me like youre guessing
js
what is your project structure ๐ฉ
create an event handler (thats probably whats supposed to be in that file thats required and you dont have) and then it should probably work
youre just typing in random things
nop
show a picture of your bot folder
so you have an eventLoader
yes
so you do have an eventLoader lol

you said you didnt
just show eventloader
const reqEvent = (event) => require(`./events/${event}.js`);
module.exports = client => {
client.on('ready', () => reqEvent('ready')(client));
};
that looks right
Just show the code
we can't do that
Wdym?
open the bot
echo off
title Frep BOT Ana Paneli
color a
cls
:a
node server.js
node readys.js
goto a
what
lul
so much
i buy a vds

wut
How's your day?
its fine lul
Lel
Good good
now for the real question
when using Array.splice()
it is
Array.splice(Index, NumOfRemoval)
yes
Forgot I could just store the output of the api in a variable and use output[0] to get info
@bot.event
async def on_message_delete(message):
log = await bot.pool.fetch("SELECT * FROM logging WHERE guildid = $1", ctx.guild.id)
if log == []:
return
else:
loggingchannel = log[0]['channel']
embed = discord.Embed(title='Message Deleted', color = discord.Color.gold(), timestamp=datetime.datetime.utcnow())
embed.add_field(name=f"Message Deleted By: {message.author}", value=f"{message.content}")
embed.set_footer(text='GBot')
await bot.get_channel(loggingchannel).send(embed=embed)``` does anyone know why it won't send?
let serv = bot.guilds.get('466241197867008011')
let trul = serv.members.get(message.author.id).roles.has('534081989758812182')``` I have a problem, if the member are not in the guild its send me ('Cannot read property of roles') and i dont know how to fix that but i cant return trul
you could limit it to that guild, or just a try/catch or a .catch()
i dont want to limit that in the guild, and i'm going to try with try
grab the member first and check if it exists
that too 
let serv = bot.guilds.get('466241197867008011')
let guildmem = serv.members.get(message.author.id)
let trul = guildmem && guildmem.roles.has('534081989758812182')```
that won't throw an error for example
why does everyone need to shorten everything
pls
theyre not even called "servers" in api terminology smh
keep it c o n s i s t e n t
oh thx its worked @gleaming tulip
the better question is why the spoonfeed tho
idk if it is 'working' or 'worked' but thx
if the person youre getting is the author of the message then why not just do message.member and delete two lines
@idle basalt hes not getting the member from the guild the message was sent in
With my bot you can not open the page
Jes in The #logs Channel
probably because it isn't approved yet...
And How cann Man that Approved yet?
be patient
ultimate way to get your bot approved not clickbait
Ok
Sry
]]faq 2
Click the link to get more information on the question:
2) How long is approval?
a bit confused here
i think i missed something
i know it's on repl.it, it's only temporary
other repl.it link is useless
You installed wrong d.py version
@earnest phoenix do you still need help with your issue?
well shit
How did you install it
well
Nah, i got it
i might've installed it with 0.16.12
thx though bb

How can I send a RichEmbed() with a normal text message in javascript (If you want to know what I mean just run gr!help in #commands )
(ping me in your response)
what lib? @spring wharf
discord.js
message.channel.send(`I finally have the lamb sauce, so here are your commands`);
message.channel.send(helpEmbed); ```
Currently I am just sending two messages like this
oh and dont question the lamb sauce message, I just want it there because I am recreating the bot to the best of my abilities
Was just a joke from development of the original because before I added the help embed it just said something along the lines of "I'LL HELP YOU WHEN YOU FIND THE LAMB SAUCE FOR ME"
One of the options is RichEmbed.
Thanks ๐
๐
How do I find open source bots?
Either search on github, or find bots on the website that are open source


