Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
how to make fetchPrefix return a regex? - Sapphire - Imagine a Framework
S-IaF
Sapphire - Imagine a Framework
โข
3y ago
โข
4 replies
.
how to make fetchPrefix return a regex?
Is this possible
? Like returning the regex prefix
? I get a typescript error
.
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
Sapphire Framework
Interface: SapphireClientOptions | Sapphire
Properties
Jump to solution
Sapphire - Imagine a Framework
Join
Sapphire is a next-gen object-oriented Discord.js bot framework.
2,261
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
fetchPrefix method on SapphireClient class
S-IaF
Sapphire - Imagine a Framework / sapphire-support
3y ago
fetchPrefix not functioning as it should
S-IaF
Sapphire - Imagine a Framework / sapphire-support
3y ago
How to make auto idhints?
S-IaF
Sapphire - Imagine a Framework / sapphire-support
4y ago
what is this regex supposed to mean?
S-IaF
Sapphire - Imagine a Framework / sapphire-support
4y ago