Skip to content

Commit

Permalink
chore: dont force username for discord webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Jul 16, 2024
1 parent 859bb9e commit b3cb195
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
import java.util.List;

public record DiscordWebhook(
String username,
@JsonProperty("avatar_url") String avatarUrl,
@JsonRawValue String embeds,
@JsonProperty("allowed_mentions") AllowedMentions allowedMentions
) {

public DiscordWebhook(final String embeds) {
this("HangarBot", "https://hangar.papermc.dev/hangar-logo.png", embeds, new AllowedMentions());
this("https://hangar.papermc.io/hangar-logo.png", embeds, new AllowedMentions());
}

record AllowedMentions(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class WebhookTable extends Table {
private String url;
private String secret;
private boolean active;
// TODO rename type to template and link it to a template table
private String type;
private String[] events;
private String scope;
Expand Down

0 comments on commit b3cb195

Please sign in to comment.