Diazepam, best known as Valium, is not an opioid. Diazepam is a benzodiazepine, a class of sedative/hypnotics. Benzodiazepines are used primarily to treat anxiety disorders, insomnia, and seizure.
Opioids are pain killers and include drugs like morphine, codeine, heroin, and hydrocodone.