Discord and SQL
Right now, to avoid redundancies and other design reasons, the Discord module does not have SQL access, and is launched as a multiprocess.
This, however, means that it cannot fill discord_id
field in discord
database. As a result, the username is saved, which could be changed by the user, forcing them to update their data with @discord
.
Moreover, the SQL method should remove entries where the bound no longer exists (account removed, or discord deleted).
I don't feel like adding SQL clearance to Discord module, even to make it more portable/generalist; An alternative, therefore, would be using a new Queue() to communicate back with needed SQL updates and a new thread waiting on it.