If you voluntarily consumed the illicit drugs, it is unlikely there will be a defence available to you at law.