How to code a DISCORD BOT - BAN COMMAND - Discord.js v14 2022

How to code a DISCORD BOT - BAN COMMAND - Discord.js v14 2022

MrJAwesome

1 год назад

10,636 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

DekayPlay
DekayPlay - 10.07.2023 22:43

it says that argument.slice(...).join is not a function

Ответить
fbFanatic
fbFanatic - 28.06.2023 19:02

it's saying that the longest line of code (the first line) is undefined and the command doesn't work. I am using slash commands though so I don't know if that makes a difference, but I previously had a register-commands.js file which was where I could figure out if my commands were proper or not. I registered the commands and the slash command popped up in the command section for my bot with all of the other commands. it showed up as a slash command but when I typed it, it said "Application did not respond" and the app crashed. It said that the code I previously talked about was undefined. Any help?

Ответить
financyTM
financyTM - 15.04.2023 05:42

can someone give me the source code

Ответить
Anas Ansari
Anas Ansari - 13.04.2023 21:49

only admin can ban user?

Ответить
Humble Akh
Humble Akh - 10.04.2023 01:34

if (!message.member.permissions.has(PermissionBitField.Flags.BanMembers)) return message.channel.send("You don't have permission to ban members!");
^

TypeError: Cannot read properties of undefined (reading 'Flags')


what to do?

Ответить
The Prussian Aviator
The Prussian Aviator - 02.01.2023 06:24

does not send the dm message to the banned user, even when their dms are on it says in console that their dms are off

Ответить
AgentRedactedVR
AgentRedactedVR - 28.12.2022 15:40

Oml
Episode two of a dyslexic doing this:
MY LORD THANK YOU SO MUCH, i didn't realize how simple it was to learn it, you're a legend hope you know that!

Ответить
Kingsiem
Kingsiem - 12.12.2022 22:48

W love it

Ответить
Mr. Philly
Mr. Philly - 13.11.2022 02:38

Can you make a video for ban and kicks but for the slash commands please? Also this video helped a lot for the bots with prefix but I was just wondering if we could make it with slash.

Ответить
Catlover326
Catlover326 - 12.11.2022 22:14

amazing it worked for me if (it doesnt work make sure to save btw)

Ответить
Dogo
Dogo - 12.11.2022 21:40

after writing the ban command the bot sends 2 messages for every time I write my ban command.

Ответить
peeq 9
peeq 9 - 31.10.2022 01:38

good vid, but i need the unban command xD

Ответить
TIMEWARP
TIMEWARP - 25.10.2022 02:12

Now my test command makes the bot message send twice after adding the ban command

Ответить
rain
rain - 20.10.2022 17:13

W

Ответить
Camziku
Camziku - 16.10.2022 23:35

good video! code definately works!

Ответить
Camziku
Camziku - 16.10.2022 23:35

when will the unban command video come out?

Ответить
MAD_CRAZY
MAD_CRAZY - 08.10.2022 18:21

make unban command now xd
cuz the guy who get banned will never get unbanned

Ответить
Sushi
Sushi - 08.10.2022 05:40

it doesn't work its giving me error

Ответить