feat: misc pk;log channel changes

- show currently set log channel if no arguments are present
- throw error if someone tries to set the log channel to an invalid channel type
- throw error if bot is missing permissions to log in the new channel
This commit is contained in:
spiral
2021-10-29 13:28:27 -04:00
parent 13fa78987c
commit be5bf0cfb7
2 changed files with 24 additions and 4 deletions

View File

@@ -112,6 +112,7 @@ Some arguments indicate the use of specific Discord features. These include:
## Server owner commands
*(all commands here require Manage Server permission)*
- `pk;log channel` - Shows the currently set log channel
- `pk;log channel <channel>` - Sets the given channel to log all proxied messages.
- `pk;log channel -clear` - Clears the currently set log channel.
- `pk;log disable <#channel> [#channel...]` - Disables logging messages posted in the given channel(s) (useful for staff channels and such).