Back to Discord API
Discord API

InviteChannelRecipientResponse now requires id and avatar fields

BreakingBreaking change

This is a breaking change — integrations that rely on the affected behaviour will need updates before the change rolls out.

What changed

The InviteChannelRecipientResponse schema adds two new required fields: id (SnowflakeType) and avatar (nullable string). While these are new response fields (additive in terms of data), marking them as required means any client-side schema validation or strict deserialization that previously only expected username will now fail if it enforces the required list — and any mock/stub implementations that don't return these fields will be considered non-compliant. Existing clients that simply read the response are unaffected, but strict validators will break.

Open the source documentation