aboutsummaryrefslogtreecommitdiff
path: root/mal/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'mal/user.go')
-rw-r--r--mal/user.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/mal/user.go b/mal/user.go
index c271aab..b9301e0 100644
--- a/mal/user.go
+++ b/mal/user.go
@@ -19,16 +19,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package mal
import (
- u "github.com/MikunoNaka/MAL2Go/v4/user"
+ "vidhukant.com/mg"
"fmt"
"os"
)
-func GetUserInfo() u.UserInfo {
- userInfo, err := userClient.GetSelfUserInfo()
+func GetUserInfo() mg.User {
+ var user mg.User
+ err := MALClient.GetSelfInfo(&user, true)
if err != nil {
fmt.Println("Error fetching User Information:", err)
os.Exit(1)
}
- return userInfo
+ return user
}