Wait for a module that matches the given filter
Filter function
Options
Return the raw module instead of the exports
Timeout in milliseconds
filters
Some modules may not be available immediately when Discord starts and will take up to a few seconds. This is useful to ensure that the module is available before using it.
Optional
Wait for a module that matches the given filter
Param: filter
Filter function
Param: options
Options
Param: options.raw
Return the raw module instead of the exports
Param: options.timeout
Timeout in milliseconds
See
filters
Remarks
Some modules may not be available immediately when Discord starts and will take up to a few seconds. This is useful to ensure that the module is available before using it.