say i want to wrap the discordjs javascript library how do i go about doing that?
for example i want to do this import { Client, GatewayIntentBits } from 'discord.js'; const client = new Client({ intents: [GatewayIntentBits.Guilds] }); client.on('ready', () => { console.log(`Logged in as ${client.user.tag}!`); }); client.on('interactionCreate', async interaction => { if (!interaction.isChatInputCommand()) return; if (interaction.commandName === 'ping') { await interaction.reply('Pong!'); } }); client.login(TOKEN); Run this is what i have so far {.emit:""" import { Client, GatewayIntentBits } from 'discord.js'; """.} proc Client(intents: JsObject): JsObject {.importjs: "Client(#)".} var client = new Client({ intents: [GatewayIntentBits.Guilds] }) Run i think i have a ok starting point but i dnt know how to make this work