Discord Player

useContext

Get the current value of the context. If the context is lost and no default value is provided, undefined will be returned.

useContext(context): T | undefined

Get the current value of the context. If the context is lost and no default value is provided, undefined will be returned.

const value = useContext(context);
ParameterTypeOptionalDescription
contextContext<T>The context to get the value from

On this page