Managing all the data in memory and storing/restoring it using json might consume a lot of RAM on >50 Discord guilds.
Use any of the SQL database system to store all of the guild data to prevent memory overconsumption
I suggest to use simple SQLite 3 (pip install aiosqlite)