Brentford will face Championship side Sheffield Wednesday away from home in the third round of the FA Cup.
The Bees defeated the Owls in a penalty shoot-out at Gtech Community Stadium to reach the quarter-final of the Carabao Cup last season.
Keith Andrews' side will travel to Hillsborough on Saturday 10 January (3pm kick-off GMT).
The winner of that tie in South Yorkshire will learn of their fourth-round opponents on Monday 12 January, before the televised tie between Liverpool and Barnsley on TNT Sports.