Булочка | pasha_boez
Булочка | pasha_boez
DIAdiscord.js - Imagine an app
Created by Булочка | pasha_boez on 3/1/2025 in #djs-questions
install error
Hello. When I write pnpm install --frozen-lockfile (contributing) I get error
│ LIBTOOL-STATIC Release/zlib.a
│ CXX(target) Release/obj.target/zlib_sync/src/zlib_sync.o
│ ../src/zlib_sync.cc:1:10: fatal error: 'algorithm' file not found
│ 1 | #include <algorithm>
│ | ^~~~~~~~~~~
│ 1 error generated.
│ make: *** [Release/obj.target/zlib_sync/src/zlib_sync.o] Error 1
│ gyp ERR! build error
│ gyp ERR! stack Error: `make` failed with exit code: 2
│ gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/lib/build.js:216:23)
│ gyp ERR! System Darwin 24.3.0
│ gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
│ gyp ERR! cwd ~/Documents/GitHub/discord.js/node_modules/.pnpm/[email protected]/node_modules/zlib-sync
│ gyp ERR! node -v v22.14.0
│ gyp ERR! node-gyp -v v10.2.0
│ gyp ERR! not ok
│ LIBTOOL-STATIC Release/zlib.a
│ CXX(target) Release/obj.target/zlib_sync/src/zlib_sync.o
│ ../src/zlib_sync.cc:1:10: fatal error: 'algorithm' file not found
│ 1 | #include <algorithm>
│ | ^~~~~~~~~~~
│ 1 error generated.
│ make: *** [Release/obj.target/zlib_sync/src/zlib_sync.o] Error 1
│ gyp ERR! build error
│ gyp ERR! stack Error: `make` failed with exit code: 2
│ gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/lib/build.js:216:23)
│ gyp ERR! System Darwin 24.3.0
│ gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
│ gyp ERR! cwd ~/Documents/GitHub/discord.js/node_modules/.pnpm/[email protected]/node_modules/zlib-sync
│ gyp ERR! node -v v22.14.0
│ gyp ERR! node-gyp -v v10.2.0
│ gyp ERR! not ok
How to solve this error? Branch is main, pnpm 9.15.5
7 replies
DIAdiscord.js - Imagine an app
Created by Булочка | pasha_boez on 8/23/2023 in #djs-questions
info in component custom id
Is it good to store some info in component's custom id? For example: I create a button with custom id: acceptInvite:1234567890123456789, where: acceptInvite - name of this button in code : - separator 1234567890123456789 - id of user who create invite Are there other ways to transfer information? When I do this, I feel like it's illegal...
7 replies
DIAdiscord.js - Imagine an app
Created by Булочка | pasha_boez on 4/2/2023 in #djs-questions
delete messages on ban
Why d.js not allow to set time for messages deletion on ban in seconds, not days? For example, where you ban member from user account you can set time in seconds (in API, not UI)
7 replies