getGuildApplicationCommandOf

Requests the GuildApplicationCommand with the given id as type T.

Throws

if something went wrong while retrieving the guild application.

if the guild application is null.

if the returned GuildApplication is not of type T.