-
Notifications
You must be signed in to change notification settings - Fork 0
Externals
Marc Andre Herpers edited this page Oct 14, 2025
·
1 revision
// You can create a Embed with
Embed embed = new Embed();
embed.setTitle("Test embed");
embed.setDescription("This is a Test embed.");
embed.setColor(DiscordWebhook.Utils.Colors.SUCCESS);
embed.setTimestampNow();
embed.addField("Test", "test");
embed.setThumbnail("<asseturl>");
embed.setImage("<asseturl>");
// And create a client like this
DiscordWebhook client = new DiscordWebhook.Builder("<yoururl>")
.setUsername("SWCodes Bot")
.setAvatarUrl("https://example.com/avatar.png")
.setContent("SWCodes application has started!")
.addEmbed(embed)
.setTts(false).build();
client.send();
//Set url and generate in public
SitemapGenerator generator = new SitemapGenerator("http://localhost:7000", "public/");
generator.addUrl("/page1"); // priority will be set auto
generator.write();