Androz2091/scratch-for-discord

Do you want to work on this issue?

You can request for a bounty in order to promote it!

how to i ban someone? #426

notanohh posted onGitHub

i dont know how to make it so i can ban someone. help?


Just think bro ima give the basic logic.

First u need something to check if the message the user sent start's with the prefix u want, then u have to check if the message content has the command(in this case "ban") in it, and check if the message content also includes the username of the person u want to ban.

If this 3 things are true u grab the username of the person u want to ban(it's on the command) and ban them.

Pretty simple.

posted by ZEdasmoscas over 3 years ago

maybe give an example, because this is why I have come up with your logic image

posted by hopiskyc over 3 years ago

maybe give an example, because this is why I have come up with your logic image

Sorry for late reply, this should work but please try to understand the code before using it :)

Screenshot_20210822_131218.jpg

posted by ZEdasmoscas over 3 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests