getGuildApplicationCommandOfOrNull

Requests the GuildApplicationCommand with the given id as type T, returns null if the command application isn't present or if the channel is not of type T.

Throws

if something went wrong while retrieving the application command.