getCommand

open suspend fun getCommand(name: String, event: MessageCreateEvent): ChatCommand<out Arguments>?

Given a command name and MessageCreateEvent, try to find a matching command.

If a command supports locale fallback, this will also attempt to resolve names via the bot's default locale.