Accessing container inside of a decorator

Is that possible to have access to the container inside of a decorator. I'm trying to use it in a createFunctionPrecondition but I'm getting: TypeError: Cannot read properties of undefined (reading 'container')
2 Replies
Favna
Favna2y ago
import { container } from '@sapphire/framework'
Daniel Passos
Daniel PassosOP2y ago
Well, that was what I did. For some reason that I can not explain I was getting an error. Seems be fixed now pepeLaugh
Want results from more Discord servers?
Add your server