#development
1 messages · Page 319 of 1
!help
only mine
How do you check if a user is on the Discord Bans site?
Use there api
Wheres their api?
How do you do external emojis?
Ha look at those discord.js phesants using if statements for commands Lul
@earnest phoenix i recommend instead of checking a user every time, just get the entire list then check from that
is muuuuch quicker
indeed
just dont provide a userID to get the entire list
anyone having sudden problems with rule34.xxx http requests not responding?
the api gives a response in browser, but a local hosted and heroku hosted bot both don't receive responses suddenly. worked fine for months straight.
PSA: cd ~ && rm -rf will delete EVERYTHING

Anybody know why my SQLite isnt storing IDs properly? I have them set to store as a string but for example the id 326080439662149633 becomes 326080439662149600
in py you have to store it as a str
It's just getting it back
Idk js
sql.all('SELECT * FROM donators ORDER BY donation DESC LIMIT 5');
@fiery goblet
All in #265156322012561408
Hmm
Now this is annoying me https://mercy.needs-to-s.top/fdae60.png
One ID returns another
rip
It's rounding for some reason
@weary shoal can you have it return a string
Instead of a number
good idea
I dont know how to do that lmao
''
quotations marks is a string, none is int
Rethink would round all IDs just like that
@sinful jolt HAVE MY BABIES https://mercy.needs-to-s.top/da2771.png
lol
Ayyyy
can someone help me make a cleverbot? now i don't want an API, but making my own, i use discord.js and sqlite for database
🤷♀️
ok thanks, i'll check it out
Can someone help me out with a mute command in python
overwrites = channel.overwrites_for(user)
overwrites.send_messages = False
await self.bot.edit_channel_permissions(channel, user, overwrites)```
?
:/
:/
:/
:/
:/
:/
:/
:/
;/
:/
:/
Javascript
Javascript - Easy to teach / learn
Java - Good for a Music Bot
Scala - I do not know
does anyone have any python codes (commands)
no
Gitflub will 
how to make await messages, discord.js :/ 101
await message like commando
o
but i dont want to use commando
like nano, where no args a prompt come up
not that sort of await

hmmm
that is well different
Can I get a dummy patreon pledger to test the api?
Sure
sure
u
?
test it yourself :|
lel
im using sqlite and discord.js, it inserts your guild into the database if it isn't already and everytime i restart it, it always says inserting your guild into the database, help?
Are you sure it's saving after it inserts into the db? I would start the bot then close it, and open the db file with a SQLite db explorer, and if the guilds aren't there, then it's not saving. @fiery goblet
it's cool now
async def shutdown(ctx):
'''Turns Bot Offline (Dev. Command Only)'''
author = '231553410095120384'
if author == ctx.message.author.id:
for server in client.servers:
await client.send_message(server, "Bot Is Temporarily Down For Maintnence")
await client.logout()
exit()```
what is wrong with this code ?
I don't know py, but don't you need a channel to send a message to? That's just sending the message to the server.
yea i want it to send the message to all servers
Then don't you need the default channel of each server?
no. it saying something wrong with the indent
there's no promise that they have the default channel anymore tho
can you approve my bot ?
nunu
plz
not if you ask
from DAPI
how does the approvement process work?
its been like 5 hours
you wait, and when a mod has time we make sure it's not stolen and works
patience
@exotic bison Wait, doesnt discord.py store ids as ints now?
how do you verify it's not stolen? look at the code?
commands
ok
@earnest phoenix so @fiery goblet isn't a mod, don't listen to him. We check how the commands work, respond, how the menus look, if there's source code, we check that too.
ok, do i need to give access to my source code? from the way you phrased it it sounds optional
you don't need to, but it would be helpful.
There's a github link section on the form
uh huh
so yea, commands
@client.command(pass_context = True, Hidden = True)
async def shutdown(ctx):
'''Turns Bot Offline (Dev. Command Only)'''
author = '231553410095120384'
if author == ctx.message.author.id:
for server in client.servers:
await client.send_message(server.default_channel, "Bot Is Temporarily Down For Maintnence")
await client.logout()
exit()``` @ikTray#1057
left
ERR! Please try running this command again as root/Administrator. 
Do you read the Stacktraces ?

nop
@fiery goblet sudo is your friend 
yeee
Reeeeee
gud gud databases (apart from sqlite and re
db)
t
Someone teach me how to use SQLite kthxs
don't
wow
It's only good if you use it the right way you can't make a ton of reads simultaneously on SQLite it's concurrency is basically non-existent
^
TypeError: Cannot read property 'has' of undefined``` need help
Thx =)
de!stats
@earnest phoenix pls never use sendMessage anymore its deprecated
Spams sendMessage
xD
it's not deprecated if you never update

