Package discord4j.common.util
Class TokenUtil
java.lang.Object
discord4j.common.util.TokenUtil
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TokenUtil
public TokenUtil()
-
-
Method Details
-
getSelfId
Extracts the bot user's ID from the token used to authenticate requests.- Parameters:
token- The bot token used to authenticate requests.- Returns:
- The bot user's ID.
-