If you make an attack as a bonus action, can it be regarded as an attack action?

I trained a neural network to generate new Dungeons&Dragons creatures

Phantasmal Force & Mental Prison are considered visual illusions for the purpose of Truesight?