It also prevents the Pokémon from being affected by other Pokémon's Trick or Switcheroo (even if it has no held item), but not its own.
Source
It seems as though you can use Trick, at least, that’s what I interpreted when I read “but not its own”. So I think you can still use Trick yourself, just the opponent can’t use it. I’ll see if I can get a replay from Showdown.
Welp I did a replay too.
Accelgor’s set:
Accelgor @ Choice Specs
Ability: Sticky Hold
EVs: 252 HP / 252 Def / 252 SpA / 252 SpD / 252 Spe
Timid Nature
IVs: 0 Atk
- Trick
- Aura Sphere
- Bug Buzz
- Boomburst
Hope this helps! :)