Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Precondition i18n - Sapphire - Imagine a Framework
S-IaF
Sapphire - Imagine a Framework
•
3y ago
•
14 replies
Slime
Precondition i18n
Per this example here
https://www.sapphirejs.dev/docs/Guide/preconditions/global-preconditions
is it possible to like use one i18n function for it to work for all them with the message or do I have to take special precautions and check which type it is
?
Sapphire Framework
Global preconditions | Sapphire
Sometimes you want a precondition that automatically runs for every command
, without having to add it to each command
.
Solution
If so
, no
, but you don
't send messages through the preconditions anyway
. You to that through listeners
. And you identify the identifier there then send the translated message
. See
https://github.com/skyra-project/skyra/blob/main/src/listeners/commands/messageCommandDenied.ts
for an example
.
GitHub
skyra/src/listeners/commands/messageCommandDenied.ts at main · skyr...
A multipurpose Discord Bot designed to carry out most of your server
's needs with great performance and stability
.
- skyra
-project
/skyra
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
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Precondition position
S-IaF
Sapphire - Imagine a Framework / sapphire-support
7mo ago
`Precondition` doubts.
S-IaF
Sapphire - Imagine a Framework / sapphire-support
11mo ago
Precondition variations
S-IaF
Sapphire - Imagine a Framework / sapphire-support
13mo ago
Precondition results
S-IaF
Sapphire - Imagine a Framework / sapphire-support
14mo ago