Class RichPresenceBuilder
java.lang.Object
com.hypherionmc.simplerpc.api.rpc.RichPresenceBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondev.firstdark.rpc.models.DiscordRichPresenceUsed internally to build the RPC for the Discord SDKsetButtons(List<ButtonWrapper> buttons) Add buttons to the RPC UseButtonWrapperto construct the buttonssetDetails(String details) The details value to be used on the RPCsetLargeImage(String largeImage) The Large Image URL or key to be used on the RPCsetLargeImageText(String largeImageText) The Large Image Text that will be displayed on hoversetSmallImage(String smallImage) The Small Image URL or key to be used on the RPCsetSmallImageText(String smallImageText) The Small Image Text that will be displayed on hoverThe state value to be used on the RPCsetTimeStamp(OffsetDateTime offsetDateTime) Override the timestamp displayed on the RPCsetType(dev.firstdark.rpc.enums.ActivityType type) What type of activity is this RPC.
-
Field Details
-
offsetDateTime
-
rpcTime
-
-
Constructor Details
-
RichPresenceBuilder
public RichPresenceBuilder()
-
-
Method Details
-
setState
The state value to be used on the RPC- Parameters:
state- The new text to use for the RPC- Returns:
- Updated instance of
DiscordRichPresence.DiscordRichPresenceBuilder
-
setDetails
The details value to be used on the RPC- Parameters:
details- The new text to use for the RPC- Returns:
- Updated instance of
DiscordRichPresence.DiscordRichPresenceBuilder
-
setLargeImage
The Large Image URL or key to be used on the RPC- Parameters:
largeImage- URL or key to be used- Returns:
- Updated instance of
DiscordRichPresence.DiscordRichPresenceBuilder
-
setLargeImageText
The Large Image Text that will be displayed on hover- Parameters:
largeImageText- The new text to use for the RPC- Returns:
- Updated instance of
DiscordRichPresence.DiscordRichPresenceBuilder
-
setSmallImage
The Small Image URL or key to be used on the RPC- Parameters:
smallImage- URL or key to be used- Returns:
- Updated instance of
DiscordRichPresence.DiscordRichPresenceBuilder
-
setSmallImageText
The Small Image Text that will be displayed on hover- Parameters:
smallImageText- The new text to use for the RPC- Returns:
- Updated instance of
DiscordRichPresence.DiscordRichPresenceBuilder
-
setTimeStamp
Override the timestamp displayed on the RPC- Parameters:
offsetDateTime- The newOffsetDateTimeto use for the RPC- Returns:
- Updated instance of
DiscordRichPresence.DiscordRichPresenceBuilder
-
setButtons
Add buttons to the RPC UseButtonWrapperto construct the buttons- Parameters:
buttons- New list of buttons to use- Returns:
- Updated instance of
DiscordRichPresence.DiscordRichPresenceBuilder
-
setType
What type of activity is this RPC. Defaults toActivityType.PLAYING- Parameters:
type- The newActivityTypeto use for the RPC- Returns:
- Updated instance of
DiscordRichPresence.DiscordRichPresenceBuilder
-
getPresence
@Internal public dev.firstdark.rpc.models.DiscordRichPresence getPresence()Used internally to build the RPC for the Discord SDK- Returns:
- The fully constructed
DiscordRichPresenceready for the API
-