how to make fetchPrefix return a regex?
Is this possible? Like returning the regex prefix? I get a typescript error.
Solution:Jump to solution
https://www.sapphirejs.dev/docs/Documentation/api-framework/interfaces/SapphireClientOptions#regexprefix
Regexes go in a different property and take priority over fetchPrefix https://github.com/sapphiredev/framework/blob/d58810f76676184061e775e6249a4d01bdde67c3/src/optional-listeners/message-command-listeners/CorePreMessageParser.ts#L21...
2 Replies
Solution
https://www.sapphirejs.dev/docs/Documentation/api-framework/interfaces/SapphireClientOptions#regexprefix
Regexes go in a different property and take priority over fetchPrefix https://github.com/sapphiredev/framework/blob/d58810f76676184061e775e6249a4d01bdde67c3/src/optional-listeners/message-command-listeners/CorePreMessageParser.ts#L21
Ah okay