Preheat your oven to 180°C/350°F (or 160°C/320°F for fan or convection ovens) and line an 8x10 or 8x8-inch tin with baking paper.
Add the butter to a bowl with the caster sugar and brown sugar. Mix to make a thick paste, using an electric whisk or stand mixer to assist if required.
Add the egg and vanilla extract and mix well until smooth.
Add all of the self-raising flour and mix it in. When it starts to come together, use your hands to press it into a ball of dough. If the dough is too sticky, add more flour. If it’s too dry, add a splash of milk.
Add the mini M&Ms and the chocolate chips, saving a few for the topping.
Press the dough into your lined tin then top with leftover M&Ms and chocolate chips.
Bake for 22-25 minutes, until the cookie is golden brown all over and slightly pulling away from the edges.
Leave it in the tin to cool completely then pop it in the fridge for 1-2 hours, until solid. This will give you sturdy, chewy bars that won't break.
Remove the cookie from the tin, cut it into squares and enjoy!