#development
1 messages · Page 438 of 1
uft8mb4_bin, uft8mb4_unicode_520_ci or uft8mb4_unicode_ci?
uft8mb4_unicode_ci
ok
also make sure your connection allows that charset
You may need to specify character encoding in jdbc connector
try {
Class.forName("com.mysql.jdbc.Driver");
conn = DriverManager.getConnection("jdbc:mysql://localhost/Ferchy", "Ferchy", "lol");
} catch (Exception e) {
e.printStackTrace();
}
how
conn = DriverManager.getConnection("jdbc:mysql://localhost/Ferchy?characterEncoding=utf8mb4", "Ferchy", "lol");
im trying to cd
@earnest phoenix Which library
.Net
https://discordbots.org/api/docs
@earnest phoenix
One message removed from a suspended account.
That's for DBL, not sure if he wants that
Nuget doesn't pull definition files?
https://discordapp.com/developers @earnest phoenix
@earnest phoenix https://discord.foxbot.me/docs/api/index.html
oh yeah thank you @keen drift
@keen drift can you help me to make something like this
@bold wigeon It's hard when the tools fails
Last step would be a python reinstallation, but I'd ensure your pythonpath is correct
@hot sleet what part
you struggle with
i want to show members roles like this
don't spam here
sry
np
can i show you the bot pls?
in #commands maybe
@hot sleet But what part of are you confused by
{
"embed": {
"title": ":briefcase: Roles",
"description": "Bot Developer, Hide NSFW"
}
}
fak xd
conn = DriverManager.getConnection("jdbc:mysql://localhost/Ferchy?characterEncoding=utf8mb4", "Ferchy", "lol");
``` @keen drift [ERROR] MySQL connection is null
yikes jdbc picky
what
how?
find your mysql config
http://prntscr.com/jz8qac someone know how to fix it
@tawdry fox no it's empty
i only have that config file of mysql
there should more folders 😛
One message removed from a suspended account.
#
# * Character sets
#
# MySQL/MariaDB default is Latin1, but in Debian we rather default to the full
# utf8 4-byte character set. See also client.cnf
#
character-set-server = utf8mb4
collation-server = utf8mb4_general_ci
why do i have the error here
http://prntscr.com/jz8tok
i set it to utf8_unicode_ci
set it to utf8mb4 for connection
ok
???????
[client]
default-character-set = utf8mb4
[mysql]
default-character-set = utf8mb4
@bold wigeon idk why don't you hover over it
i cant turn on the bot
h0ver over the err0r
Because why the actual fuck do you have the same command defined twice
found the problem

fixed it
Hovering gives u n e a t b 0x https://illuminate.ngrok.io/5b314582c1fa0b0f2ea03205.png
that is go
oh 
it's go
@keen drift u use discordgo?
how is it
f u n
i cant stand go
aside from the misleading doc, it's great
i already tried go
go is insanely fast
and making a discord bot with it
i will give u that tho
it wouldnt log in 😩
idk why nothing was wrong with my token and i basically use example code from docs

I like go
Idk what go is
Oh
it's around 50x faster than python
wew
@keen drift i would stick with it if it had built in event emitting
im too lazy to do it
"x is y% faster than z" heavily depends on what is being done
compiled will always be faster
not really
good interpreted code can beat bad compiled code
and you need to consider development costs and maintainability
if there's really good library in python that does X
in some cases it can
but compiler is meant to breakdown the scalfolds
it's most likely not worth it implementing in go
reducing cost
which is pretty much everything for statically typed
no
code that can be easily optimized by a human who knows what it does might be extremely hard for a compiler to optimize
so you are saying machinecode runs slower than a b type language
no
i'm saying that it depends on what the code does
it might not even be worth using machine code for eg IO bound applications
you'll spend more time waiting for IO to complete than actually using the cpu
it depends
Different implementation obv yields different
I wouldn't go too deep into this, but at most cases, jit & others will perform better
not saying all
also you might want to trade performance for stability (eg elixir/erlang) or something like that
how can i get key from youtube data?
what key
for music bot
you don't need one?
you need if you use the official way
if you scrape (aka break youtube's terms) you don't need a key
but risk an ip ban
can someone send me the full code
There are plenty of music bots open sourced
the leagal
who can help me ?
https://hastebin.com/anizenozet.swift
i dont have any error
but bot syntax is not correct look at
Sondage
Question :thinking: ? :
Tu est pour qui ? -r1 la France reponse -r2 l'Espagne -r3 l'arbitre
Réponse 1 :one: ! :
la France reponse -r2 l'Espagne -r3 l'arbitre
Réponse 2 :two: ! :
l'Espagne -r3 l'arbitre
Réponse 3 :three: ! :
l'arbitre
look
-r1 in question normality is not visible
you can help me ?
-r1 in question normality is not visible
-r2 a like -r3 ...
not even sure what the code is designed to do
My logs says everytime: Missing permissions. What's wrong?
mission permission 
wat
BAN_MEMBERS
this
if (!message.guild.member(message.author).hasPermission('ADMINISTRATOR'))
one problem. idk which command it is lol
you have just changa ADMINISTRATOR
@bold wigeon I don't think there's an API for downloading video
in other permission
@bold wigeon Since it's against their TOS like @inner jewel said, their API will not support it. So scraping is required.
isnt hasPermission depreciated? 
You will have to scrape for the data
you can show you code ?
I?
what ?
give me a second
Np 😉
maybe is you sql bdd don't have a permission 🤔
because I don't see any javascript porblem permission
hmm okay
it does not crash the bot, but the logs fills a lot
should it help to add this:
if(!message.member.hasPermission("SEND_MESSAGES")) return;
I think that worked
no errors right now
nope get error
You have a error ?
now he says : TypeError: Cannot read property 'hasPermission' of null
if(!message.member.hasPermission("BAN_MEMBERS")) return message.channel.send("No can do pal!");
try with this
does anyone know how to implement the discord oauth strategy in a react+router (web based) application with the intent to retrieve the user's identity (excluding email)
okay
no lol @earnest phoenix sorry 😄
now he says Missing Permissions lol
does he post a message about the discord ?
It's a level system
if he doesn't normally get permission he displays his message.channel.send("No can do pal!");
lets try
EMBED_LINK is not a permission he says
yes is normality
not EMENBED_LINK here
is in you configuration salon
not the bot
the salon
it's on the channel permission
yes its i try to say this lol
nobody can help me in discord.js ?
if (message.content.startsWith(prefix + "test")) {
let args = message.content.split(" ").slice(1);
let args1 = message.content.split("-r1").slice(1);
let args2 = message.content.split("-r2").slice(1);
let args3 = message.content.split("-r3").slice(1);
let thingToEcho = args.join(" ")
let thingToEcho1 = args1.join("-r1")
let thingToEcho2 = args2.join("-r2")
let thingToEcho3 = args3.join("-r3")
var embed = new Discord.RichEmbed()
.setDescription("Sondage")
.addField("Question :thinking: ? : ", thingToEcho)
.addField("Réponse 1 :one: ! : ", thingToEcho1)
.addField("Réponse 2 :two: ! : ", thingToEcho2)
.addField("Réponse 3 :three: ! : ", thingToEcho3)
.setColor('#01A1FE')
message.guild.channels.find("name", "général").sendEmbed(embed)
.then(function (message){
message.react(":one:")
message.react(":two:")
message.react(":three:")
}).catch(function() {
});
} ```
i have this
indent tho
and i try to get this in finality
Sondage
Question 🤔 ? :
Tu est pour qui ?
Réponse 1 1⃣ ! :
la France reponse
Réponse 2 2⃣ ! :
l'Espagne
Réponse 3 3⃣ ! :
l'arbitre
but i have this
I fix my problem later. thanks for help guys
Sondage
Question 🤔 ? :
Tu est pour qui ? -r1 la France reponse -r2 l'Espagne -r3 l'arbitre
Réponse 1 1⃣ ! :
la France reponse -r2 l'Espagne -r3 l'arbitre
Réponse 2 2⃣ ! :
l'Espagne -r3 l'arbitre
Réponse 3 3⃣ ! :
l'arbitre
how I can remove this -r1 France replies -r2 Spain -r3 the referee
and this -r2 l'Espagne -r3 l'arbitre
what is that for
is a system question with multiple reponse
it's a question-answer system with multiple answers
but i have a problem with a finality get
what ?
I'm gonna rephrase
i have this code actual
to this code I get this
Sondage
Question :thinking: ? :
Tu est pour qui ? -r1 la France reponse -r2 l'Espagne -r3 l'arbitre
Réponse 1 :one: ! :
la France reponse -r2 l'Espagne -r3 l'arbitre
Réponse 2 :two: ! :
l'Espagne -r3 l'arbitre
Réponse 3 :three: ! :
l'arbitre ```
but I want to get that
Sondage
Question :thinking: ? :
Tu est pour qui ?
Réponse 1 :one: ! :
la France reponse
Réponse 2 :two: ! :
l'Espagne
Réponse 3 :three: ! :
l'arbitre ```
how I could remove the -r1 France reponse -r2 Spain -r3 and -r2 Spain -r3 l'arbitre
🤔
the first and the two and three but sépared
My bot can't clear its own emotes?
reactions?
ah
nobody have a solution for me ?
so you can not clear other peoples reactions even if its on the bots message?
you can if you have manage_messages perms
do we get that permission here
I guess I could add a if statement for a work around but it would be slightly messier but would do the trick for a demonstration purpose on this guild
Oh okay you dont understant my code ?
I don't know what language or Discord library it is
Discord.js
oh ok what is the problem again?
I can show it to you because I'm having trouble explaining it.
send me a screenshot then I won't join another server
okay wiat
wait
i have this
but I want to have his
Sondage
Question :thinking: ? :
Who are you for?
Réponse 1 :one: ! :
la France
Réponse 2 :two: ! :
l'Espagne
Réponse 3 :three: ! :
l'arbitre ```
oh
I don't want that.
r1 la France reponse -r2 l'Espagne -r3 l'arbitre
and that-r2 l'Espagne -r3 l'arbitre
you did all the splitting wrong wait a sec
I do
you don't need to use slow regexp if you do it smartly
sometimes in coding you need to start over to correct stuff, in this case you did it wrong and it's ok.
@heady zinc he does for the split
yes !
Is this a good way to check for member guild permissions? ```js
if (msg.guild.members.get(client.user.id)).hasPermission('MANAGE_MESSAGES'){}
he doesn't
lol
split can take a string
well a string of regexp
i use string lok
look
Oo nn i dontr use string lol
let args = message.content.split(" ").slice(1);
let args1 = message.content.split("-r1").slice(1);
let args2 = message.content.split("-r2").slice(1);
let args3 = message.content.split("-r3").slice(1);
let thingToEcho = args.join(" ")
let thingToEcho1 = args1.join("-r1")
let thingToEcho2 = args2.join("-r2")
let thingToEcho3 = args3.join("-r3")
confused it with slice.
okay let's take an example, let's just say you make the command syntax be -test <question> | <réponse_1> | <réponse_2> | <réponse_3>, then you can just do message.content.split("|")
except for the first argument, because you have to remove the -test thingy from it
do you know how arrays work
no
then i recommend reading this https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Array
with the thing i gave you all the possible answers are already available without anymore parsing
Okay 😃
you just need to do args[1], args[2] and such if you did let args = message.content.split("|")
slice means basically that you take the array and slice it into a smaller (or the same) array
slice(1) means you make a new array from the second item to the last
let message = "this is a question | this is an answer | this is another answer";
let args = message.split("|");
console.log(args[0]);
//this is a question
console.log(args[1]);
//this is an answer
console.log(args[2]);
//this is another answer```
message.split("\\s+|\\s+") 
and here I am confusing xd
so learn JavaScript before rushing to make your bot
these are simple array and string operations https://www.w3schools.com/jsref/jsref_obj_array.asp https://www.w3schools.com/jsref/jsref_split.asp
use these links to better understand array and string manipulation to understand data
you may want to use this https://openclassrooms.com/courses/apprenez-a-coder-avec-javascript or other courses on openclassroom
it's a great french website with easily understandable courses
you won't do bot related things with the one course i gave you but it will give you a better understanding of how javascript works and how to do specific things, including string and arrays manipulation
Okay thx
I use discordjs
just saw 
I should probs create a info command for the bot and put library -> discordjs
or sneak it in help
maybe
I'm trying to prevent this huge duplication of my code at line 134 I'm using a if statement to check for a permission and using the else to duplicate the command because of the lack of manage_message permission I can't clear other peoples reactions and only the bots self reactions. https://codeshare.io/29VWEK
I dont think u are allowed to remove other players reactions
how to fix it: IndentationError: unexpected unindent
Too many }'s?
and also the code within in the command needs to be on separate lines
so '''flips a coin''' and random.choice need to be seperated
await bot.send_message
@bot.command(pass_context = True)
async def flip(ctx): '''Flip a coin''' flip = random.choice (['Heads','Tails']) await
bot.send_message(ctx.message.channel, flip)
here is the line
fix it pls
😃
@bot.command(pass_context=True)
async def flip(ctx):
"""Flip a coin"""
flip = random.choice(['Heads','Tails'])
await bot.send_message(ctx.message.channel, flip)```
look up how indents works
it might help
how do you have a whole bot with commands and not know how to use indents 
yes
i don't see anything wrong with it
i know
when you boot the bot what error does it return
you're probably missing a ")" somewhere
that happens to me. either that or I'm dumb
is it an error becasue you use async without await?
that doesn't matter
it's because you have a space in between print and the brackets
for whatever reason
seems like he's gone somewhere else though
nvm it's not
me ist dumb
shea accept pls
i don't accept people idk
just for sec
just send whatever here
unless you're planning to send an invite
that ain't happening
you have an extra space which isn't needed
what did you even change
can i ask why that is there anyway
pretty sure it's not meant to be there
even if that could somehow work you'd be checking after the action
thank you so much!

and do you know why my ban command dosnt work?
are you mentioning a user in the server
yes
does it have the ban members permission
yes
and does the user using the command have the role owner which is what i'm guessing is what that check is looking for
no
because i can see why that won't work too
can u write the fixed code? pls
i know
use the docs might help
but if you don't even know how to fix your indents i doubt you actually coded your bot
i did it
If you create a function like sendEmbed(desc, title, fields) but you do not want to fill out fields would you just put null?
A space
Or you can create a string array, and use the embed description.
@earnest phoenix the recommended way is using scheduled executors
java.util.concurrent.ScheduledExecutorService
java.util.concurrent.Executors.newScheduledThreadPool()
why do i need python (python 2) to get certain node modules?
🤔
great now i have to install python
ok what is the exact version i need to install
you need node-gyp which requires python 2.7
node-gyp is node's build tool, which builds modules that were written in other languages that need compiling, such as C, C++, etc
they often need system specific settings and/or files in the building process, thats why they usually cant be pre-compiled into plug-and-play modules
what permission is required for a bot to fetch invites?
I believe it need to access the audit log, but I could be wrong
its not
Ok
its manage_server
^
hi... anyone know how to get voiceChannel id after create channel with Discord.js?
message.guild.createChannel('ID CHANNEL 1 : ' + `${message.channel.id}`, 'voice',[{ id: message.guild.id, deny:0x00100000, allow:0x00000400 }]);
how to make Channel name will show the channel ID?
It returns a promise that resolves to that new channel
Ik people don't like glitch here.
But how would I require the image in assets?
The direct asset
Not a link
For Canvas
plz help
Does anyone know how?
I get this error
UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): Error: error while reading from input stream
Idk what the directory for assets is
???
Anyone know?
@bright spear Where do I put the link to the image or whatever?
function previewFile() {
var preview = document.querySelector('img'); //selects the query named img
var file = document.querySelector('input[type=file]').files[0]; //sames as here
var reader = new FileReader();
reader.onloadend = function () {
preview.src = reader.result;
}
if (file) {
reader.readAsDataURL(file); //reads the data as a URL
} else {
preview.src = "";
}
}
previewFile(); //calls the function named previewFile()
oh
I see
that references document which only works in HTML
someone see any problems here?https://gyazo.com/404e78604fc38847adfb34e1dd300e23
@bright spear Do you know any ones that don't need HTML?
idk
FIXED IT
Was it the discord.Embed(name= thing?
Because discord.Embed doesn't have a paremeter name 
Anyone know how to require an image in glitch?
Like the actual file.
no one know how to do that?
the javascript script image method uses html
how to fix this line pls https://gyazo.com/3825ea70884f95ee4f1beae4400606ad
the last line after the await
please
nvm
Canvas or jimp @earnest phoenix
Canvas doesn't work for me
Scroll up
Glitch doesn't like canvas
because I can't give an image dir
eww Glitch
ayy don't be mean :(
I was jk
Glitch is okay I guess. You can load pictures off the internet though Canvas I thought 
I got canvas to work on glitch no problem lol
¯_(ツ)_/¯
The problem is I can't require the image
I've used Canvas on Glitch a few times
Just so you know people can hack glitch bots like iv known a few people who used it but someone got there token and bombed all there servers
Yeah, glitch isn't secure
Well I'm new to js
Which is why I avoid the hell out of it
Buy a real, secure vps
OVH >:3
I'm not spending money ;-;
Or get a free 12 months trial on azure I'm cheap :D
lmao
It's not that good
take backups then
I just want to know how to make canvas work with it
jic
@shy verge maybe you'd care to offer this fellow some gud host
solarys offers hosting for bots under 500 guilds i think
How much does it cost?
free
Can I do that with VSCode?
That way I can require an image 😃
You there?
It says your idle
i'm always idle lol
idk where the gist is, just wait for solarys to respond
also vscode is just another editor so lol
anyways i'm out
kk
@earnest phoenix you may not care if your bot gets ruined, but what about all the servers your bot is on? If those get trashed you will be held responsible until the real culprit is caught, and even more so if you use something as insecure as glitch
maybe.
you need to make sure your token is safe
like
put it in a seperate file no one else can see
My Discord Bot token is in the .env file
yeah that's good
Can hackers hack that?
if you open source it and put it on git you need to make sure you gitignore .env
?
I wonder if it's the same code that can be run even if the file is encrypted
Can someone help with Canvas on glitch?
glitch 
I wanna add text over an image
Same
@earnest phoenix find the absolute URL to the asset
No, URLs don't work
Then use fs to load it into a buffer and you're golden
But idk js stuff
Actually, you can use snekfetch to grab the file via url
Unhandled promise rejection (rejection id: 4): Error: error while reading from input stream
client.on('guildMemberAdd', async member => {
const channel = member.guild.channels.find(ch => ch.name === 'new-members');
if (!channel) return;
const canvas = Canvas.createCanvas(700, 250);
const ctx = canvas.getContext('2d');
// Since the image takes time to load, you should await it
const background = await Canvas.loadImage('/assets/wallpaper.jpg');
// This uses the canvas dimensions to stretch the image onto the entire canvas
ctx.drawImage(background, 0, 0, canvas.width, canvas.height);
// Use helpful Attachment class structure to process the file for you
const attachment = new Discord.Attachment(canvas.toBuffer(), 'welcome-image.png');
channel.send(`Welcome to the server, ${member}!`, attachment);
});
Yes, because you're loading a file path, not a url
But when I put a url in there it does the same thing
snekfetch.get(image url)
Yes, because node canvas is expecting a buffer
iirc
Yeaj
Wait
wait wait wait
But then what do I put in the brackets?
Canvas.loadImage('What do I then type here?');
const { body } = snekfetch.get('URL')
const { body } = await snekfetch.get('image url');
const background = await Canvas.loadImage(img);```
i guess
Body returns the buffer you need
@sick cloud wouldn't work, snekfetch doesn't return img
A bonus of using glitch is you don't have to install canvas though
I figured that out after a second
Still has the same thing
Use a valid version of node if you want async await
Do I need await in this?
i think you're using async in non-async function
you need to use it INSIDE guildMemberAdd
kk
before you load the image into ctx
yess
K thanks
inb4 'image url' not working
?
YES
THANKS SO MUCH EVERYONE
My bot is offline and the code has an error
whats the error?
Can anyone help
we can't help if you don't give us code/errors
Running the bot to get the errro
Traceback (most recent call last):
File "python", line 59, in <module>
discord.errors.LoginFailure: Improper token has been passed.
oh no
python
Last line of the code
your token is incorrect
Yep
regenerate it
I know that much
and try a new one
OK
ok
Huh, why is my name changed?
Traceback (most recent call last):
File "python", line 59, in <module>
discord.errors.LoginFailure: Improper token has been passed. same
@here anyone fluent in python?
are you copying the whole token
Yep
and are you sure you are copying the right thing
https://repl.it/@freddyamarsden/Verified-Bot Here is the code
Yep
Underneath user it says token on the discord develop page
And because of this my bot is offline so I can't get it on the server
I am on the repl.it server, and they can't help.
So pls!
Just tried your code, works fine. your token is wrong.
I don't get that
or os.environ['TOKEN'] is not the token
print that and see if it matches your actual token
I am saddly on mac thou
ok
wtf is this??
(node:238803) UnhandledPromiseRejectionWarning: TypeError: Cannot destructure property `prefix` of 'undefined' or 'null'.
at Client.client.on (/root/Blurp/messageHandler.js:36:5)
at <anonymous>
(node:238803) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:238803) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
my database suddenly just isn't working
mate ny bot isn't working
ok..?
Ahhhh
No one seems to
did you check if your token matches to os.whatever you had?
okay wait its broken again
ok
@earnest phoenix
let { prefix } = await r.table('guilds').get(msg.guild.id);
if (!prefix) {
await r.table('guilds').insert({
id:msg.guild.id,
prefix:'!',
modlog:'disabled',
caseId:0
});
let { prefix } = await r.table('guilds').get(msg.guild.id);
}
thats where its erroring i believe
isben are you doing like { prefix, something } = db.get(guild id) basically
and i'm using rethinkdb
its also weirdly not inserting the data into rethink
its trying to get property from that that doesnt exist
well that would explain lol
i could try resetting it since its kind of being buggy
not sure why it wouldnt be writing, dont use rethink myself
ohk i think i just stuffed it up
uhh i think i know why
pretty sure let { prefix } = await r.table('guilds').get(msg.guild.id); would fail if the db returns null
since it cant destructure
so it never gets to the if and never writes to the db
just do let something = db.get
then check if !something
@earnest phoenix Send the token in my DMs please (feel free to reset it right after sending)
its totally fixed now actually @earnest phoenix not the codes fault
my rethinkdb instance was totally corrupted
🤷 ok
thanks for the help
i'm gonna give up on my bot now, database is totally fucked
i had to manually insert the guild into the database
try what i said
ok
I made the greatest thing ever
When they join its the pigeon meme
@austere meadow Can you unmute my bot?
@pallid void
@pallid void
How do I make it so on this server it doesn't do things but on others it does?
Well, what I actually wanna do is something slightly different
add a check for this guild
if (message.guild.id == "264445053596991498") { //do stuff
kk
and also ```
if (message.guild.id == "264445053596991498" return;
if you wanna disable a command?
yeah
np
My bot is verrry useful
lol
wew
Just type snipers join in #265156361791209475
I think I broke it
@pallid void
@austere meadow There is a bot that is responding to oof
oof
Only in #265156361791209475
@earnest phoenix Don't you love it when you type +help in #general
Do it
naw
lol
why would I tho
help me pls
you didn't close the JSON
?
oh
Thank
how you do set the size of msg.author.displayAvatarURL?
it auto adds size on the end
oh
but its setting it to 128 etc
nope it doesn't
come on #commands
do
use replace
("?size=2048", "?size=1024")
or somethin idek
somehow replace it
:>
oUf
another question actually, can you replace the reply method? .reply returns an @mention, can you make it show the users name only but bold?
so **username**, content here instead of @username, content here
is that your token
no
[Paster] ... looks like it
your logging your token
and now its public gg
also thats your issue, message event hasn't got any message set
eliminated image
async () should be async (msg)
LOL
ok
People are busy, just wait until someone will come with the answer
@earnest phoenix what should I do then?
@earnest phoenix so
I think so, othervise I have a working code for commands..
@runic cloud message.content.split()
^
rip
wait
hm
where is the mistake ?
bots can't be added to group dm @earnest phoenix
bc you need to be friend with it and you can't be that
(if it's a bot user)
ahhhhh ok
and selfbots is not allowed so
yeete
@jolly mist , missing comma after json.stringify
ooh, crap
I thought that but I wasn't sure :3 xd
MENAGE_MEMBERS is not a valid permission
ah yes
Does anybody know if a website is required for certification?
i think so
Aight
Thanks
np
anyone know how to fix it in discord.js? Console: "TypeError: member.addRole is not a function
what version discord.js @earnest phoenix
where to see version? 🤔
npm list discord.js
wrong parameters for setActivity @runic cloud
how I put it
1.0.0
@earnest phoenix you sure? i mean stable is like 11.3.2 and master is 12.0.0
oh sorry mine is 11.3.2
@earnest phoenix
ok are you using .addrole on an actual GuildMember like:
.then(console.log)
.catch(console.error);```
@jolly mist typo on first line of your command. 'MENAGE_MEMBERS' is not a permission
maybe more but that stuck out immediately
but what should I do then ??
correct the typo? chu mean dog
😂
thanks, i think my code had any small mistake 🤔
👌
Help
whats the issue @runic cloud
isn't the color suppose to be an integer?
will be converted automatically
I think d.js handles hex
I do not think so
ColorResolvable Can be a Hex Literal, Hex String, Number, RGB Array, or one of the following
@earnest phoenix
Thank
👌
is nice
someone see any problem here?
https://gyazo.com/a8f15969af3aa933fb43365354202187
the bot dosnt work when after i did this
any error?
I really recommend you to learn more of python to at least understand what you are doing yourself
How do I choose the size of the text?
wdym?
How do I choose the size of the text?

😂
wdym?
in an embed you cant (based on ur last question)
i mean title and embed title have bold text i think
❓
if you'd know how embeds work, you'd know lol
msg.guild.roles?
not work
you have to provide it with the server you want to look for roles at
what do you mean?
your bot doesn't know which server to look at to begin with
Well, the file doesn't know what guild is because you did not define it 
guild doesn't just say "server where command was ran", especially when the bot is in multiple servers
come and have a say?
what
what command should I give to tell the bot what server to watch
I don't code in discord.js, so your best bet would be to find the reference yourself in the docs
Don't rely on newby's code 
yes what is wrong with me
im trying to fix it and i dont understand what wrong pls help
https://gyazo.com/0f67745499d1cb5c7f17ad515a805160
wrong link
sec
???
look closer, the answer is too obvious to point it out
actually 2 issues, both are very obvious
even i see the both issues
wait what? I like how you defined fields, so it's a lot more than 2
huh
I'm gonna say one thing, fields must contain both names and values
the rest issues are on yourself
im trying to fix without success
my bot work perfectly without the last code lines
https://repl.it/@freddyamarsden/Verified-Bot Can anyone explain why my constantly updated token is an error
@steel nacellet.command(pass_context=True)
async def israel(ctx):
await bot.say("🇮🇱 you found the secret command")
print ("user has found the secret command")
what the problem here
???
None
What is the error
@bold wigeon ctx.say()?
hes using async not rewrite