Class UserSnowflakeImpl

java.lang.Object
net.dv8tion.jda.internal.entities.UserSnowflakeImpl
All Implemented Interfaces:
Formattable, IMentionable, ISnowflake, UserSnowflake
Direct Known Subclasses:
UserImpl

public class UserSnowflakeImpl extends Object implements UserSnowflake
  • Constructor Details

    • UserSnowflakeImpl

      public UserSnowflakeImpl(long id)
  • Method Details

    • getIdLong

      public long getIdLong()
      Description copied from interface: ISnowflake
      The Snowflake id of this entity. This is unique to every entity and will never change.
      Specified by:
      getIdLong in interface ISnowflake
      Returns:
      Long containing the Id.
    • getAsMention

      @Nonnull public String getAsMention()
      Description copied from interface: IMentionable
      Retrieve a Mention for this Entity. For the public Role (@everyone), this will return the literal string "@everyone".
      Specified by:
      getAsMention in interface IMentionable
      Returns:
      A resolvable mention.
    • getDefaultAvatarId

      @Nonnull public String getDefaultAvatarId()
      Description copied from interface: UserSnowflake
      The Discord ID for this user's default avatar image.
      Specified by:
      getDefaultAvatarId in interface UserSnowflake
      Returns:
      Never-null String containing the user's default avatar id.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object