toBuilder
toBuilder: (DiscordPresence) -> DiscordPresenceBuilderA builder holding this presence's fields.
DiscordPresence.builder():build()| Method | Returns | Description |
|---|---|---|
toBuilder() | DiscordPresenceBuilder | A builder holding this presence's fields. |
equals(any) | boolean | Whether o is a presence with equal fields. |
getState() | string? | The state line. |
getDetails() | string? | The details line. |
getStartTimestamp() | Instant? | When the activity started. |
getEndTimestamp() | Instant? | When the activity ends. |
getLargeImageKey() | string? | The large image's asset key. |
getLargeImageText() | string? | The large image's hover text. |
getSmallImageKey() | string? | The small image's asset key. |
getSmallImageText() | string? | The small image's hover text. |
getPartyId() | string? | The party id. |
getPartySize() | number | The party's size. |
getPartyMax() | number | The party's largest size. |
getMatchSecret() | string? | The match secret. |
getJoinSecret() | string? | The join secret. |
getSpectateSecret() | string? | The spectate secret. |
isInstance() | boolean | Whether it is an instance. |
builder() | DiscordPresenceBuilder | A builder with every field unset. |
| Method | Returns | Description |
|---|---|---|
DiscordPresenceBuilder.build | DiscordPresence | The presence. |
toBuildertoBuilder: (DiscordPresence) -> DiscordPresenceBuilderA builder holding this presence's fields.
equalsequals: (DiscordPresence, any) -> booleanWhether o is a presence with equal fields.
getStategetState: (DiscordPresence) -> string?The state line.
getDetailsgetDetails: (DiscordPresence) -> string?The details line.
getStartTimestampgetStartTimestamp: (DiscordPresence) -> Instant?When the activity started.
getEndTimestampgetEndTimestamp: (DiscordPresence) -> Instant?When the activity ends.
getLargeImageKeygetLargeImageKey: (DiscordPresence) -> string?The large image's asset key.
getLargeImageTextgetLargeImageText: (DiscordPresence) -> string?The large image's hover text.
getSmallImageKeygetSmallImageKey: (DiscordPresence) -> string?The small image's asset key.
getSmallImageTextgetSmallImageText: (DiscordPresence) -> string?The small image's hover text.
getPartyIdgetPartyId: (DiscordPresence) -> string?The party id.
getPartySizegetPartySize: (DiscordPresence) -> numberThe party's size.
getPartyMaxgetPartyMax: (DiscordPresence) -> numberThe party's largest size.
getMatchSecretgetMatchSecret: (DiscordPresence) -> string?The match secret.
getJoinSecretgetJoinSecret: (DiscordPresence) -> string?The join secret.
getSpectateSecretgetSpectateSecret: (DiscordPresence) -> string?The spectate secret.
isInstanceisInstance: (DiscordPresence) -> booleanWhether it is an instance.
builderbuilder: () -> DiscordPresenceBuilderA builder with every field unset.