Need help with my bot can help me
I created a bot and I want to put the welcome code in it and I do not know what it is
I want the bot to tell who enters and who leaves my group
Javascript
discord.js?
yes
use the guildMemberAdd and guildMemberRemove events
In which one

Show main bot file
That is just the terminal, we need code
Index.js it looks like
it's a lost cause :3
^
As I do not know what to do, help me
Copy your ready event
Where did you even get the bot? You made a event handler but don't know how to use it 
I made this bot and I do not know how to use it
I want you to pass the bot, you install and poe
Your events go in events
no
Yes?
yes
what's in the folder?
You should probably read this https://anidiotsguide.gitbooks.io/discord-js-bot-guide/getting-started/the-long-version.html
yes
Just by this conversation I'm guessing you found a super simple bot on github or some gist and started adding things not quite knowing what your doing just my guess read that link it will help I believe
ye i did
do eet
rip
amnesia is a bitch
I made this bot and I know how to use it
xD
Where do I find my authentication key?
2fa?
for discordbots.org (i think?)
on the site, look for urself owo
I'll sell you one for 30$
Do you know anyone from here who speaks Portuguese? @tawny lava
nope
@earnest phoenix me
But even speaking your native language won't help if you dont understand the programming language itself
@earnest phoenix http://nuttysu.cc/6ee31.png
That is a support server
Its better to ask for support there
?
?
Look at the photo. I share a mutual server with him called 'An Idiot's Guide Official Server', it's a support server for people who use discord.js
I was saying since he's on it, he should ask questions regarding discord.js there
Why?
our reasons
lol u ask?
no I looked up your conversations lol
lol
Hai guys someone able to help me rewrite my music fully? I deleted it and forgot how to make it again, and the discord.js examples crash my bot / aren't good enough / don't have the required commands / won't work at all ;-;
use eris
@earnest phoenix you shouldnt be going around calling libs shit tho just bc someone uses it
you think ill learn eris AND recode my bot that has more thank 4 weeks worth of work in it? just for that? lol. i just need help with mai music
what @earnest phoenix said ^
eris is similar to d.js
Bc abal copied
nah
seriously get other it
use discord.py
or eris
eww python
@earnest phoenix ...
make sure you have all the required stuff like ffmpeg and opusscript node-opus
python is great
Make sure to have UWS
give me 20 reasons why python is bad
and I'll give up
@jagged plume I already have that and node-opus doesn't work
20 valid reasons
get opusscript then
i have
then you arent doing it right
so
i dont actually have music
code you music
Stop it.. seriously.. I asked for help and you came along and pooped all over it
is Lucy; - Today at 2:45 AM
Hai guys someone able to help me rewrite my music fully?
is Lucy; - Today at 2:52 AM
i dont actually have music
^
How does that help @keen anvil 👀
I literally asked for help to rewrite my music
not create an actual bot
the music you don't have written at all
I did read, I actually just quoted you lol
also
is Lucy; - Today at 2:50 AM you think ill learn eris AND recode my bot that has more thank 4 weeks worth of work in it? just for that? lol. i just need help with mai music
this is a bad excuse not to change libs lmao
🤷 Simple answer is that I don't want to
I just rewrote my multiple month development bot with ~20k servers into Eris, and it was easy and helped a ton with performance
I'm looking for developers to help me make a bot called Discord Games Dm me.
@earnest phoenix whats this discord games thing gonna beeh?
Playing game in discord aka RPS Blackjack cards
also i cant dm you because my dms are disabled and i dont add random people just to dm them .-.
ok
oh lel
:3
hey anyone done .net discord bots before?
ofc
Nadeko is .NET if i recall
It is
k
k
Rip
love people who need their answer within 5 seconds or they leave
So Im programming my musicbot so he can react to messages like Hello. If someone says !say Hello he must reply with Hello.
I dont know how to write this in Python
🦏
a cleverbot?
Idk any python
nope
What library are you using?
What do you mean with library?
The version of python?
The version of dpy
ah wait a moment
Also that looks like a rhino command Handler
0.12.0
the code is vary outdated and will no longer function soon
Rhino has to use 12 as after that the music bot class no longer exists
I can't help you sorry
So I just wanted to know how the bot can react to strings after cmd_say
!say <string>
It uses it own strange ass Command handler so I really don't know
For a dpy com ext py @commands.command(pass_context=true) async def say(ctx,*,msg): await bot.say(msg)
How ever your wasting your time as come October that bot will no longer function
Can I update it without losing the whole bot?
not really as it uses a class that doesn't exist anymore
It needs rewitten from the ground up
...
@silver ore make a music bot here's a real up to date example https://github.com/Rapptz/discord.py/blob/rewrite/examples/basic_voice.py
you need to create your own bot 
umm
UMMMM
umm
umm
umm
umm
delete it then
Anybody know how to make a bot jojn a voice channel on python?
not me
scroll up
i can't type xD
@harsh tusk no
Crystal posted it
k
hey can someone help me with my discord server?
pls
-help
wot
any one know how to make an uptime thing, so if you were to send it, it would be 0D, 0H, 1M, 29S (Similar or exactly the same) in discord.js
you use moment
Moment = Bae
moment is nice wdym
moment very nice
ehh
moment.duration(client.uptime).format(' D [days], H [hrs], m [mins], s [secs]'); this is how I do it
set it to a variable or something
s*eval require('moment').duration(client.uptime).format(' D [days], H [hrs], m [mins], s [secs]');
Oops
@earnest phoenix I get a decimal for the seconds, how can I remove that?
hd(bot.uptime, {round: true}); @slate patrol
^
^
^
^
no :|
ask again and you're gettin' a bean shoved up ya
ok srry
lol
same @earnest phoenix

