/// <summary> /// When overridden in the derived class, handles destroying the guild. This needs to remove all members /// in the guild from the guild, and remove the guild itself from the database. /// </summary> protected override void HandleDestroyed() { // Remove all online members in the guild from the guild foreach (var member in OnlineMembers) { member.Guild = null; } // Delete the guild from the database, which will also remove all members not logged in from the guild _deleteGuildQuery.Execute(ID); }