Description
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/EmbedAuthor-> Channel/Message/Embed/AuthorEmbed-> Channel/Message/Embed/EmbedField-> Channel/Message/Embed/FieldFooter-> Channel/Message/Embed/FooterImage-> Channel/Message/Embed/ImageVideo-> Channel/Message/Embed/Video
Forum-> Channel/ForumReaction-> Channel/Forum/ReactionTag-> Channel/Forum/Tag
- Guild
- Interactions
- OAuth
- Permissions
- Thread
- User
WIP*