getGlobalApplicationOf

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.