Class MessageEmbed.AuthorInfo

  • Enclosing class:
    MessageEmbed

    public static class MessageEmbed.AuthorInfo
    extends java.lang.Object
    Class that represents the author of content, possibly including an icon that Discord proxies.
    • Constructor Summary

      Constructors 
      Constructor Description
      AuthorInfo​(java.lang.String name, java.lang.String url, java.lang.String iconUrl, java.lang.String proxyIconUrl)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getIconUrl()
      The url of the author's icon.
      java.lang.String getName()
      The name of the Author.
      java.lang.String getProxyIconUrl()
      The url of the author's icon, proxied by Discord
      This url is used to access the image through Discord instead of directly to prevent ip scraping.
      java.lang.String getUrl()
      The url of the author.
      • Methods inherited from class java.lang.Object

        getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AuthorInfo

        public AuthorInfo​(java.lang.String name,
                          java.lang.String url,
                          java.lang.String iconUrl,
                          java.lang.String proxyIconUrl)
    • Method Detail

      • getName

        @Nullable
        public java.lang.String getName()
        The name of the Author.
        This is most likely the name of the account associated with the embed
        Returns:
        Possibly-null String containing the name of the author.
      • getUrl

        @Nullable
        public java.lang.String getUrl()
        The url of the author.
        Returns:
        Possibly-null String containing the url of the author.
      • getIconUrl

        @Nullable
        public java.lang.String getIconUrl()
        The url of the author's icon.
        Returns:
        Possibly-null String containing the author's icon url.
      • getProxyIconUrl

        @Nullable
        public java.lang.String getProxyIconUrl()
        The url of the author's icon, proxied by Discord
        This url is used to access the image through Discord instead of directly to prevent ip scraping.
        Returns:
        Possibly-null String containing the proxied icon url.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object