From 756d079214aedcbc60abd21df57e4f05faae6362 Mon Sep 17 00:00:00 2001 From: DevSpen <69215413+DevSpen@users.noreply.github.com> Date: Sat, 1 May 2021 14:03:22 -0400 Subject: [PATCH] Create ban.md --- functions/ban.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 functions/ban.md diff --git a/functions/ban.md b/functions/ban.md new file mode 100644 index 0000000..1f17317 --- /dev/null +++ b/functions/ban.md @@ -0,0 +1,23 @@ +# $ban +Bans a user from a guild. + +## Usage +```$ban[guildID;userID;reason;days]``` + +### Breakdown +`guildID` - The server that the user gets banned from. Use `$guildID` for the current server. + +`userID` - The user who is being banned. + +`reason` - The reason why the user is getting banned. (for audit log) + +`days` - Messages to delete that are newer to these days. Put `0` for none. + +## Example +``` +bot.command({ + type: "command", + name: "ban", + code: `$ban[$guildID;$mentioned[1];$replaceText[$message;$message[1];;1];0]` +}) +```