Translate runIn error message
Since
runIn
pre condition do not return the identifier of precondition that failed, is there a way to translate the message of the error or should I just don't use the runIn: CommandOptionsRunTypeEnum.GuildAny
and only use preconditions: ['GuildOnly']
?Solution:Jump to solution
runIn is a single precondition https://github.com/sapphiredev/framework/blob/main/src/preconditions/RunIn.ts
1 Reply
Solution
runIn is a single precondition https://github.com/sapphiredev/framework/blob/main/src/preconditions/RunIn.ts