resolveNext

abstract fun <T : IMentionable?> resolveNext(classes: Array<Class<out Any>>): @NotNull T(source)

Returns the next IMentionable

Return

The argument of type T, extending IMentionable, if it exists

Parameters

classes

Class(es) of the requested type

<T>

Type of the requested argument

Throws

In case the ID is not a valid snowflake, or does not refer to a known IMentionable

In case there is no ID / IMentionable in the message

In case there is no more arguments to be read, or the type isn't the same