User:Himmalerin/oasis.js

(async function {	const params = {			action: 'query',			meta: 'userinfo',			uiprop: 'rights',			format: 'json',			formatversion: 'latest',		},		api = new mw.Api;

try { const result = await api.get(params);

console.log(result); } catch (err) { console.error(err); } });