getCurrentUser static method
Requests the current user from Discord's servers
Implementation
static Future<User> getCurrentUser() async {
Dio dio = Dio(DiscordSessionSettings.getOptions);
var reply = await dio.get(
"${DiscordEndpoints.BaseURL}${DiscordEndpoints.Users}${DiscordEndpoints.ME}");
return User.fromJson(reply.data as String);
}