#Slash command clear in discord.js v14
1 messages · Page 1 of 1 (latest)
uh u mean bulkDelete?
TextBasedChannel#bulkDelete()
Bulk deletes given messages that are newer than two weeks.
I mean the command that clear the chats

.
ah ok
but how can create it?
@silent depot how can I create the command?
Just go to the discordjs guide website or just google it or youtube
I don't have found any tutorial in this version for the command
look for v13?
and you cant find a specific command's help
??
I have only the new version
v14
just learn nodejs and learn discordjs docs
its relatively straightforward: on command interaction run bulkDelete on the channel with the amount specified in the command
and go make your own
yes but I don't say how to create the command
for admins
so you don't know how to make a slash command?
yes, I know how to make slash commands
ok so you want to like set up permissions for the command?
yes
@paper gulch
ok so you'll probably want this then https://discord.js.org/#/docs/discord.js/main/class/ApplicationCommand?scrollTo=setDefaultMemberPermissions
ok thanks
yep yep
@paper gulch it's correct?
setDefaultMemberPermissions is part of the SlashCommandBuilder so it needs to be with where you created the command
