Question about "runIn" preconditions
Hello! According to the docs regarding setting the channel types a command can run in. In theory setting the command's
runIn
to Should make the command run in both text channels and voice based text channels. However, setting it like this, doesn't allow me to run them to both channel types. What I can do was to only set one channel type in runIn
and it'd work for that particular channel type only. How can I make it so that I can allow the command to run in both channel types?5 Replies
runIn has recently been patched and is pending a release https://github.com/sapphiredev/framework/commit/2ed7fa540031b247f83889751c8564de9aa81dcb
GitHub
refactor(preconditions): add
RunIn
, deprecate everything else (#6...* refactor(preconditions): add
RunIn
, deprecate everything else
* fix: refactor DMOnly
precondition
* fix: correct stringI'll release tonight
I see, so if I understood this correctly, the correct way to do the core preconditions now are through
runIn
, and not the preconditions
option anymore?
amazing yes
I see, thank you!