We consider a pseudo-differential equation driven by the fractional $p$-Laplacian with $pge 2$ (degenerate case), with a bounded reaction $f$ and Dirichlet type conditions in a smooth domain $Omega$. By means of barriers, a nonlocal superposition principle, and the comparison principle, we prove that any weak solution $u$ of such equation exhibits a weighted Holder regularity up to the boundary, that is, $u/d^sin C^alpha(overlineOmega)$ for some $alphain(0,1)$, $d$ being the distance from the boundary.