Skip to content

Commit

Permalink
fixed method name
Browse files Browse the repository at this point in the history
  • Loading branch information
Taz03 committed Apr 9, 2024
1 parent 1e65c43 commit ce3194f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Empty file modified gradlew
100644 → 100755
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public DiscordRequestBuilder putHeaders(Map<String, Object> headers) {
return this;
}

public DiscordRequestBuilder url(String path) {
public DiscordRequestBuilder path(String path) {
this.path = path;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public record ChannelCreateInviteRequest(long channelId, int maxAge, int maxUses
public DiscordRequestBuilder create() {
return new DiscordRequestBuilder()
.post()
.url("/channels/%s/invites".formatted(channelId))
.path("/channels/%s/invites".formatted(channelId))
.body(
Map.of(
"max_age", maxAge,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public record CreateMessageRequest(long channelId, String content) implements Di
@Override
public DiscordRequestBuilder create() {
return new DiscordRequestBuilder()
.url("/channels/%s/messages".formatted(channelId))
.path("/channels/%s/messages".formatted(channelId))
.post()
.body(Map.of("content", content));
}
Expand Down

0 comments on commit ce3194f

Please sign in to comment.