-
SummaryAuditLogDiff seems to be missing the 'type' attribute despite the official API docs clearly saying that AuditLogDiff should have an attribute 'type'. Reproduction StepsI simply ran the following code
Expected ResultsThe code snippet would run perfectly fine without errors, continuing if the channel was a text channel, and stopping if it was a voice channel. Actual Results
Checklist
System Information
Notes(by the way, I am aware I could easily use |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
These attrs are added at runtime from the API payloads- if the API doesn't provide a key, it won't be included in the object, which is documented. |
Beta Was this translation helpful? Give feedback.
-
Edit: Apologies for the rudeness and the semi-wrong answer. |
Beta Was this translation helpful? Give feedback.
-
The attribute |
Beta Was this translation helpful? Give feedback.
According to the discord documentation,type
is implied to be used only when a channel is created:> type of entity created> (by the way, I am aware I could easily usechannelold.type
but a bug is still a bug and that workaround may not always be available)`This is false.Edit: Apologies for the rudeness and the semi-wrong answer.
type
will only be a valid property when the channel type is changed, which currently only happens when a text channel becomes a news channel.