Skip to content

Instantly share code, notes, and snippets.

View itIsMaku's full-sized avatar
🗺️

Adam Volkman (maku) itIsMaku

🗺️
View GitHub Profile
@itIsMaku
itIsMaku / DiscordWebhook.java
Last active July 1, 2024 10:27 — forked from k3kdude/DiscordWebhook.java
Java DiscordWebhook class to easily execute Discord Webhooks - Lombok and Code Cleanup
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import javax.net.ssl.HttpsURLConnection;
import java.awt.*;
import java.io.IOException;
import java.io.OutputStream;
import java.lang.reflect.Array;
local prefixes = {
['error'] = '^1[error] ^0',
['warn'] = '^3[warn] | ^0',
['info'] = '^2[info] | ^0',
['debug'] = '^5[debug] | ^0',
['verbose'] = '^6[verbose] | ^0'
}
log = {}