getChallenge

open fun getChallenge(@Nullable tablePrefix: String, @NotNull id: @NotNull String): GuildChallenge(source)

Gets a single challenge by id.

Return

a `GuildChallenge` object representing the found challenge, or `null` if no challenge with the specified id exists.

Parameters

tablePrefix

the prefix, if any, to use for the container's name.

id

the id of the challenge to retrieve.

Throws

if an I/O error occurs while retrieving the challenge.