Skip to content

Commit

Permalink
project: Merge upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Owain94 committed Mar 10, 2020
1 parent 84f204c commit d672d82
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion discord/discord.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import ProjectVersions.rlVersion
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

version = "0.0.5"
version = "0.0.6"

project.extra["PluginName"] = "Discord"
project.extra["PluginDescription"] = "Show your status and activity in the Discord user panel"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import com.google.common.collect.ImmutableMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Nullable;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;
Expand Down Expand Up @@ -286,15 +287,26 @@ enum DiscordGameEventType
FROM_VARBITS = fromVarbitsBuilder.build();
}

@Nullable
private String imageKey;

@Nullable
private String state;

@Nullable
private String details;

private int priority;
private boolean shouldClear;
private boolean shouldTimeout;

@Nullable
private DiscordAreaType discordAreaType;

@Nullable
private Varbits varbits;

@Nullable
private int[] regionIds;

DiscordGameEventType(Skill skill)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ void checkForTimeout()

events.removeIf(event -> event.getType().isShouldTimeout() && now.isAfter(event.getUpdated().plus(actionTimeout)));

if (eventWithTime.getType().getState().equals(DiscordGameEventType.IN_MENU.getState()) && now.isAfter(eventWithTime.getStart().plus(actionTimeout)))
assert DiscordGameEventType.IN_MENU.getState() != null;
if (DiscordGameEventType.IN_MENU.getState().equals(eventWithTime.getType().getState()) && now.isAfter(eventWithTime.getStart().plus(actionTimeout)))
{
final DiscordPresence presence = lastPresence
.toBuilder()
Expand Down

0 comments on commit d672d82

Please sign in to comment.