discord / discord-api-docs

Official Discord API Documentation
https://discord.com/developers/docs/intro
Other
5.91k stars 1.25k forks source link

An `id` field is required when creating an onboarding prompt #6320

Open KubaZ2 opened 1 year ago

KubaZ2 commented 1 year ago

Description

An id field is required when creating an onboarding prompt. The only way to create a new prompt is to pass a nonexistent snowflake in the id field.

Steps to Reproduce

curl -L -X PUT "https://discord.com/api/v10/guilds/guild_id/onboarding" -H "Content-Type: application/json" -H "Authorization: Bot Token" -d "{\"prompts\":[{\"title\":\"Title\",\"options\":[{\"title\":\"Title\",\"role_ids\":[\"role_id\"]}]}]}"

Expected Behavior

The id field is not required or is nullable

Current Behavior

The id field is required and non nullable

Screenshots/Videos

No response

Client and System Information

No response

GenRevo89 commented 9 months ago

Has this been patched? I am still encountering this issue.

Victorsitou commented 3 months ago

Any updates on this?