Posts by Nexus Prime • 25 points
4 posts
-
1
votes1
answer53
viewsQ: How to create a Union type from the elements of an array type in Typescript?
I have this code: const array = [1, 2, 3, 4, 5] interface data ... How do I get the contents of array and kind on date? As if it were so: interface data { numbers: 1 | 2 | 3 | 4 | 5 } PS: I nay I…
-
0
votes0
answers23
viewsQ: Upload file and use it to export data
I have a file called preload.js, it is the first to be loaded. I need to do a scan and send the result to multiple files when prompted. I tried: module.exports = { online: false, client: client,…
-
0
votes1
answer66
viewsQ: How to read or run other files and programs with Lua?
Is there any file system(fs) in Lua? Any way to run JS files on Lua?
luaasked Nexus Prime 25 -
0
votes2
answers2844
viewsA: How to make the Discord bot send a private message
Try to use message.author.send to send a message in the DM (remembering that this will get the id of the person who typed the message)
javaanswered Nexus Prime 25