discord-api-docs icon indicating copy to clipboard operation
discord-api-docs copied to clipboard

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

Open KubaZ2 opened this issue 2 years ago • 2 comments

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

KubaZ2 avatar Jul 24 '23 20:07 KubaZ2

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

GenRevo89 avatar Dec 16 '23 20:12 GenRevo89

Any updates on this?

Victorsitou avatar May 22 '24 19:05 Victorsitou