With an electric beater, mix the softened butter and sugar together until pale and creamy. Add the eggs, one at a time, beating well between each addition until just combined. Sift in both of the flours and the cocoa powder. Fold into the mixture. Add the melted chocolate mixture and stir to combine.