Skip to content

Commit 426d74f

Browse files
committed
feat: add widgets
1 parent 9c7409d commit 426d74f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package org.discordbots.api.client.entity;
2+
3+
public final class Widget {
4+
private final static String BASE_URL = "https://top.gg/api/v1";
5+
6+
public static String large(String id) {
7+
return BASE_URL + "/widgets/large/" + id;
8+
}
9+
}

src/main/java/org/discordbots/api/client/impl/DiscordBotListAPIImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public class DiscordBotListAPIImpl implements DiscordBotListAPI {
4747
.scheme("https")
4848
.host("top.gg")
4949
.addPathSegment("api")
50+
.addPathSegment("v1")
5051
.build();
5152

5253
private final OkHttpClient httpClient;

0 commit comments

Comments
 (0)