How serraniel/discordmedialoader works
Main Components
• User Interface (UI) Layer: This is implemented as Windows Forms (e.g., MainForm, LoginDialog, FrmSplash, FrmDownload) and is located in the “Discord Media Loader.Application” and “Discord Media Loader” directories. It handles user input, login, server/channel selection, and displaying progress.
• Core/Business Logic: The “DML.Core” and “DML.AppCore” subprojects encapsulate key business logic. For example, classes such as Job, JobScheduler, and Settings manage the attachment download routines and scheduling of parallel tasks.
• Client/Integration Layer: The “DML.Client” project and parts of the application that integrate with Discord (using the Discord.Net library hosted in the “libs/Discord.Net” directory) form the client-side integration with external services.
• Installation & Deployment: The “install” directory, winget deployment scripts, and related configuration files serve deployment purposes.
• External Dependencies: These include the Discord.Net library and the .NET Framework 4.6 requirement, which should be mentioned as external systems or libraries that the application depends on.
Component Relationships and Interactions
• The UI layer (forms and dialogs) interacts with the Core/Business Logic layer to initiate downloads, process user settings, and display feedback.
• The Core/Business Logic layer interacts with the Client/Integration layer to communicate with the Discord API via the Discord.Net integration library.
• There is a data flow from the UI to the Core (for example, login credentials and download settings) and then from the Core dispatching jobs (via JobScheduler) to the Discord API. Return flows handle conveying statuses, errors, or success acknowledgments back to the user interface.
• The installation components package and deploy the overall application.