From 622e0fbfaa599bb4f33e6739981bc2a83c90f115 Mon Sep 17 00:00:00 2001 From: freya02 <41875020+freya022@users.noreply.github.com> Date: Sat, 11 Mar 2023 17:59:21 +0100 Subject: [PATCH] Fix return types (#2419) --- .../java/net/dv8tion/jda/internal/entities/ActivityImpl.java | 4 ++-- .../java/net/dv8tion/jda/internal/entities/EntityBuilder.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/dv8tion/jda/internal/entities/ActivityImpl.java b/src/main/java/net/dv8tion/jda/internal/entities/ActivityImpl.java index 558fb60275..8ccaca60c7 100644 --- a/src/main/java/net/dv8tion/jda/internal/entities/ActivityImpl.java +++ b/src/main/java/net/dv8tion/jda/internal/entities/ActivityImpl.java @@ -47,7 +47,7 @@ protected ActivityImpl(String name, String url, ActivityType type) this(name, url, type, null, null); } - protected ActivityImpl(String name, String url, ActivityType type, RichPresence.Timestamps timestamps, EmojiUnion emoji) + protected ActivityImpl(String name, String url, ActivityType type, Activity.Timestamps timestamps, EmojiUnion emoji) { this.name = name; this.url = url; @@ -89,7 +89,7 @@ public ActivityType getType() } @Nullable - public RichPresence.Timestamps getTimestamps() + public Activity.Timestamps getTimestamps() { return timestamps; } diff --git a/src/main/java/net/dv8tion/jda/internal/entities/EntityBuilder.java b/src/main/java/net/dv8tion/jda/internal/entities/EntityBuilder.java index 26cf597b94..b9817e966a 100644 --- a/src/main/java/net/dv8tion/jda/internal/entities/EntityBuilder.java +++ b/src/main/java/net/dv8tion/jda/internal/entities/EntityBuilder.java @@ -889,14 +889,14 @@ public static Activity createActivity(DataObject gameJson) type = Activity.ActivityType.PLAYING; } - RichPresence.Timestamps timestamps = null; + Activity.Timestamps timestamps = null; if (!gameJson.isNull("timestamps")) { DataObject obj = gameJson.getObject("timestamps"); long start, end; start = obj.getLong("start", 0L); end = obj.getLong("end", 0L); - timestamps = new RichPresence.Timestamps(start, end); + timestamps = new Activity.Timestamps(start, end); } EmojiUnion emoji = null;