addition of guild_id
property in message obj returned by get channel Message
, edit Message
etc
#4289
-
IntroI think
would be grateful if it is also added in Reasonwhen using these endpoints , there are 2 main params, ( channelId and messageId) and the object that is returned on success ( taking Guild Text Channel as example ) is like this: {
id: Snowflake,
type: 0,
content: 'hello?',
channel_id: Snowflake,
author: [Object],
attachments: [],
embeds: [],
mentions: [],
mention_roles: [],
pinned: false,
mention_everyone: false,
tts: false,
timestamp: "ISO8601 timestamp",
edited_timestamp: null,
flags: 0,
components: []
}
// message data is fetched using a test bot with `message content intent` Work Aroundbecause we never used guildId when using these endpoints, there are 2 work arounds: Method 1:cache the channel data in a hashMap with id as key issuecaching channels will need resources (which is fine on small scale ) therefore Method 2:if we are not caching channel data which I think is not ideal here cause we are fetching whole channel data from discord api ,just to get Conclusionhence for the conclusion of this initial message, I think, having PS:if I missed something , I would be grateful if it's pointed out. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This has already been denied in the past: #912 |
Beta Was this translation helpful? Give feedback.
-
ok thx |
Beta Was this translation helpful? Give feedback.
This has already been denied in the past: #912