Batman is known as a hero who hates the use of guns. However, he does acknowledge the need for certain versions. Mainly, non-lethal ones.
As such, Batman will carry either a tazer (aka Stun Gun), or even a Goo-Gun in order to imobolize his opponents. Sometimes, it's these guns that actually help save the day, as Batman is unable to stop them on his own.