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 ResultsChecklist
System Information
Notes(by the way, I am aware I could easily use |
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. |
|
Edit: Apologies for the rudeness and the semi-wrong answer. |
|
The attribute |
According to the discord documentation,typeis implied to be used only when a channel is created:> type of entity created> (by the way, I am aware I could easily usechannelold.typebut 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.
typewill only be a valid property when the channel type is changed, which currently only happens when a text channel becomes a news channel.