Roirraw
DIAdiscord.js - Imagine an app
•Created by Roirraw on 8/5/2023 in #djs-questions
Building .exe file with pkg results in "Failed to make bytecode"
Hey, I'm trying to build my node discord.js project into .exe file for ease of use. I managed to do so with https://www.npmjs.com/package/pkg by simply running it with
pkg . --targets node18-win-x64
and below configuration:
I got following warnings though:
and I have noticed that the .exe
won't work without all node_modules
copied into it's directory. I suspect it might be related to file-type
not being bundled correctly, but maybe I'm missing something else. Thanks for help in advance.5 replies
DIAdiscord.js - Imagine an app
•Created by Roirraw on 7/28/2023 in #djs-questions
User being displayed as [object Object]
Hey, I'm trying to display a leaderboard of users having the most gold saved in my sqlite database, here's my command:
Works fine with
user.global_name
but displaying just the user
results in [object Object]
in the message. Why is that? I thought that printing out user in the string literal or using .toString()
method will automatically display the user as mention @username
. What am I missing?7 replies