Class MessageType
java.lang.Object
net.essentialsx.api.v2.services.discord.MessageType
Indicates the type of message being sent and its literal channel name used in the config.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
DefaultMessageTypes
provided and documented by EssentialsX Discord. -
Constructor Summary
ConstructorDescriptionMessageType
(String key) Creates aMessageType
which will send channels to the specified channel key. -
Method Summary
-
Constructor Details
-
MessageType
Creates aMessageType
which will send channels to the specified channel key.The message type key may only contain: lowercase letters, numbers, and dashes.
- Parameters:
key
- The channel key defined in themessage-types
section of the config.
-
-
Method Details
-
getKey
Gets the key used inmessage-types
section of the config.- Returns:
- The config key.
-
isPlayer
public boolean isPlayer()Checks if this message type should be beholden to player-specific config settings.- Returns:
- true if message type should be beholden to player-specific config settings.
-
toString
-