Skip to content

Conversation

DRSchlaubi
Copy link
Member

No description provided.

@DRSchlaubi DRSchlaubi requested a review from lukellmann November 7, 2024 16:06
# Conflicts:
#	core/api/core.api
#	core/api/core.klib.api
#	core/src/commonMain/kotlin/Kord.kt
#	rest/api/rest.api
#	rest/api/rest.klib.api
#	rest/src/commonMain/kotlin/json/JsonErrorCode.kt
#	rest/src/commonMain/kotlin/route/Route.kt
Copy link
Contributor

@NoComment1105 NoComment1105 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor changes for the Route class, otherwise looks good to me


public object GetGuildsSoundboardSound :
Route<DiscordSoundboardSound>(
HttpMethod.Post,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
HttpMethod.Post,
HttpMethod.Get,

public object GetGuildsSoundboardSound :
Route<DiscordSoundboardSound>(
HttpMethod.Post,
"/guilds/$GuildId/soundboard-sounds/$GuildId",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"/guilds/$GuildId/soundboard-sounds/$GuildId",
"/guilds/$GuildId/soundboard-sounds/$SoundId",

public object PatchGuildsSoundboardSound :
Route<DiscordSoundboardSound>(
HttpMethod.Patch,
"/guilds/$GuildId/soundboard-sounds/$GuildId",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"/guilds/$GuildId/soundboard-sounds/$GuildId",
"/guilds/$GuildId/soundboard-sounds/$SoundId",

public object DeleteGuildsSoundboardSound :
Route<Unit>(
HttpMethod.Delete,
"/guilds/$GuildId/soundboard-sounds/$GuildId",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"/guilds/$GuildId/soundboard-sounds/$GuildId",
"/guilds/$GuildId/soundboard-sounds/$SoundId",

ListSerializer(DiscordSoundboardSound.serializer())
)

public object GetGuildsSoundboardSounds :
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this not make more sense to be GetGuildSoundboardSounds? The extra s seems unnecessary.

Same below with GetGuildSoundboardSound

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants