Skip to content

Commit

Permalink
Changed id values from String to long
Browse files Browse the repository at this point in the history
  • Loading branch information
surajkumar committed Apr 21, 2024
1 parent fe9ae62 commit 150935d
Show file tree
Hide file tree
Showing 18 changed files with 33 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public record Thread(
@JsonProperty("message_count") int messageCount,
@JsonProperty("member_count") int memberCount,
@JsonProperty("last_message_id") String lastMessageId,
@JsonProperty("id") String id,
@JsonProperty("guild_id") String guildId,
@JsonProperty("id") long id,
@JsonProperty("guild_id") long guildId,
@JsonProperty("flags") int flags
) {}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

@JsonIgnoreProperties(ignoreUnknown = true)
public record ChannelMention(
@JsonProperty("id") String id,
@JsonProperty("id") long id,
@JsonProperty("guild_id") String guildId,
@JsonProperty("type") int type,
@JsonProperty("name") String name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

@JsonIgnoreProperties(ignoreUnknown = true)
public record Application(
String id,
long id,
String name,
String icon,
String description,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

@JsonIgnoreProperties(ignoreUnknown = true)
public record AutoModerationActionObject(
@JsonProperty("type") int type, // AutoModeraetionActionType
@JsonProperty("type") int type, // AutoModerationActionType
@JsonProperty("metadata") AutoModerationActionMetadata metadata
) {}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ public enum AutoModerationActionType {
AutoModerationActionType(int value) {
this.value = value;
}

public int getValue() {
return value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ public enum AutoModerationEventType {
AutoModerationEventType(int value) {
this.value = value;
}

public int getValue() {
return value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ public enum AutoModerationKeywordPresetTypes {
AutoModerationKeywordPresetTypes(int value) {
this.value = value;
}

public int getValue() {
return value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ public enum AutoModerationTriggerType {
AutoModerationTriggerType(int value) {
this.value = value;
}

public int getValue() {
return value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@

@JsonIgnoreProperties(ignoreUnknown = true)
public record IntegrationAccount(
@JsonProperty("id") String id, @JsonProperty("name") String name
@JsonProperty("id") long id, @JsonProperty("name") String name
) {}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public enum IntegrationExpireBehaviour {

private final int value;

private IntegrationExpireBehaviour(int value) {
IntegrationExpireBehaviour(int value) {
this.value = value;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@JsonIgnoreProperties(ignoreUnknown = true)
public record Invite(
@JsonProperty("channel_id") String channelId,
@JsonProperty("channel_id") long channelId,
@JsonProperty("code") String code,
@JsonProperty("created_at") String createdAt,
@JsonProperty("guild_id") String guildId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@JsonIgnoreProperties(ignoreUnknown = true)
public record MessageInteraction(
@JsonProperty("id") String id,
@JsonProperty("id") long id,
@JsonProperty("type") int type,
@JsonProperty("name") String name,
@JsonProperty("user") User user,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@JsonIgnoreProperties(ignoreUnknown = true)
public record MessageInteractionMetadata(
@JsonProperty("id") String id,
@JsonProperty("id") long id,
@JsonProperty("type") int type,
@JsonProperty("user_id") String userId,
@JsonProperty("authorizing_integration_owners") Map<String, String> authorizingIntegrationOwners,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

@JsonIgnoreProperties(ignoreUnknown = true)
public record MessageReactionsRemoved(
@JsonProperty("message_id") long message_id,
@JsonProperty("messageId") long messageId,
@JsonProperty("channel_id") long channelId,
@JsonProperty("guild_id") long guildId
) {}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

@JsonIgnoreProperties(ignoreUnknown = true)
public record MessageReference(
@JsonProperty("message_id") String messageId,
@JsonProperty("messageId") String messageId,
@JsonProperty("channel_id") String channelId,
@JsonProperty("guild_id") String guildId,
@JsonProperty("fail_if_not_exists") boolean failIfNotExists
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

@JsonIgnoreProperties(ignoreUnknown = true)
public record StickerItem(
@JsonProperty("id") String id,
@JsonProperty("id") long id,
@JsonProperty("name") String name,
@JsonProperty("format_type") int formatType
) {}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

@JsonIgnoreProperties(ignoreUnknown = true)
public record TypingStart(
@JsonProperty("channel_id") String channelId,
@JsonProperty("guild_id") String guildId,
@JsonProperty("user_id") String userId,
@JsonProperty("channel_id") long channelId,
@JsonProperty("guild_id") long guildId,
@JsonProperty("user_id") long userId,
@JsonProperty("timestamp") int timestamp,
@JsonProperty("member") Member member
) {}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@JsonIgnoreProperties(ignoreUnknown = true)
public record Connection(
@JsonProperty("id") String id,
@JsonProperty("id") long id,
@JsonProperty("name") String name,
@JsonProperty("type") String type,
@JsonProperty("revoked") boolean revoked,
Expand Down

0 comments on commit 150935d

Please sign in to comment.