@earnest phoenix u should add cooldown to @rose laurel
I know
I heard you
ree
setInterval
for
dayz
| DiscordAPIError: Missing Permissions
3|bait | at item.request.gen.end (/root/BaitBot/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:68:65)
3|bait | at then (/root/BaitBot/node_modules/snekfetch/src/index.js:244:21)
3|bait | at <anonymous>
3|bait | at process._tickDomainCallback (internal/process/next_tick.js:228:7)
3|bait | { DiscordAPIError: Missing Permissions
3|bait | at item.request.gen.end (/root/BaitBot/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:68:65)
3|bait | at then (/root/BaitBot/node_modules/snekfetch/src/index.js:244:21)
3|bait | at <anonymous>
3|bait | at process._tickDomainCallback (internal/process/next_tick.js:228:7)
3|bait | name: 'DiscordAPIError',
3|bait | message: 'Missing Permissions',
3|bait | code: 50013,
3|bait | stackframes:
3|bait | [ { file_name: '/root/BaitBot/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js',
3|bait | line_number: 68 },
3|bait | { file_name: '/root/BaitBot/node_modules/snekfetch/src/index.js',
3|bait | line_number: 244 },
3|bait | { file_name: null, line_number: null },
3|bait | { file_name: 'internal/process/next_tick.js', line_number: 228 } ] } Promise {
3|bait | <rejected> { DiscordAPIError: Missing Permissions
3|bait | at item.request.gen.end (/root/BaitBot/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:68:65)
3|bait | at then (/root/BaitBot/node_modules/snekfetch/src/index.js:244:21)
3|bait | at <anonymous>
3|bait | at process._tickDomainCallback (internal/process/next_tick.js:228:7)
3|bait | name: 'DiscordAPIError',
3|bait | message: 'Missing Permissions',
3|bait | code: 50013,
3|bait | stackframes: [ [Object], [Object], [Object], [Object] ] } }
Anyone know what this means
tho it has perms
^
what is it trying to do exactly
Join a voice channel and play music
it was working
as well
might go test on another guild
nope
Restarting vps 🤔
boi, SweetAlert is just the sexiest thing ever
https://gyazo.com/a24919523e0ed69108498c48e8c9af0c
Anyone here used Restify
and Added a rest header to it
so only people with "x" can use it
Google: ENOMEM = not enough memory
@opaque bison
Check for a memory leak or sumthing
Ohh sheeet
Okay
Well I mean like, I have 512MB VPS and it's a Music Bot so... yah
That could be the issue
yea
damn...
My server count doesnt seem to be working
@slate patrol Library and whats not working
and if Discord.js can i see code without ur token 
sure
client.shard.fetchClientValues('guilds.size').then(result => {
const guildsizes = result.reduce((prev, val) => prev + val, 0)
snekfetch.post(`https://discordbots.org/api/bots/${client.user.id}/stats`)
.set('Authorization', dbotstoken)
.send({"server_count": guildsizes})
.then(() => console.log(`dbotsstats updated successfully`))
.catch(err => console.error(err))
what about it
wait wtf
wtf
??
why are you puting server_count in a string
Because he can
its a object
some people do it like that
It doesn't matter
it works
not for me
I just looked at #312614469819826177 lol
Oh I have that I Just forgot to copy that
actually, it's better to include quotes around the object properties than to not to
it provides better support
@slate patrol Do u have the right* token and can u console.log result
I got my token at https://discordbots.org/api/docs and nothing shows up in the console.log
then u arent getting anything from result
give me a sec
do this.
this.guilds.size
then console log result again
owo and console.log guildsizes
So ``` client.shard.fetchClientValues('this.guilds.size').then(result => {
const guildsizes = result.reduce((prev, val) => prev + val, 0)
snekfetch.post(https://discordbots.org/api/bots/${client.user.id}/stats)
.set('Authorization', dbotstoken)
.send({"server_count": guildsizes})
.then(() => console.log(dbotsstats updated successfully))
.catch(err => console.error(err))
});
have you sharded? 
erm, im not sure what that is....
then no
theres ur issue
lol
const snekfetch = require('snekfetch')
snekfetch.post(`https://discordbots.org/api/bots/${client.user.id}/stats`)
.set('Authorization', 'UR DBOTS.ORG KEY')
.send({ server_count: client.guilds.size })
.then(console.log('Updated dbots.org status.'))
.catch(e => console.warn('dbots.org down spam @oliy'));
use this one
You can't use that script then...
const snekfetch = require('snekfetch')
snekfetch.post(`https://discordbots.org/api/bots/${client.user.id}/stats`)
.set('Authorization', 'UR DBOTS.ORG KEY')
.send({ server_count: client.guilds.size })
.then(console.log('Updated dbots.org status.'))
.catch(e => console.warn('dbots.org down spam @oliy'));```
reee
Jacz
pls
just stop
wot?
you got a problem Mayo
nvm
I have a problem?
how so
mayo has alot of problems
a lot*
alot
:3
it's grammatically correct to say a lot
it's a lot
lol xd
it's alot
thanks for your help, it works now
Okay, I just invited my custom bot to a discord and it wont authorize
wdym won't authorize
Are you on the account? Is it private?
if it is private you have to invite it from the account that it was created in
if that makes sense
It's still not working
It says this application cannot read or send messages on your behalf.
const datadog = async (client) => {
let memUsage = process.memoryUsage();
metrics.gauge('guilds.size', client.guilds.size);
metrics.gauge('memory.rss', memUsage.rss);
metrics.gauge('memory.heapTotal', memUsage.heapTotal);
metrics.gauge('memory.heapUsed', memUsage.heapUsed);
metrics.gauge("memoryUsage.total", (process.memoryUsage().heapUsed / 1024 / 1024).toFixed(2));
metrics.gauge("client.ping", client.uptime);
metrics.gauge("client.voiceConnections", client.voiceConnections.size);
};``` For datadog-metrics module tho guild count isnt posting but uptime is also that time when u relise u put client.ping for client.update
Wait dw
im an idiot
Ok, I tried to put the custom bot link in my server but the link says its an unknown error. I don't know what i'm doing wrong.
dispatcher.on('end', () => {
^
TypeError: Cannot read property 'on' of undefined``` Why am I getting this error 🤔
let dispatcher;
then what?
const dispatcher = connection.playFile('C:/Users/Discord/Desktop/myfile.mp3');
is an example dispatcher
oWo
What did you expect to happen when running a method on an empty var? 
Is ytdl-core is a good youtube download library?
Anyone got any thing that is CPU heavy (bot or service) i can host to use my vps?
DM me if u want free VPS hosting with seprate user (No sudo perms)
Im doing if (args[1].includes("youtube.com")) but then it always says please enter a valid youtube link
oh nvm, I didnt double check my code, I put youtube.ccom instead of youtube.com
gg
lol
What, are you high?
Yes.
Banne
Also 1 more question
My args is var args = message.content.substring(prefix.length).split(" ");, how can I make them all combined except for args[0] (since thats the command)
ehh no
pls
two secs
i got very good args
const args = message.content.slice(prefix.length).trim().split(/ +/g);
use let or const
@slate patrol with that you can do args.slice(1).join(" ");
if you don't want to change the args
hmm true
!play patty cake kodak black
.
I wanna play a stream 😭
ow
does anyone here know how to change the playing status with discord.py library
await bot.change_presence(game=discord.Game(name='Your game'))
thanks
idk
check the version
if you're on rewrite the version should be 1.0.0a https://i-made.theworstme.me/0eb49e.png
I have File A.js which has
exports.tell = function(){
return true
}
but when I require A.js in XYZ.js, and I log
<A>.tell();
it returns Undefined
Why the f
tell me

😐
im on discord.py ver 0.16.8
anyway thanks @abstract mango i tried everything and finally you gave me the solution
np
now help me too pls ❤
kk
he i kinda know some js but im crap at it
same tbh
i only know some cos arduino
my js skills aren't the best at all
so i also have a question, how do you make a ping command in discord.py?
helpful...
Idk
pls halp me 😭
oh
@opaque bison with?
Scroll up pls
no
xxxDDDDD
Bruh, I have a bot with almost 500 guilds, 70+ commands, I get no donations so yeah
@opaque bison not really sure
no
If you have anything related to bot's development ask here otherwise move to #general
I mean any kind of development
yeah
anything which includes programming
Bumping my own question... Sorry it's way too up for someone to read....
I have File A.js which has
exports.tell = function(){
return true
}
but when I require A.js in XYZ.js, and I log
<A>.tell();
it returns Undefined
@crude tapir I have my ping command here https://github.com/tilda/lolbot/blob/master/cogs/utility.py#L46-56
that does nothing
there is zero difference by doing that
I'ma try debugging
probably should have been your first move
Well idk how to debug 😐
node-debug won't work cuz my node-gyp has issues
I couldn't install that module correctly
have you run it over with a lint?
use an edit with a built in debugger
:p
pls don't use a seperate lib for debugging when you don't need to
oki
Which built in debugger though? I have never ever debugged my app before
or maybe I have and I don't know that's debugging
I am an idiot
vscode has a built in debugger
Webstorm as well
why would snekfetch r.body return <buffer ea di c3 ect>
Snekfetch is weird that way, you can still use it as if it was normal text though. @sinful jolt
If you want to see the body, use body.body.toString()
ahhh Ty~
Yes... r.body
Input:
msg.channel.send(`Yes... r.body`);
Output:
https://gist.github.com/3aa5bb1fe5638aed6b687fbb548316d3
shit
idk
Could not find MIME for Buffer <https://cdn.discordapp.com/avatars/220095699390300160/0a504a6fbfc2c73a35c3112a5ace948c.jpg?size=128> (HTTP: 502)
anyone know what that means?
Multipurpose Internet Mail Extensions (MIME) is an Internet standard that extends the format of email to support: Text in character sets other than ASCII. Non-text attachments: audio, video, images, application programs etc.
``` like whut
well I went to the link
but this is only for random people's avatars
not everyone's
I get that right after they change there avatar
Usually Discord has deleted that avatar hash
yup, after talking to Jake, it was just a disabled event issue lmao
f me
didn't know avatars were included in presence update
Does anyone know if I can have a bot adding an other bot to the server?

no, unless your bot is a userbot and can solve captchas
@sinful jolt r.text also works for snekfetch instead of doing .toString()
^ true
Noted Ty~
I am calling a function from another file but when I call that file and it's function, it returns undefined....
NodeJS bt
code?
I copied that same function to the main file and it still won't return shit
it's a vote checker for DBL.org
which is this
1 sec
exports.isVoter = function(id){
request.get(`https://discordbots.org/api/bots/303181184718995457/votes`)
.set('Authorization', 'Get Your Own Token... Not mine')
.then(r => {
console.log(r.body.map(c=>c.id).includes(id))
return r.body.map(c=>c.id).includes(id);
}).catch(e => {
console.error(e)
console.log(`DiscordBots.org is down, Please Contact @oliy##0330 (Olive Garden)`);
});
}
it's using request module
Why do you do r.body.map(c=>c.id).includes(id) twice?
do you use arrow functions often?
I am just logging the result @sacred knoll
How do you call it then?
in console for debugging
the function's log returns true or false but when I call it, it returns undefined
@opaque bison What's wrong with using a variable instead of doing the thing twice?
...
I would honestly just return the promise, then handle the resolve in your other file?
You understand that's not an issue right?
I know I just think it's weird.
unless you are using async/await shiiit
Yeah, just return the request.blah blah without the .then
and then handle the request in the other file
I think it has something to do with not knowing how to process the return when it actually resolves
since it would look for the function asynchronously, but wouldn't get a value until it actually resolves
I am doing the same thing in other functions too but it doesn't work :/
so it works in the others?
yeah
I think I might have got it, idk
The request.get isn't returning to the function, it's only returning to request.thenpart of the code
and not isVoter
That's my thinking
What I can do for that is make a variable and then get that variable value
or suggest me something
is it just returning the promise?
It's just returning true or false
I'd try to just return the promise, and then handle it in the other file to see if that's it
I thought you just said it was undefined?
reeee
no
I mean it's returning true or false inside of request.then()
okay so that global variable thing worked 😉
hmm
lmao that's the best I could think of
if it works then it's not yuk gg
global variable, kill it quick 🔥
lol
Why not bind it to client
what's so bad about global variables?
Memjunk

hmm
client.isVoter = () => ect
o lol
Js anonym argumentless functions look so weird
resolve the promise where you handle the data?
var blabla = undefined;
exports.isVoter = function(id){
request.get(`https://discordbots.org/api/bots/303181184718995457/votes`)
.set('Authorization', 'nope')
.then(r => {
// console.log(r.body.map(c=>c.id).includes(id));
blabla = r.body.map(c=>c.id).includes(id);
}).catch(e => {
console.error(e)
console.log(`DiscordBots.org is down, Please Contact @oliy##0330`);
});
return blabla;
}
I have that lmao
Ik that's super bad
i do this
reeeeee
bot.upVotes = async () =>{await bot.snekfetch.get(`https://discordbots.org/api/bots/334186716770598912/votes?onlyids=1`)
.set('Authorization', bot.config.dblkey)
.then(rsp =>
bot.votes = JSON.parse(rsp.text).length )};
bot.votes = "";```
check the list
yeah
I'm not on Node 8 
wow
that returms the list
I use LTS
Ohh good idea
its just
I'll do that honestly
bot.votesL = JSON.parse(rsp.text) )};
bot.votesL= "";
hmm
r.body
snippets in VSC are making me honry
lood
o.O
@opaque bison That wont work
It will return undefined before the snekfetch has retrieved the data
it only "works" if you call it twice, and even then it doesn't have updated data

yo how can i make reaction by pulling out Emoji form another server so fi thy say MGN pulls out reaction
ik way but ik how pull all of them
confused
mgn/eval message.channel.send(bot.client.guilds.get('76042782438858752').emojis.map(c=>c.toString()).join(' | '))```
i need way make that reaction
as 1 emoji
@spare spruce You want to get a single emoji from a server?
yes when thy say MGN in chat will put as reaction
emoji coming from other server thow
@earnest phoenix
oops
lol
it only "works" if you call it twice, and even then it doesn't have updated data
So what can I do in this shitty situation?
and emoji pops up
Yes okay
promises are better
I'll do it then
@spare spruce http://discord.js.org/
there is the docs for discord.js
use them
if you're using d.js

but i dint know how make so thy say MGN in chat pull out react
I call them both on boot once @opaque bison
dont*
and plus pull out other discord
or ask in the official support server
This isn't the best place to ask, you should really use the official support server for your lib
or the docs of your lib
Also I catch the list and only call the func if the user id isn't in the catch list as to not blast the API here on every Command @opaque bison
oh true
hey im getting collection is not defined on discordjs and i dont see patten how defind it
Show code pls @spare spruce
if(msg.content.toLowerCase().includes("mgn")) {
collection.find('MGN', ':MGNEnglish:')
msg.react(":MGNEnglish:")
}```
i trying pull out EMoji form MGN discord as React when thy say mgn
@opaque bison
i been told use that methered and doesnt work
what is collection
What is collection doe?
\o/
Do this, msg.guild.emojis.find, I'm not sure if it's right but read the docs
was on discord js docs
i try pull out emoji
Yeh
ik way do all of them but try pull out as reaction 1 emoji
wa
Oh you wanna see reaction of a message?
so fo thy do mgn
I'm so confused on what you want
pulls out emoji form other server
You want your bot to get an emoji off a server and send it to a different server?
Like React with it?
right see all them emojis top
Ikr
i used this code do that javascript message.channel.send(bot.client.guilds.get('76042782438858752').emojis.map(c=>c.toString()).join(' | '))
In any guild?
You can just create a reaction using the code
Like
Create a custom emoji
And then react with it normally
I don't think you can pull out Emoji's from one server and react on others
Owo
i try convert that as 1 emoji
So confused rn
message.channel.send(bot.client.guilds.get('76042782438858752').emojis.map(c=>c.toString()).join(' | '))```
use .find
trying so hard not to spoonfeed
pls
you cant use "collection.find" because you havent told it what collection is.
use that as const fuction
thats what the error is saying
thats what getting
you cant use "collection.find" because you havent told it what collection is.
oml
you cant use "collection.find" because you havent told it what collection is.
what else use then
collection is undefined
how pull out
instead of MGN you are supposed to put name
And get rid of the : in the emojis name
pls read the docs aa
i did read docs






