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
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhen a message is forwarded to the channelWhen a message in the channel is pinnedWhen a poll is created in the channelWhen a poll in the channel endsWhen a bot command is used in the channelWhen a user creates a thread in the channelWhen a user app is used in the channelWhen a user boosts the server (only works if the watched channel is also the system messages channel)When a user joins the server (only works if the watched channel is also the system messages channel)When a user sends a message to the channel -
Method Summary
Modifier and TypeMethodDescriptionstatic Settings.DiscordEvents
Returns the enum constant of this class with the specified name.static Settings.DiscordEvents[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
USER_MESSAGE
When a user sends a message to the channel -
USER_JOIN
When a user joins the server (only works if the watched channel is also the system messages channel) -
USER_BOOST
When a user boosts the server (only works if the watched channel is also the system messages channel) -
THREAD_CREATION
When a user creates a thread in the channel -
MESSAGE_PIN
When a message in the channel is pinned -
POLL_CREATION
When a poll is created in the channel -
POLL_ENDED
When a poll in the channel ends -
SLASH_COMMAND
When a bot command is used in the channel -
USER_APP
When a user app is used in the channelActivities are also considered user apps.
-
FORWARDED_MESSAGE
When a message is forwarded to the channel
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-