Package discord4j.common.util
Class TokenUtil
- java.lang.Object
-
- discord4j.common.util.TokenUtil
-
public final class TokenUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description TokenUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
getSelfId(String token)
Extracts the bot user's ID from the token used to authenticate requests.
-
-
-
Method Detail
-
getSelfId
public static long getSelfId(String token)
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.
-
-