file description module import type { BaseData } from "eris" ; import type { HibikiClient } from "../classes/Client" ; import { User } from "eris" ; /**
 * Eris' endpoints aren't typed but you can view them here
 *  https const erisEndpoints = require ( "eris/lib/rest/Endpoints" ) ; export async function getRESTUser ( user , bot ) { const RESTUser = await bot . requestHandler . request ( "GET" , erisEndpoints . USER ( user , true ) , true ) . catch ( ( ) => { } ) ; if ( ! RESTUser ) return ; return new User ( RESTUser as BaseData , bot ) ; }