Skip to content

Commit e2cbad6

Browse files
committed
channel_id in message reference is optional
1 parent 7a0f76f commit e2cbad6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/resources/Channel.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,11 @@ Represents a message sent in a channel within Discord.
261261
| Field | Type | Description |
262262
|-------------|-----------|-----------------------------------------|
263263
| message_id? | snowflake | id of the originating message |
264-
| channel_id | snowflake | id of the originating message's channel |
264+
| channel_id? \* | snowflake | id of the originating message's channel |
265265
| guild_id? | snowflake | id of the originating message's guild |
266266

267+
\* `channel_id` is optional when creating a reply, but will always be present when receiving an event/response that includes this data model.
268+
267269
###### Message Activity Types
268270

269271
| Type | Value |

0 commit comments

Comments
 (0)