Skip to content

Commit

Permalink
Add support for enforceNonce
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Aug 25, 2024
1 parent a4311db commit f33f782
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
12 changes: 8 additions & 4 deletions rest/api/rest.api
Original file line number Diff line number Diff line change
Expand Up @@ -2229,10 +2229,12 @@ public final class dev/kord/rest/builder/message/create/UpdateMessageInteraction

public final class dev/kord/rest/builder/message/create/UserMessageCreateBuilder : dev/kord/rest/builder/message/create/AbstractMessageCreateBuilder, dev/kord/rest/builder/RequestBuilder {
public fun <init> ()V
public final fun getEnforceNonce ()Ljava/lang/Boolean;
public final fun getFailIfNotExists ()Ljava/lang/Boolean;
public final fun getMessageReference ()Ldev/kord/common/entity/Snowflake;
public final fun getNonce ()Ljava/lang/String;
public final fun getStickerIds ()Ljava/util/List;
public final fun setEnforceNonce (Ljava/lang/Boolean;)V
public final fun setFailIfNotExists (Ljava/lang/Boolean;)V
public final fun setMessageReference (Ldev/kord/common/entity/Snowflake;)V
public final fun setNonce (Ljava/lang/String;)V
Expand Down Expand Up @@ -4773,10 +4775,11 @@ public final class dev/kord/rest/json/request/ListThreadsByTimestampRequest {
public final class dev/kord/rest/json/request/MessageCreateRequest {
public static final field Companion Ldev/kord/rest/json/request/MessageCreateRequest$Companion;
public fun <init> ()V
public fun <init> (Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)V
public synthetic fun <init> (Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public fun <init> (Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;)V
public synthetic fun <init> (Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun component1 ()Ldev/kord/common/entity/optional/Optional;
public final fun component10 ()Ldev/kord/common/entity/optional/Optional;
public final fun component11 ()Ldev/kord/common/entity/optional/OptionalBoolean;
public final fun component2 ()Ldev/kord/common/entity/optional/Optional;
public final fun component3 ()Ldev/kord/common/entity/optional/OptionalBoolean;
public final fun component4 ()Ldev/kord/common/entity/optional/Optional;
Expand All @@ -4785,14 +4788,15 @@ public final class dev/kord/rest/json/request/MessageCreateRequest {
public final fun component7 ()Ldev/kord/common/entity/optional/Optional;
public final fun component8 ()Ldev/kord/common/entity/optional/Optional;
public final fun component9 ()Ldev/kord/common/entity/optional/Optional;
public final fun copy (Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;)Ldev/kord/rest/json/request/MessageCreateRequest;
public static synthetic fun copy$default (Ldev/kord/rest/json/request/MessageCreateRequest;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/rest/json/request/MessageCreateRequest;
public final fun copy (Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;)Ldev/kord/rest/json/request/MessageCreateRequest;
public static synthetic fun copy$default (Ldev/kord/rest/json/request/MessageCreateRequest;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/OptionalBoolean;ILjava/lang/Object;)Ldev/kord/rest/json/request/MessageCreateRequest;
public fun equals (Ljava/lang/Object;)Z
public final fun getAllowedMentions ()Ldev/kord/common/entity/optional/Optional;
public final fun getAttachments ()Ldev/kord/common/entity/optional/Optional;
public final fun getComponents ()Ldev/kord/common/entity/optional/Optional;
public final fun getContent ()Ldev/kord/common/entity/optional/Optional;
public final fun getEmbeds ()Ldev/kord/common/entity/optional/Optional;
public final fun getEnforceNonce ()Ldev/kord/common/entity/optional/OptionalBoolean;
public final fun getFlags ()Ldev/kord/common/entity/optional/Optional;
public final fun getMessageReference ()Ldev/kord/common/entity/optional/Optional;
public final fun getNonce ()Ldev/kord/common/entity/optional/Optional;
Expand Down
10 changes: 8 additions & 2 deletions rest/api/rest.klib.api
Original file line number Diff line number Diff line change
Expand Up @@ -2479,6 +2479,9 @@ final class dev.kord.rest.builder.message.create/UpdateMessageInteractionRespons
final class dev.kord.rest.builder.message.create/UserMessageCreateBuilder : dev.kord.rest.builder.message.create/AbstractMessageCreateBuilder, dev.kord.rest.builder/RequestBuilder<dev.kord.rest.json.request/MultipartMessageCreateRequest> { // dev.kord.rest.builder.message.create/UserMessageCreateBuilder|null[0]
constructor <init>() // dev.kord.rest.builder.message.create/UserMessageCreateBuilder.<init>|<init>(){}[0]

final var enforceNonce // dev.kord.rest.builder.message.create/UserMessageCreateBuilder.enforceNonce|{}enforceNonce[0]
final fun <get-enforceNonce>(): kotlin/Boolean? // dev.kord.rest.builder.message.create/UserMessageCreateBuilder.enforceNonce.<get-enforceNonce>|<get-enforceNonce>(){}[0]
final fun <set-enforceNonce>(kotlin/Boolean?) // dev.kord.rest.builder.message.create/UserMessageCreateBuilder.enforceNonce.<set-enforceNonce>|<set-enforceNonce>(kotlin.Boolean?){}[0]
final var failIfNotExists // dev.kord.rest.builder.message.create/UserMessageCreateBuilder.failIfNotExists|{}failIfNotExists[0]
final fun <get-failIfNotExists>(): kotlin/Boolean? // dev.kord.rest.builder.message.create/UserMessageCreateBuilder.failIfNotExists.<get-failIfNotExists>|<get-failIfNotExists>(){}[0]
final fun <set-failIfNotExists>(kotlin/Boolean?) // dev.kord.rest.builder.message.create/UserMessageCreateBuilder.failIfNotExists.<set-failIfNotExists>|<set-failIfNotExists>(kotlin.Boolean?){}[0]
Expand Down Expand Up @@ -5197,7 +5200,7 @@ final class dev.kord.rest.json.request/ListThreadsByTimestampRequest { // dev.ko
}

final class dev.kord.rest.json.request/MessageCreateRequest { // dev.kord.rest.json.request/MessageCreateRequest|null[0]
constructor <init>(dev.kord.common.entity.optional/Optional<kotlin/String> = ..., dev.kord.common.entity.optional/Optional<kotlin/String> = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.rest.json.request/EmbedRequest>> = ..., dev.kord.common.entity.optional/Optional<dev.kord.common.entity/AllowedMentions> = ..., dev.kord.common.entity.optional/Optional<dev.kord.common.entity/DiscordMessageReference> = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/DiscordComponent>> = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/Snowflake>> = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.rest.json.request/AttachmentRequest>> = ..., dev.kord.common.entity.optional/Optional<dev.kord.common.entity/MessageFlags> = ...) // dev.kord.rest.json.request/MessageCreateRequest.<init>|<init>(dev.kord.common.entity.optional.Optional<kotlin.String>;dev.kord.common.entity.optional.Optional<kotlin.String>;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.rest.json.request.EmbedRequest>>;dev.kord.common.entity.optional.Optional<dev.kord.common.entity.AllowedMentions>;dev.kord.common.entity.optional.Optional<dev.kord.common.entity.DiscordMessageReference>;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.common.entity.DiscordComponent>>;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.common.entity.Snowflake>>;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.rest.json.request.AttachmentRequest>>;dev.kord.common.entity.optional.Optional<dev.kord.common.entity.MessageFlags>){}[0]
constructor <init>(dev.kord.common.entity.optional/Optional<kotlin/String> = ..., dev.kord.common.entity.optional/Optional<kotlin/String> = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.rest.json.request/EmbedRequest>> = ..., dev.kord.common.entity.optional/Optional<dev.kord.common.entity/AllowedMentions> = ..., dev.kord.common.entity.optional/Optional<dev.kord.common.entity/DiscordMessageReference> = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/DiscordComponent>> = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/Snowflake>> = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.rest.json.request/AttachmentRequest>> = ..., dev.kord.common.entity.optional/Optional<dev.kord.common.entity/MessageFlags> = ..., dev.kord.common.entity.optional/OptionalBoolean = ...) // dev.kord.rest.json.request/MessageCreateRequest.<init>|<init>(dev.kord.common.entity.optional.Optional<kotlin.String>;dev.kord.common.entity.optional.Optional<kotlin.String>;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.rest.json.request.EmbedRequest>>;dev.kord.common.entity.optional.Optional<dev.kord.common.entity.AllowedMentions>;dev.kord.common.entity.optional.Optional<dev.kord.common.entity.DiscordMessageReference>;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.common.entity.DiscordComponent>>;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.common.entity.Snowflake>>;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.rest.json.request.AttachmentRequest>>;dev.kord.common.entity.optional.Optional<dev.kord.common.entity.MessageFlags>;dev.kord.common.entity.optional.OptionalBoolean){}[0]

final val allowedMentions // dev.kord.rest.json.request/MessageCreateRequest.allowedMentions|{}allowedMentions[0]
final fun <get-allowedMentions>(): dev.kord.common.entity.optional/Optional<dev.kord.common.entity/AllowedMentions> // dev.kord.rest.json.request/MessageCreateRequest.allowedMentions.<get-allowedMentions>|<get-allowedMentions>(){}[0]
Expand All @@ -5209,6 +5212,8 @@ final class dev.kord.rest.json.request/MessageCreateRequest { // dev.kord.rest.j
final fun <get-content>(): dev.kord.common.entity.optional/Optional<kotlin/String> // dev.kord.rest.json.request/MessageCreateRequest.content.<get-content>|<get-content>(){}[0]
final val embeds // dev.kord.rest.json.request/MessageCreateRequest.embeds|{}embeds[0]
final fun <get-embeds>(): dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.rest.json.request/EmbedRequest>> // dev.kord.rest.json.request/MessageCreateRequest.embeds.<get-embeds>|<get-embeds>(){}[0]
final val enforceNonce // dev.kord.rest.json.request/MessageCreateRequest.enforceNonce|{}enforceNonce[0]
final fun <get-enforceNonce>(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.rest.json.request/MessageCreateRequest.enforceNonce.<get-enforceNonce>|<get-enforceNonce>(){}[0]
final val flags // dev.kord.rest.json.request/MessageCreateRequest.flags|{}flags[0]
final fun <get-flags>(): dev.kord.common.entity.optional/Optional<dev.kord.common.entity/MessageFlags> // dev.kord.rest.json.request/MessageCreateRequest.flags.<get-flags>|<get-flags>(){}[0]
final val messageReference // dev.kord.rest.json.request/MessageCreateRequest.messageReference|{}messageReference[0]
Expand All @@ -5222,6 +5227,7 @@ final class dev.kord.rest.json.request/MessageCreateRequest { // dev.kord.rest.j

final fun component1(): dev.kord.common.entity.optional/Optional<kotlin/String> // dev.kord.rest.json.request/MessageCreateRequest.component1|component1(){}[0]
final fun component10(): dev.kord.common.entity.optional/Optional<dev.kord.common.entity/MessageFlags> // dev.kord.rest.json.request/MessageCreateRequest.component10|component10(){}[0]
final fun component11(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.rest.json.request/MessageCreateRequest.component11|component11(){}[0]
final fun component2(): dev.kord.common.entity.optional/Optional<kotlin/String> // dev.kord.rest.json.request/MessageCreateRequest.component2|component2(){}[0]
final fun component3(): dev.kord.common.entity.optional/OptionalBoolean // dev.kord.rest.json.request/MessageCreateRequest.component3|component3(){}[0]
final fun component4(): dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.rest.json.request/EmbedRequest>> // dev.kord.rest.json.request/MessageCreateRequest.component4|component4(){}[0]
Expand All @@ -5230,7 +5236,7 @@ final class dev.kord.rest.json.request/MessageCreateRequest { // dev.kord.rest.j
final fun component7(): dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/DiscordComponent>> // dev.kord.rest.json.request/MessageCreateRequest.component7|component7(){}[0]
final fun component8(): dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/Snowflake>> // dev.kord.rest.json.request/MessageCreateRequest.component8|component8(){}[0]
final fun component9(): dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.rest.json.request/AttachmentRequest>> // dev.kord.rest.json.request/MessageCreateRequest.component9|component9(){}[0]
final fun copy(dev.kord.common.entity.optional/Optional<kotlin/String> = ..., dev.kord.common.entity.optional/Optional<kotlin/String> = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.rest.json.request/EmbedRequest>> = ..., dev.kord.common.entity.optional/Optional<dev.kord.common.entity/AllowedMentions> = ..., dev.kord.common.entity.optional/Optional<dev.kord.common.entity/DiscordMessageReference> = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/DiscordComponent>> = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/Snowflake>> = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.rest.json.request/AttachmentRequest>> = ..., dev.kord.common.entity.optional/Optional<dev.kord.common.entity/MessageFlags> = ...): dev.kord.rest.json.request/MessageCreateRequest // dev.kord.rest.json.request/MessageCreateRequest.copy|copy(dev.kord.common.entity.optional.Optional<kotlin.String>;dev.kord.common.entity.optional.Optional<kotlin.String>;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.rest.json.request.EmbedRequest>>;dev.kord.common.entity.optional.Optional<dev.kord.common.entity.AllowedMentions>;dev.kord.common.entity.optional.Optional<dev.kord.common.entity.DiscordMessageReference>;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.common.entity.DiscordComponent>>;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.common.entity.Snowflake>>;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.rest.json.request.AttachmentRequest>>;dev.kord.common.entity.optional.Optional<dev.kord.common.entity.MessageFlags>){}[0]
final fun copy(dev.kord.common.entity.optional/Optional<kotlin/String> = ..., dev.kord.common.entity.optional/Optional<kotlin/String> = ..., dev.kord.common.entity.optional/OptionalBoolean = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.rest.json.request/EmbedRequest>> = ..., dev.kord.common.entity.optional/Optional<dev.kord.common.entity/AllowedMentions> = ..., dev.kord.common.entity.optional/Optional<dev.kord.common.entity/DiscordMessageReference> = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/DiscordComponent>> = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.common.entity/Snowflake>> = ..., dev.kord.common.entity.optional/Optional<kotlin.collections/List<dev.kord.rest.json.request/AttachmentRequest>> = ..., dev.kord.common.entity.optional/Optional<dev.kord.common.entity/MessageFlags> = ..., dev.kord.common.entity.optional/OptionalBoolean = ...): dev.kord.rest.json.request/MessageCreateRequest // dev.kord.rest.json.request/MessageCreateRequest.copy|copy(dev.kord.common.entity.optional.Optional<kotlin.String>;dev.kord.common.entity.optional.Optional<kotlin.String>;dev.kord.common.entity.optional.OptionalBoolean;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.rest.json.request.EmbedRequest>>;dev.kord.common.entity.optional.Optional<dev.kord.common.entity.AllowedMentions>;dev.kord.common.entity.optional.Optional<dev.kord.common.entity.DiscordMessageReference>;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.common.entity.DiscordComponent>>;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.common.entity.Snowflake>>;dev.kord.common.entity.optional.Optional<kotlin.collections.List<dev.kord.rest.json.request.AttachmentRequest>>;dev.kord.common.entity.optional.Optional<dev.kord.common.entity.MessageFlags>;dev.kord.common.entity.optional.OptionalBoolean){}[0]
final fun equals(kotlin/Any?): kotlin/Boolean // dev.kord.rest.json.request/MessageCreateRequest.equals|equals(kotlin.Any?){}[0]
final fun hashCode(): kotlin/Int // dev.kord.rest.json.request/MessageCreateRequest.hashCode|hashCode(){}[0]
final fun toString(): kotlin/String // dev.kord.rest.json.request/MessageCreateRequest.toString|toString(){}[0]
Expand Down
Loading

0 comments on commit f33f782

Please sign in to comment.