getGlobalApplicationCommandOf
inline suspend fun <T : GlobalApplicationCommand> EntitySupplier.getGlobalApplicationCommandOf(applicationId: Snowflake, id: Snowflake): T(source)
Requests the GlobalApplicationCommand with the given id as type T.
Throws
if something went wrong while retrieving the global application.
if the global application is null.
if the returned GlobalApplication is not of type T.