Class DiscordPresence.DiscordPresenceBuilder

  • Enclosing class:
    DiscordPresence

    public static class DiscordPresence.DiscordPresenceBuilder
    extends java.lang.Object
    • Method Detail

      • state

        public DiscordPresence.DiscordPresenceBuilder state​(java.lang.String state)
        The user's current party status. Example: "Looking to Play", "Playing Solo", "In a Group" Maximum: 128 characters
        Returns:
        this.
      • details

        public DiscordPresence.DiscordPresenceBuilder details​(java.lang.String details)
        What the player is currently doing. Example: "Competitive - Captain's Mode", "In Queue", "Unranked PvP" Maximum: 128 characters
        Returns:
        this.
      • largeImageKey

        public DiscordPresence.DiscordPresenceBuilder largeImageKey​(java.lang.String largeImageKey)
        Name of the uploaded image for the large profile artwork. Example: "default" Maximum: 32 characters
        Returns:
        this.
      • largeImageText

        public DiscordPresence.DiscordPresenceBuilder largeImageText​(java.lang.String largeImageText)
        Tooltip for the largeImageKey. Example: "Blade's Edge Arena", "Numbani", "Danger Zone" Maximum: 128 characters
        Returns:
        this.
      • smallImageKey

        public DiscordPresence.DiscordPresenceBuilder smallImageKey​(java.lang.String smallImageKey)
        Name of the uploaded image for the small profile artwork. Example: "rogue" Maximum: 32 characters
        Returns:
        this.
      • smallImageText

        public DiscordPresence.DiscordPresenceBuilder smallImageText​(java.lang.String smallImageText)
        Tooltip for the smallImageKey. Example: "Rogue - Level 100" Maximum: 128 characters
        Returns:
        this.
      • partyId

        public DiscordPresence.DiscordPresenceBuilder partyId​(java.lang.String partyId)
        ID of the player's party, lobby, or group. Example: "ae488379-351d-4a4f-ad32-2b9b01c91657" Maximum: 128 characters
        Returns:
        this.
      • matchSecret

        public DiscordPresence.DiscordPresenceBuilder matchSecret​(java.lang.String matchSecret)
        Unique hashed string for Spectate and Join. Required to enable match interactive buttons in the user's presence. Example: "MmhuZToxMjMxMjM6cWl3amR3MWlqZA==" Maximum: 128 characters
        Returns:
        this.
      • joinSecret

        public DiscordPresence.DiscordPresenceBuilder joinSecret​(java.lang.String joinSecret)
        Unique hashed string for Spectate button. This will enable the "Spectate" button on the user's presence if whitelisted. Example: "MTIzNDV8MTIzNDV8MTMyNDU0" Maximum: 128 characters
        Returns:
        this.
      • spectateSecret

        public DiscordPresence.DiscordPresenceBuilder spectateSecret​(java.lang.String spectateSecret)
        Unique hashed string for chat invitations and Ask to Join. This will enable the "Ask to Join" button on the user's presence if whitelisted. Example: "MTI4NzM0OjFpMmhuZToxMjMxMjM=" Maximum: 128 characters
        Returns:
        this.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object