#development
1 messages Β· Page 391 of 1
oh well
No one can help you then
who
Im so confused at what your actual problem is
who asked you
You?
converting what to js?
You asked pretty much everyone
ecksdee
Processing WHAT
processing to JS 

write assembly in your head and convert to js on the fly
Well then what in gods name are you asking for help with???
im not
You were?
(tbh i just wanted u to shut up)
π€ π€ π€ π€
and yes, i were
Well then why did you ask if you managed to figure it out yourself
Seems like a waste of everyone's time
ok so you went from "I need help" to "JS is easy" to "I am converting processing to JS" to "I don't need your help" 
u r crazy
Kids got a lot to learn about how to use the magic organ in his head
adults need to learn the magik of "give the thing they are asking you for, not a motivation"
Why did you ask for help in the first place?
and that is actually mean
Im not convinced you actually did solve your issue
good for u
Adults dont need to learn that
ugh, look
Kids gotta learn to think for themselves
#development is just people asking for help and getting laughed at or asking for help and getting no response xd
i found a solution to another problem
block you
wheeze
Thx for late night entertainment i guess
@trim plinth guys more of an extra bad meme than you
Relinquish your nickname!
He really got me at the "adults need to learn the magik of "give the thing they are asking you for, not a motivation"" part
@earnest phoenix its more like people usually get their answers, or they ask a question, get their answer, and then ignore it and call everyone who tried to help them a dumbass and block them
And a lot of asking for the simplest thing that the first google result will give ya
im mad cuz he wasted my time giving me the solution i didnt asked for and didnt want actually
after all hes not my father
Its not the solution you wanted, but the solution you needed
- a. Donβt spoon-feed or attack beginners.
Everyone starts somewhere and asking questions is smart. Do not attack people for not knowing how to code. Point them to great learning sources and help them with problems.
However, you shouldnβt just give them finished code because then they only learn to copy more.
Wonder if im actually blocked or not
Smh
just realized this was dev not general
π
π¬
anyways we should probably just end this conversation, as its going nowhere
Not gonna get anywhere. Personally i hope he looks back in years to come and is like"damn they were right"
Hey strum this is what roblox dev help is like 24/7
Im in physical pain just thinking about it
@elder rapids bringing roblox into this 
Only did to mention a point
fair enough
var imgArray;
imgArray[0] = new Image();
imgArray[0].src = 'fly.png';
imgArray[1] = new Image();
imgArray[1].src = 'deltafighter.png';
imgArray[2] = new Image();
imgArray[2].src = 'trident.png';
imgArray[3] = new Image();
imgArray[3].src = 'sidefighter.png';
imgArray[4] = new Image();
imgArray[4].src = 'pulsefighter.png';
imgArray[5] = new Image();
imgArray[5].src = 'shadowx1';
imgArray[6] = new Image();
imgArray[6].src = 'Ydefender';
else if(message.content== 'fly random ship'){
message.channel.send(imgArray[(Math.floor(Math.random() * 6) + 1)]);
}
can u tell me what is wrong in this code please?
but those look very different
read this
ok
and theres no such thing as image arrays, theres just arrays
Lotta things wrong with that code
@trim plinth
var imgArray = [{files: ["fly.png"]}, {files: ["trident.png"]}]; is this any better?
better but still has issues
@trim plinth have fun
i just dont see them
hmm well the way they did the attachments isn't how to do it
yeah this is wrong
message.channel.send(imgArray[(Math.floor(Math.random() * 6) + 1)]);
but otherwise it works
just really long array initialization
lol
is just messing around
it doesnt show errors @trim plinth
it just doesent work
then you should wrap your code in try and catch to find the error
what is that?
ok
bye bye arrays
Anyone have any ideas on JUnit testing with JDA?
you're going to need them some time in the future so its not ideal to avoid them 
ik
ill try to figure it out with tryal and error
a know coding languages base
so it shouldnt be that hard
it will be hard
(10 hours later deskflip)
OwO he must have an 8ball command but doesnt understand arrays πΈ πππ π ππππ’/πππππ-πππ π
dont need an array for that though
random number 1-8 and then a lot of ifelse
why are you using json as datastorage lmao
use sqlite
or nedb
or something other than json
pls help https://josh.ate-a-ta.co/f5ca0c84.png
embed.add_field(name="Servers", value="len(bot.servers))", inline=True)
Without quotes it won't load.
how do I make a command for both people with a specific role and me (if I don't have role)?
Language?
discord.js
Can't help, sorry.
Ahm, how do you check if people have a specific role?
Basically just post a bit of your code @earnest phoenix
@earnest phoenix wat do u mean?
Can't be arsed to help him if he posts so little details lol
What about my thing π
@gilded thunder is there any exception? Can you break in debug and look at the value of your expression?
Ok, gimme a sec.
Just working on my personal butler bot.'
File "bot.py", line 70
embed.add_field(name="Guilds", value=len(bot.servers)),
inline=True)
^
SyntaxError: invalid syntax```
Youve got one too many closing brackets...
Ah, good catch. Didn't even see that.
Now you know π
Npnp
Hey! Any idea how to get info that user has been joined voice channel? Discord Py
the client doesn't have attribute member
you are basically fetching the user wrong
should be
async def on_voice_state_update(member, before, after):
and remove client.
@opaque zinc
in discord.js how do you make it so itβs maps out the real user count and bots count in a guild
use the filter action
uuuh
Hey
Ive got a question
So i have my bot running
ok?
But thats only while i have node opened
How do i make it to run for example when i turn off my PC?
To host it 24/7 you'd either need a vps or use a website eg glitch or heruko
Virtual Private Server
Okay
:c
Here is a list:
https://www.ovh.com/ - Cheap servers, not very fast network, quite decent reliability
https://www.scaleway.com/ - Cheap servers, decent network, decent reliability
https://bakeryhosting.us/ - Cheap servers, no bandwidth limits, small company, decent reliability
https://www.vultr.com/ - Expensive, very good servers, excellent reliability
https://www.digitalocean.com/ - Expensive, extremely fast network, excellent reliability
https://vpsdime.com/ - Cheap, never have had experience with it
https://cloud.google.com/ - Expensive, scaleable, hosted by google, has free trial,
https://aws.amazon.com/ - Expensive, scaleable, hosted by amazon, has free trial
https://azure.microsoft.com/en-us/ - Expensive, scaleable, hosted by microsoft
Ok
contabo also good
And whats heruko?
google it
I host on my own server
I host on a vps
Depends on which one you choose
Ok
look on the sites I linked
I did
What's best to put in my bot's desc? (the html preview)
Can you get other users information beside the users logged in with oauth2?
Idk
I am the last one who knows about online stuff
print("whatever")
print(member.voice.joined")```
@earnest phoenix if you dont know, simpy dont answer
@gusty topaz docs?
Okay
Im gonna look up a free vps
Python doesnt read more than 2 arguments, so i found some solution @floral stone
@client.event
async def on_voice_state_update(before, after):
print(after.name + ' joined ' + str(after.voice_channel))
Wait, are you using async or rewrite?
async
Now i need to guess how to get if user disconnected from voice channel
you replace @me with the id
although you need to be authenticated with a bot token
and that endpoint has very harsh ratelimits
How harsh!?
1 request per second
it's not that harsh considering you shouldn't need to use it frequently 
I mean, no one is going calling the api every half second
Do i need to send any other headers besides {"authorization":"token"}
U never know with some of these Devs lol
nvm, got it
what postgresql data type should i use for ids
if there is bigint try that else try string
It has BIGINT
.help
@hushed oyster integer I thought
Oh
Shouldnt IDs be strings?
Youre not really gonna perform arithmetic on them id assume
boi
Waddap boi
It CAN be, but the correct way is to have bigint
Tru
HoW aBoUt U sToR iDs As FlOaTs
Nice ads
https://i.imgur.com/BxXQvQz.png
#memes-and-media @prime cliff
The entire server is a shitpost
Not #development related though
So it's either general or shitpost
Yea ik i thought i was in general lul
reee
One message removed from a suspended account.
hi
how would my bot react to its own message (discord.js)
this doesnt work
msg.channel.send("**Voting**")
.then(function (message){
sleep.msleep(1500)
msg.react("π")
msg.react("π")
})
wow thanks lmao
np
I dont see how they are compatible
How can I make a command which makes a message and then adds 2 emojis, and after some time it random picks 1 user and says their name in the channel? (discord.js) Β―_(γ)_/Β―
Hello! How can i make a function similar to this: While user connected in channel +1 every second. And when disconnected - stop counting
p.s python.
I have tried many methods but theY didnt work
@earnest phoenix break the problem down into small steps, solve the steps one by one
Dont think of the problem as a whole
create a bot ofr me
no
Dynamic programming
<style>.alert {display: none !important}</style>
@hushed oyster put that on your bot page to hide the aler tor advertising
Can someone help me fixing this thing: Everytime i enter node . to start my bot it says the following:
Error: Cannot find module 'C:\Users\Kucni'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3 And yea C:\Users\Kucni isnt a module? IM CONFUSED
And by the way im a begginer so..
What are your imports?
One message removed from a suspended account.
Language?
One message removed from a suspended account.
Library?
Im using discord.js
@everyone create me a bot who s name is Fon-Bot And he does fun moderation nsfw and level
sait yes here
no
JS
I want the bot to reply if the bot is tagged.
I hatte when vs isnt responding
@wraith cape cd <the_bot_folder>
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
Wdym?
nuuuuuuuuuuuuuuuuuuuuu
I was making a folder and the js.txt thingy and then....Look........VS DOSENT REPOSND
Its back
it isn't js.txt 
Im a beginner i never made a bot well i tried but i failed
@earnest phoenix People aren't going to make you a bot. There are plenty of moderation, NSFW, and level bots on DBL.
its so simple, bot.js not js.txt
Vs code I guess
so make a folder then the file inside of it?
yes
oh tanks
I use jetbrains for EVERYTHING
jetbrains makes my computer angery
show your code now
u saw nothing
Confused.............

