Enum Class Settings.DiscordEvents

java.lang.Object
java.lang.Enum<Settings.DiscordEvents>
io.github.dexrnzacattack.rrdiscordbridge.config.Settings.DiscordEvents
All Implemented Interfaces:
Serializable, Comparable<Settings.DiscordEvents>, Constable
Enclosing class:
Settings

public static enum Settings.DiscordEvents extends Enum<Settings.DiscordEvents>
Every Discord event is a different type of message that can be sent into the in-game chat

An event can be disabled by removing it from the Settings.enabledDiscordEvents array

This is done by editing config.json

  • Enum Constant Details

    • USER_MESSAGE

      public static final Settings.DiscordEvents USER_MESSAGE
      When a user sends a message to the channel
    • USER_JOIN

      public static final Settings.DiscordEvents USER_JOIN
      When a user joins the server (only works if the watched channel is also the system messages channel)
    • USER_BOOST

      public static final Settings.DiscordEvents USER_BOOST
      When a user boosts the server (only works if the watched channel is also the system messages channel)
    • THREAD_CREATION

      public static final Settings.DiscordEvents THREAD_CREATION
      When a user creates a thread in the channel
    • MESSAGE_PIN

      public static final Settings.DiscordEvents MESSAGE_PIN
      When a message in the channel is pinned
    • POLL_CREATION

      public static final Settings.DiscordEvents POLL_CREATION
      When a poll is created in the channel
    • POLL_ENDED

      public static final Settings.DiscordEvents POLL_ENDED
      When a poll in the channel ends
    • SLASH_COMMAND

      public static final Settings.DiscordEvents SLASH_COMMAND
      When a bot command is used in the channel
    • USER_APP

      public static final Settings.DiscordEvents USER_APP
      When a user app is used in the channel

      Activities are also considered user apps.

    • FORWARDED_MESSAGE

      public static final Settings.DiscordEvents FORWARDED_MESSAGE
      When a message is forwarded to the channel
  • Method Details

    • values

      public static Settings.DiscordEvents[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Settings.DiscordEvents valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null