Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
Create ban.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DevSpen authored May 1, 2021
1 parent 54262fa commit 756d079
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions functions/ban.md
Original file line number Diff line number Diff line change
@@ -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]`
})
```

0 comments on commit 756d079

Please sign in to comment.