add Discord4J Wrapper #14

Merged
tueem merged 13 commits from wrapper/d4j into dev 2025-02-19 12:43:38 +00:00
Showing only changes of commit caeaec1926 - Show all commits

View File

@ -23,4 +23,13 @@ public enum SlashCommandOptionType {
public int getValue() { public int getValue() {
return value; return value;
} }
public static SlashCommandOptionType fromValue(int value) {
for (SlashCommandOptionType type : values()) {
if (type.getValue() == value) {
return type;
}
}
return UNKNOWN;
}
} }