Package net.dv8tion.jda.api.entities
Class MessageEmbed.Provider
- java.lang.Object
-
- net.dv8tion.jda.api.entities.MessageEmbed.Provider
-
- Enclosing class:
- MessageEmbed
public static class MessageEmbed.Provider extends java.lang.Object
Multipurpose class that represents a provider of content, whether directly through creation or indirectly through hosting.
-
-
Constructor Summary
Constructors Constructor Description Provider(java.lang.String name, java.lang.String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getName()
The name of the provider.java.lang.String
getUrl()
The url of the provider.
-
-
-
Method Detail
-
getName
@Nullable public java.lang.String getName()
The name of the provider.
If this is an author, most likely the author's username.
If this is a website, most likely the site's name.- Returns:
- Possibly-null String containing the name of the provider.
-
getUrl
@Nullable public java.lang.String getUrl()
The url of the provider.- Returns:
- Possibly-null String containing the url of the provider.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-