Provide full channel object in INTERACTION_CREATE instead of only an inconsistent partial one
#6270
Unanswered
mccoderpy
asked this question in
API Feature Requests & Ideas
Replies: 1 comment 1 reply
-
|
I think you would be more likely to get what you need if you request the specific fields you need, with use cases, instead of the whole object |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
As the interactions model is meant to be used in both ways, with and without gateway, it is very uncomfortable that we only get a partial
channelobject in theinteractionobject.Especially for pure HTTP interactions it would be useful to get this full object instead of only a partial one where you don't even know
what fields you can get from it except the "guarantied" ones:
typeandidFor example, a user of my Lib got an exception because the
parent_idin a thread was missing, but when I tested it, it was present:{ "type": 11, "total_message_sent": 3, "thread_metadata": { "locked": false, "create_timestamp": "2023-06-29T05:40:12.644000+00:00", "auto_archive_duration": 10080, "archived": false, "archive_timestamp": "2023-06-29T05:40:12.644000+00:00" }, "rate_limit_per_user": 0, "permissions": "140737488355327", "parent_id": "1116383616616906892", "owner_id": "693088765333471284", "name": "[Bug]: Fix utils._unique to always return a list when the input is not list set or tuple", "message_count": 0, "member_ids_preview": [ "693088765333471284" ], "member_count": 1, "last_message_id": "1126053501705932840", "id": "1123850388060254268", "guild_id": "852871920411475968", "flags": 0, "applied_tags": [ "1116384856633507912", "1116387930857029733", "1116384337538076856" ] }So I think it would be the best to give a full channel object or at least do not (sometime) skip fields that are not optional for a channel type.
Beta Was this translation helpful? Give feedback.
All reactions