public class UserImpl extends java.lang.Object implements User
Constructor and Description |
---|
UserImpl(java.lang.String id,
JDAImpl api) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAvatarId()
The Discord Id for this user's avatar image.
|
java.lang.String |
getAvatarUrl()
The URL for the for the user's avatar image.
|
java.lang.String |
getCurrentGame()
The name of the game that the user is currently playing.
|
java.lang.String |
getDiscriminator()
The descriminator of the
User . |
java.lang.String |
getId()
The Discord ID of the
User . |
JDA |
getJDA()
Returns the
JDA instance of this User |
OnlineStatus |
getOnlineStatus()
|
PrivateChannel |
getPrivateChannel()
Gets the
PrivateChannel of this
User for use in sending direct messages. |
java.lang.String |
getUsername()
The username of the
User . |
int |
hashCode() |
boolean |
hasPrivateChannel() |
UserImpl |
setAvatarId(java.lang.String avatarId) |
UserImpl |
setCurrentGame(java.lang.String name) |
UserImpl |
setDiscriminator(java.lang.String discriminator) |
UserImpl |
setOnlineStatus(OnlineStatus onlineStatus) |
UserImpl |
setPrivateChannel(PrivateChannel channel) |
UserImpl |
setUserName(java.lang.String username) |
java.lang.String |
toString() |
public UserImpl(java.lang.String id, JDAImpl api)
public JDA getJDA()
User
JDA
instance of this Userpublic java.lang.String getId()
User
User
. This is typically 18 characters long.public java.lang.String getUsername()
User
User
. Length is between 2 and 32 characters (inclusive).getUsername
in interface User
User
username.public java.lang.String getDiscriminator()
User
User
. Used to differentiate between users with the same usernames.getDiscriminator
in interface User
User
discriminator.public java.lang.String getAvatarId()
User
getAvatarId
in interface User
User
avatar id.public java.lang.String getAvatarUrl()
User
getAvatarUrl
in interface User
User
avatar url.public java.lang.String getCurrentGame()
User
getCurrentGame
in interface User
User
is currently playing.public OnlineStatus getOnlineStatus()
User
getOnlineStatus
in interface User
OnlineStatus
of the User
.public PrivateChannel getPrivateChannel()
User
PrivateChannel
of this
User
for use in sending direct messages.getPrivateChannel
in interface User
PrivateChannel
that is associated with this User
.public UserImpl setUserName(java.lang.String username)
public UserImpl setDiscriminator(java.lang.String discriminator)
public UserImpl setAvatarId(java.lang.String avatarId)
public UserImpl setCurrentGame(java.lang.String name)
public UserImpl setOnlineStatus(OnlineStatus onlineStatus)
public UserImpl setPrivateChannel(PrivateChannel channel)
public boolean hasPrivateChannel()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object