You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From beginning the Part class folder structure follows the Discord API documentation sections but from time to time they start separating each object to another page. Then the Part structure becomes inconsistent...
So I'm suggesting to follow the API endpoints, for example Messages are available from /channels/channel.id/messages/message.id, so the folder would be /Channel/Message/ and any of object that is included on it will be put in the parent class folder, and if none of the criteria match then we will fall back to Discord API documentation section.
Things to consider as well that some Part class have same name, placing it in different folders makes IDE autocomplete aliasing to correct namespace, e.g. Member for Guild & Thread when placed in Guild/Member will auto alias to GuildMember and Thread/Member will auto alias to ThreadMember
Channel
Attachment -> Channel/Message/Attachment
Channel
Invite
Message -> Channel/Message/Message
Overwrite
Reaction -> Channel/Message/Reaction
StageInstance
Webhook
Embed -> Channel/Message/Embed
Author -> Channel/Message/Embed/Author
Embed -> Channel/Message/Embed/Embed
Field -> Channel/Message/Embed/Field
Footer -> Channel/Message/Embed/Footer
Image -> Channel/Message/Embed/Image
Video -> Channel/Message/Embed/Video
Forum -> Channel/Forum
Reaction -> Channel/Forum/Reaction
Tag -> Channel/Forum/Tag
Guild
Interactions
OAuth
Permissions
Thread
User
WIP*
The text was updated successfully, but these errors were encountered:
From beginning the Part class folder structure follows the Discord API documentation sections but from time to time they start separating each object to another page. Then the Part structure becomes inconsistent...
So I'm suggesting to follow the API endpoints, for example Messages are available from
/channels/channel.id/messages/message.id
, so the folder would be /Channel/Message/ and any of object that is included on it will be put in the parent class folder, and if none of the criteria match then we will fall back to Discord API documentation section.Things to consider as well that some Part class have same name, placing it in different folders makes IDE autocomplete aliasing to correct namespace, e.g.
Member
for Guild & Thread when placed in Guild/Member will auto alias toGuildMember
and Thread/Member will auto alias toThreadMember
Attachment-> Channel/Message/AttachmentMessage-> Channel/Message/MessageReaction-> Channel/Message/ReactionEmbed-> Channel/Message/EmbedAuthor-> Channel/Message/Embed/AuthorEmbed-> Channel/Message/Embed/EmbedField-> Channel/Message/Embed/FieldFooter-> Channel/Message/Embed/FooterImage-> Channel/Message/Embed/ImageVideo-> Channel/Message/Embed/VideoForum-> Channel/ForumReaction-> Channel/Forum/ReactionTag-> Channel/Forum/TagWIP*
The text was updated successfully, but these errors were encountered: