Skip to content

Event Logging

jsh edited this page Dec 9, 2020 · 2 revisions

These commands configure event logging (such as name changes, message deletions, etc).

Command group

Group: logger
Aliases: None
Preconditions: Administrator
Required Context: Guild

Commands

Command: logger setchannel <channelType> <optional channel>
Aliases: None
Preconditions: None
Parameters: <channelType> - The event to start sending notifications for. See list of channel types in the section below; <optional channel> - The channel to receive the specified event. If not provided, uses the current channel;
Description: Configures the given channel to receive event logs of the specified event.
Expected Result: The bot now sends the specified event messages to the given channel.

Command: logger unsetchannel <channelType>
Aliases: None
Preconditions: None
Parameters: <channelType> - The event to stop sending notifications for. See list of channel types in the section below;
Description: Configures the given channel to stop receiving event logs of the specified event.
Expected Result: The bot no longer sends the specified event messages to the given channel.

Command: logger toggle
Aliases: None
Preconditions: None
Description: Enables or disables the logger
Expected Result: The bot either now responds to log events, or stops responding to them.

Channel Types

  • MessageUpdatedChannel
  • MessageDeletedChannel
  • UserBannedChannel
  • UserUnbannedChannel
  • UserJoinedChannel
  • UserLeftChannel
  • MemberUpdatesChannel
  • UserKickedChannel
  • UserMutedChannel
  • UserUnmutedChannel