Class WebhookEmbed.EmbedFooter

  • All Implemented Interfaces:
    org.json.JSONString
    Enclosing class:
    WebhookEmbed

    public static class WebhookEmbed.EmbedFooter
    extends Object
    implements org.json.JSONString
    POJO for an embed footer.
    Useful to display meta-data about context such as for a github comment a repository name/icon.
    • Method Detail

      • getText

        @NotNull
        public @NotNull String getText()
        The visible text of the footer.
        Returns:
        The text
      • getIconUrl

        @Nullable
        @JSONPropertyName("icon_url")
        public @Nullable String getIconUrl()
        The url for the icon of this footer
        Returns:
        Possibly-null icon url
      • toString

        public String toString()
        JSON representation of this footer
        Overrides:
        toString in class Object
        Returns:
        The JSON representation
      • toJSONString

        public String toJSONString()
        Specified by:
        toJSONString in interface org.json.JSONString