discord4j.discordjson.json.WebhookData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of discord-json Show documentation
Show all versions of discord-json Show documentation
Discord entity domain as immutable Jackson objects
package discord4j.discordjson.json;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import discord4j.discordjson.Id;
import discord4j.discordjson.possible.Possible;
import org.immutables.value.Value;
import java.util.Optional;
@Value.Immutable
@JsonSerialize(as = ImmutableWebhookData.class)
@JsonDeserialize(as = ImmutableWebhookData.class)
public interface WebhookData {
static ImmutableWebhookData.Builder builder() {
return ImmutableWebhookData.builder();
}
Id id();
int type();
@JsonProperty("guild_id")
Possible> guildId();
@JsonProperty("channel_id")
Optional channelId();
Possible user();
Optional name();
Optional avatar();
Possible token();
@JsonProperty("application_id")
Optional applicationId();
@JsonProperty("source_guild")
Possible sourceGuild();
@JsonProperty("source_channel")
Possible sourceChannel();
}