Enum WebhookType

    • Enum Constant Detail

      • INCOMING

        public static final WebhookType INCOMING
        Incoming webhooks can post messages to channels with a generated token. It extents Messageable.
      • CHANNEL_FOLLOWER

        public static final WebhookType CHANNEL_FOLLOWER
        Channel follower webhooks are internal webhooks used with Channel Following to post new messages into channels.
    • Method Detail

      • values

        public static WebhookType[] values​()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (WebhookType c : WebhookType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static WebhookType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • getValue

        public int getValue​()
        Gets integer value that represents this type.
        Returns:
        The integer value that represents this type.
      • fromValue

        public static WebhookType fromValue​(int value)
        Gets an WebhookType by its value.
        Parameters:
        value - The value of the webhook type.
        Returns:
        The webhooktype for the given value, or UNKNOWN if there's none with the given value.