diff --git a/src/grom.gleam b/src/grom.gleam index 0386dd9..2966497 100644 --- a/src/grom.gleam +++ b/src/grom.gleam @@ -21348,3 +21348,24 @@ pub type ApplicationInstallationType { /// In guilds, whether the response will be ephemeral depends on whether the executing user has the `AllowUsingExternalApplications` permission. UserInstalledApplication } + +pub fn delete_global_command_request( + token token: Token, + current_application_id application_id: Snowflake(Application), + command_with_id command_id: Snowflake(Command), +) -> Request(String) { + new_request( + token:, + to: "/applications/" + <> snowflake_to_string(application_id) + <> "/commands/" + <> snowflake_to_string(command_id), + method: http.Delete, + ) +} + +pub fn delete_global_command_response( + response: Response(String), +) -> Result(Nil, RestError) { + handle_no_content_response(response) +}