-
Notifications
You must be signed in to change notification settings - Fork 91
Feature/soundboard #992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Feature/soundboard #992
Conversation
# 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
There was a problem hiding this 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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HttpMethod.Post, | |
HttpMethod.Get, |
public object GetGuildsSoundboardSound : | ||
Route<DiscordSoundboardSound>( | ||
HttpMethod.Post, | ||
"/guilds/$GuildId/soundboard-sounds/$GuildId", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"/guilds/$GuildId/soundboard-sounds/$GuildId", | |
"/guilds/$GuildId/soundboard-sounds/$SoundId", |
public object PatchGuildsSoundboardSound : | ||
Route<DiscordSoundboardSound>( | ||
HttpMethod.Patch, | ||
"/guilds/$GuildId/soundboard-sounds/$GuildId", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"/guilds/$GuildId/soundboard-sounds/$GuildId", | |
"/guilds/$GuildId/soundboard-sounds/$SoundId", |
public object DeleteGuildsSoundboardSound : | ||
Route<Unit>( | ||
HttpMethod.Delete, | ||
"/guilds/$GuildId/soundboard-sounds/$GuildId", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"/guilds/$GuildId/soundboard-sounds/$GuildId", | |
"/guilds/$GuildId/soundboard-sounds/$SoundId", |
ListSerializer(DiscordSoundboardSound.serializer()) | ||
) | ||
|
||
public object GetGuildsSoundboardSounds : |
There was a problem hiding this comment.
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
No description provided.