The code in vs?
yes
oky
send a screenshot
Through hastebin
ew no
Yes
you still haven't set the file extension correctly 
how do i do it
Have a prefix pls
what is your file's name right now
For the sake of humanity
oh my fucking god
Also use .startswith
have you actually listened to us like at all
I NEVER MADE A BOT AND IM CONFUSED RIGHT NOW
ok what to do
learn JS
does anyone know how do i make my bot send a message every 1min without any input
Language : Javascript
See the setInterval() method
ok
XD
pls spoonfeed me
i dont know image editting
can someone send me a code of an image editing bot?
no
Rule 7b doesn't let us
if we gave you help for that it would be spoonfeed
i recived an answer like "figure it out by ursel"
"can someone send me a code of an image editing bot?" this would be spoon-feeding which we're not allowed to do
well
i mean before π
it was all like "here u have a thing that may help u"
i dont understand that thing
"what is wrong?"

"figure out by urself"
last time I checked when you asked for help and it wasn't asking for spoonfeeding we tried to help you and you didn't listen
cya
I was trying to follow the moderation guide provided by Discordbot site and for some reason the code isn't working anymore for me atleast
paste code and error
Will in abit, uploading an updated version of my bot to my server rn, afterward
ok im back
var kebbls=imgArray.get[Math.floor(Math.random()];
so i got this array
and it says there is an error
its supposed to give a string
so can u please tell what is wrong?
you get an element of an array by doing imgArray[Math.floor(Math.random()];
not .get
okay thanks
and last question
how do i make it to get
the random string from the lenght of the array?
wut
i mean random between 0 and imgArray's lenght
@topaz fjord hello?
var ex= " Hello I Exist";
alert (ex);
TnT
left alone
learn JSβ’
hey
please tell me T-T
is no spoonfeeding
@trim plinth
is yes spoonfeeding
i see forkfeeding
why
im asking why it says error
and no, teaching sintax is no spoonfeeding
and no, learn nodeβ’
var eat=arrae[Math.floor(Math.random()]; it puts error at the semicolon ;n;
oh no nvm
your missing ) after ()
i missed a parenthesis
we figured out at same time :3
thanks
all that just for a parenthesis
yup
and som sintaxis XD
im sorry
syntax?
yus
that thing π
@gilded plank owner @snow talon
That bot wasn't found
Would this work for only allowing a command to be ran on a specific server?
if ctx.message.author.server.id == '429426403088400406':
I'm not server.id is a variable.
you can shorten it to ctx.message.server i think
or maybe even ctx.server
but that would work methinks
Alright, I'll try that.
Alright, now it just sends my else: error message on all servers.
@bot.command(pass_context=True)
async def nsfwrole(ctx):
if ctx.message.server == '429426403088400406':
role = discord.utils.get(member.server.roles, name='nsfw')
await bot.add_roles(member, role)
embed = discord.Embed(title="Role applied!", description="NSFW role added.", color=0x146aeb)
await bot.say(embed=embed)
else:
embed = discord.Embed(title="You aren't in </CodeHangout>, this command won't work.", color=0x146aeb)
await bot.say(embed=embed)
@gilded thunder yeah it has to ctx.message.server.id
Thanks!
np
Requesting Help
Language: javascript
Libraries: discord.js
Code:
const client = new Discord.Client()
try {
process.on('unhandledRejection', error => client.guilds.get('366705297013735425').channels.get('426385063471480832').send({embed: {
title: "Event Error Has Occured: guildMemberRemove",
fields: [{
name: "Error Name",
value: error.name
}, {
name: "Error Message",
value: error.message
}, {
name: "Stack Error",
value: error.stack
}]
}}));
} catch (error) {
console.log(error)
}```
**What it's supposed to do:** Supposed to catch any Unhandled Promise Rejections and send it to a channel where I can access it when I am on the go
**Problem:** It keeps on saying
process.on('unhandledRejection', error => client.channels.get('426385063471480832').send({embed: {
^
TypeError: Cannot read property 'send' of undefined
Any help will be appreciated
you would rather get a channel by name than id
I thought its impossible for any channel id to be the same? Besides, I am getting the guild first, then the channel.
Is it worth it to switch from Discord.js to Eris?
yes
very
maybe I should switch
you should just switch to discord.py /s

@low rivet agreed
no smooth way, everyway makes you angery
yeah
if you're using JS just use Eris kthx


hmm
but now I use JS btw xd
its ez
takes me only a day to figure something out
xd
gl
ew
I tried using youtube tutorials and other stuff from google searching but none has worked to use ytdl thingy on L
on discord.js
How do you turn off your bot from eval (discord.js)?
process.exit() just reboots it.
process.exit reboots it because probably you run it in a program that automatically restarts the program
you'd have to pm2 stop it (if you use pm2)
i am using pm2
But I can't access the console right now and can't use pm2 delete
you can run console commands
Just the bot
require('child_process').execSync(PUT THE COMMAND HERE IN QUOTES).toString('utf-8')
will run the command
and return its output
Alright, thanks
yw
π
How can I find the default channel in discord.py?
Can I just put #general in the get_channel("channel here") bit?
# on server join
@bot.event
async discord.on_server_join(server):
channel = server.get_channel("#general")
fmt = 'Hi, I'm Arc!'
await bot.send_message(fmt.format(server))
Doesn't seem to work.
async is invalid syntax.
Yeah you defined the signature of the function wrong
Wtf is discord. In the name wdym?
I just copied that function from http://discordpy.readthedocs.io/en/latest/api.html#discord.on_server_join
Do I remove that?
The function annotation knows how to handle the name
Async def
You forgot the def
Yep, loads now.
But it's already on the server.
This is for when the bot is invited to a server.
Whatever then.
Other servers can suffer.
By not having the Muted role for the mute command and a quick start.
How can I make a reaction based menu then, for a manual setup?
I think there is an extension for that otherwise make it yourself
And it's against the ToS here so if you won't remove it the mods will simply kick your bot
Yeah whatever, I removed it now, you need to run a command with administrator permissions to do what the join thing would of done.
I actually made a reaction menu, I will send it maybe when I get home
You can remind me then
pls can someone tell me how to make an canvas (for a cool welcome message)
like this ^
Photoshop?
Or are you asking how to code the avatar
Use transparent and add layers on that
...
@gilded thunder I don't see nothing wrong with an on server join
im not a pro-developer
It's not against the rules
im just a beginner
@floral stone message on server join is not allowed
@spring ember quote it
It is look at the bot is kicked
on server join doesn't fit that description
a canvas
What language @austere barn
@gilded thunder you don't need to remove it
I'm afraid to tag a mod so you go for it
join message is members join
what do u mean bro?
Saying this user joins this server
Oh not my expertise
Im created a bot and i want that he is going to say in the server chat
that
like the bot sarah
I think they used pillow for python unless there is some sort of image generator package.
but then my bot
Do you want to send an image or just an on_join text
uhh
that background and the message on it "Welcome"
with hes name
and hes profile picture
u know
Look into that, I don't usually use Javascript.
Very specific
its for a discord bot right?
You can send an image file though
It's possible to generate images on Javascript
Just create one
its called canvas
use the on_join member event
I made it manual now, dw
Learn JavaScript first
uh
@gilded thunder manual?
i don't want to create website /html/css or a app
i just want to make a discord bot
You run config and it does want I wanted it to do.
It kind of ruins the idea isn't it @gilded thunder
WELL I DON'T WANT IT REMOVED.
Dondish, this user wants to generate images with canvas for people who join.
It's fine, manual looks better anyway.
Manual how that
The embed I made looks good.
Great
# config command
@bot.command(pass_context=True)
@commands.has_permissions(administrator=True)
async def config(ctx):
author = ctx.message.author
await client.create_role(author.server, name="Muted", permissions=)
embed=discord.Embed(title="Configuration for Arc.", description="Due to Discord Bot List not allowing events to be ran when the bot is invited to a server, you now need manual setup for mute and other features.", color=0x0080ff)
embed.set_thumbnail(url="https://joshek.xyz/arc/Arc.png")
embed.set_footer(text="Configuration will be automatic for ease of use, all I'm doing is making a Muted role.")
await bot.say(embed=embed)
Just need to calculate role permissions
You can do it on join
Which I know how.
Dondish didn't know what he was talking about.

Join messages refer to member join message
On_server_join ain't really going to be a problemm
plus, you can make an if statement checking server ids.
This is when the bot joins a server, it says some stuff and makes the muted role.
plus, you can make an if statement checking server ids.
if server.id == "dbots id":
return```
therefore, it won't add the role on_join
@floral stone u know the welcomer bot?
But it's already on the server.
plus your bot most likely don't have permission to do it so you'll be fine
exactly
you will be fine
Alright.
@austere barn I'm aware of it, I generate my own images myself.
Thanks for understanding what I was talking about π
No problem! Enjoy botting
@floral stone do u know the code of welcomer?
Advertising?
@austere barn I use python to generate my images.
yes but do u know how to make a bot like Welkomer or Python?
@spring ember All good mate.
a canvas
python is a coding language different from Javascript and there's a package called pillow.
@gilded thunder π
https://medium.com/the-guardian-mobile-innovation-lab/generating-images-in-javascript-without-using-the-canvas-api-77f3f4355fad check this out
Indeed
Why though
i don't want to learn it
don't then
Your problem then
^
Welcome to coding, you learn or you don't
holl javascript?
If you can't learn it then what's the point of explaining it to you or helping you.
- You want to do something
- You have two options: do it or don't do it.
- The former requires you to do extra work.
- You don't want to do extra work to solve your problem.
- This is your problem.
Listen, you need to learn yourself we won't spoon-feed you
What wtf
^^
I want to learn how to make a welcome message with pictures
Do it then
not holl javascript
Holl?
What languages do you know
how do you use two tables in sqlite node
You don't because it's sqlite
whole
whole?
Sqlite is a file for each table
yes whole
What is whole
"holl" it was auto correction
What languages do you know
What is life?
meaningless
Holl cannot be autocorrected because it's meaningless
so im lying?
@austere barn What coding languages do you know? We are trying to help you but you guys are getting off topic.
idk? im just making a discord bot
Omg
Nice, what a waste of everyone's time. I truly hope you never reach your goal. I hope you realize that you've failed because of your lack of competency for research and instead depend on others. I hope that because of this, you give up and stop bugging others with your mind numbingly boring quest to not do any work.
It became idiotic
π
@worthy storm waste of ur time? U didn't help u didn't say something to me so wtf
lel
You can't just make a discord bot, you need to learn how to code first. Otherwise, we ain't going to help you and you are wasting our time. You can learn to code at http://sololearn.com
Anyways, I'm done for now
oke
Take a python3 course if you want to do an image thingn
What are the pros and cons of using SQL database instead of JSON files with Discord.js?
@tropic ridge less space, easier storage.
@tropic ridge way easier at any way
Better complexity and easier to maintain
Complexity for get/set I mean
So, I guess I can trash everything where I've used json files
Would this work alright?
# on join config
@bot.event
async def on_server_join(server)
author = ctx.message.author
await bot.create_role(author.server, name="Muted", permissions=65536)
embed=discord.Embed(title="Hi, I'm Arc.", description="I am a simple Moderation and Fun bot written by Joshek#1337. I hope you find me helpful for your server!", color=0x0080ff)
embed.set_author(name="My commands.", url="https://joshek.xyz/arc/commands",, icon_url="https://joshek.xyz/arc/Arc.png")
embed.set_thumbnail(url="https://joshek.xyz/arc/Arc.png")
embed.set_footer(text="A muted role will be made for the mute command.")
await bot.say(embed=embed)
Still need to do the exception for this server.
@tropic ridge You need to understand the language that makes up the api before able to make a bot. Otherwise, your attempt is useless.
Aight, thanks
How do you search a person via name in discord.js?
@gilded thunder ctx is not defined for author variable
ok ty
@floral stone ty
np
root@Joshek:~/Arc# python3 bot.py
File "bot.py", line 64
async def on_server_join(server)
^
SyntaxError: invalid syntax
root@Joshek:~/Arc# ```
you forgot :
AHAHAHAHAHAHAH
Need :
I'm actually an idiot.
Jajajaja
How do I forget this stuff.
it happens
Now to test it.
Okay, try and if you have any other fault, let us know.
t.py", line 289, in _resolve_destination
raise InvalidArgument(fmt.format(destination))
discord.errors.InvalidArgument: Destination must be Channel,
PrivateChannel, User, or Object. Received NoneType ```
Send the complete error.
do send_message(channel, msg)
Dude read the error before you send
If you read the exception you'll understand what the problem is
Apparently the channel or Destination is None
await bot.send_message(channel, embed=embed)
You will need to define the channel though
are you using rewrite or async
async
hold up
Try sending it to the users through dm. There is no default channel to send too.
channel is TextChannel or MessageChannel depends on the ctx
await send_message(user, embed=embed)?
yeah
Yeah. I clearly need to learn more.
@gilded thunder yeah you do
join the d.py support server mate
you're already in dapi
you should use #381889733053251584
How to make my bot online ?
wdym?
run the code
One message removed from a suspended account.
@hardy moon u code it
How did you check if a specific person has a permission
What lib
d.js
thx
if you want for a user you can do message.guild.members().hasPermission()
anyone, for discord.js, how would i make my bot assign a role to a person and remove all their other roles when i type in a command?
i figuered out how to do kick and ban but not assign roles
for example here is my kick command that i want to turn into the command description provided above
const { Command } = require('discord-akairo');
class KickCommand extends Command {
constructor() {
super('kick', {
aliases: ['kick'],
args: [
{
id: 'member',
type: 'member'
}
],
clientPermissions: ['KICK_MEMBERS'],
userPermissions: ['KICK_MEMBERS'],
channelRestriction: 'guild'
});
}
exec(message, args) {
if (!args.member) {
return message.channel.send('**MEMBER NOT FOUND**');
}
return args.member.kick().then(() => {
return message.channel.send(`**${args.member} was kicked!**`);
}).catch(error => {
message.channel.send(`\`I couldn't kick that person because I do not have enough permissions to kick them!\``);
});
}
}
module.exports = KickCommand;
if anyone can help me with this just ping me
put it in a code block kthx
without ``````
ok let me change that
#development isn't the channel for this @unreal thistle
yea nb
const { Command } = require('discord-akairo');
class KickCommand extends Command {
constructor() {
super('kick', {
aliases: ['kick'],
args: [
{
id: 'member',
type: 'member'
}
],
clientPermissions: ['KICK_MEMBERS'],
userPermissions: ['KICK_MEMBERS'],
channelRestriction: 'guild'
});
}
exec(message, args) {
if (!args.member) {
return message.channel.send("**MEMBER NOT FOUND**");
}
return args.member.kick().then(() => {
return message.channel.send("**${args.member} was kicked!**");
}).catch(error => {
message.channel.send("`I couldn't kick that person because I do not have enough permissions to kick them!`");
});
}
}
module.exports = KickCommand;
angery
basically i want to turn this kick command into a command that assigns a role to a person while removing all their other roles
why are you using the kick command as a boilerplate for a role command 
i dont know to to formulate a role command so i'm forming it off of a kick command
you'd rather make one from scratch
make a bpt
I just joined
by making a bot
Ok
don't clone one
ok what is the programming language you are "studing" in
@drowsy silo i had a friend help me code @light lava
@drowsy silo
yes
my bot does have a clear chat command
what's your bot @trim plinth
Chihiro
What's the name?
@drowsy silo Chihiro
@neon crater
thx
what command
purge command
!purge?
thats what his bot does
Oh
it has to be under 100
any way
@trim plinth can you help me make a command that assigns a role to a person while removing all their other roles
sorry, I can't really help you out there
ok
Lol why
Thank you the best bot
Other bots can do that
so you know how this "return args.member.kick "kicks a person
What
chihiro is not the best bot lmao
mine's @light lava
boyobot cant mass delete messages
so you know how this "return args.member.kick "kicks a person? what do i replace the "kick" with to assign a role
anyone know
hold on
Docs 
const { Command } = require('discord-akairo');
class KickCommand extends Command {
constructor() {
super('kick', {
aliases: ['kick'],
args: [
{
id: 'member',
type: 'member'
}
],
clientPermissions: ['KICK_MEMBERS'],
userPermissions: ['KICK_MEMBERS'],
channelRestriction: 'guild'
});
}
exec(message, args) {
if (!args.member) {
return message.channel.send("**MEMBER NOT FOUND**");
}
return args.member.kick().then(() => {
return message.channel.send("**${args.member} was kicked!**");
}).catch(error => {
message.channel.send("`I couldn't kick that person because I do not have enough permissions to kick them!`");
});
}
}
module.exports = KickCommand;
@frail harness this whole code kicks a person
@ripe blade Please help me what programation Sis i use Lua script or Java?
What
nm
π
Oh JS
wait you know js?

