seasha
seasha
DIAdiscord.js - Imagine an app
Created by seasha on 11/12/2023 in #djs-questions
Trouble pushing to heroku
@Tyranasaurus
3 replies
DIAdiscord.js - Imagine an app
Created by seasha on 10/14/2023 in #djs-questions
DM User based on the Username
ill ask in the dev server, thanks!
14 replies
DIAdiscord.js - Imagine an app
Created by seasha on 10/14/2023 in #djs-questions
DM User based on the Username
it doesn't make sens ein the context of the project
14 replies
DIAdiscord.js - Imagine an app
Created by seasha on 10/14/2023 in #djs-questions
DM User based on the Username
and then dming the id
14 replies
DIAdiscord.js - Imagine an app
Created by seasha on 10/14/2023 in #djs-questions
DM User based on the Username
currently im doing a two step process of getting their discord id from their username
14 replies
DIAdiscord.js - Imagine an app
Created by seasha on 10/14/2023 in #djs-questions
DM User based on the Username
doing this also returns "undefined" for discordId
14 replies
DIAdiscord.js - Imagine an app
Created by seasha on 10/14/2023 in #djs-questions
DM User based on the Username
const response = await fetch('https://discord.com/api/v10/guilds/' + guildId + '/members/search/?query=' + discordUsername);
const json = await response.json();
const discordId = json.id;

console.log(discordId);
const response = await fetch('https://discord.com/api/v10/guilds/' + guildId + '/members/search/?query=' + discordUsername);
const json = await response.json();
const discordId = json.id;

console.log(discordId);
14 replies
DIAdiscord.js - Imagine an app
Created by seasha on 10/14/2023 in #djs-questions
DM User based on the Username
yeah i dont have access to the user's id, only their username
14 replies
DIAdiscord.js - Imagine an app
Created by seasha on 10/14/2023 in #djs-questions
DM User based on the Username
"@discordjs/rest": "^2.0.1",
14 replies
DIAdiscord.js - Imagine an app
Created by seasha on 10/14/2023 in #djs-questions
DM User based on the Username
node 18.16.1
14 replies
DIAdiscord.js - Imagine an app
Created by seasha on 10/14/2023 in #djs-questions
Zlib-sync failed to resolve
ic! let me try that, thank you!
6 replies
DIAdiscord.js - Imagine an app
Created by seasha on 10/14/2023 in #djs-questions
Zlib-sync failed to resolve
full error:
Failed to resolve import "zlib-sync" from "node_modules/.vite/deps/discord__js.js?v=f1677f66". Does the file exist?
10:35:55 AM [vite] Internal server error: Failed to resolve import "zlib-sync" from "node_modules/.vite/deps/discord__js.js?v=f1677f66". Does the file exist?
Plugin: vite:import-analysis
File: /Users/x/Desktop/x/node_modules/.vite/deps/discord__js.js?v=f1677f66:50929:65
50927| }
50928| __name(getInitialSendRateLimitState, "getInitialSendRateLimitState");
50929| var getZlibSync = (0, import_util2.lazy)(async () => import("zlib-sync").then((mod) => mod.default).catch(() => null));
| ^
50930| var WebSocketShardEvents = ((WebSocketShardEvents2) => {
50931| WebSocketShardEvents2["Closed"] = "closed";
at formatError (file:///Users/x/Desktop/vscode/x/node_modules/vite/dist/node/chunks/dep-2b82a1ce.js:44055:46)
at TransformContext.error (file:///Users/x/Desktop/vscode/x/node_modules/vite/dist/node/chunks/dep-2b82a1ce.js:44051:19)
at normalizeUrl (file:///Users/x/Desktop/vscode/x/node_modules/vite/dist/node/chunks/dep-2b82a1ce.js:41837:33)
at async file:///Users/x/Desktop/vscode/x/node_modules/vite/dist/node/chunks/dep-2b82a1ce.js:41991:47
at async Promise.all (index 1)
at async TransformContext.transform (file:///Users/x/Desktop/vscode/x/node_modules/vite/dist/node/chunks/dep-2b82a1ce.js:41907:13)
at async Object.transform (file:///Users/x/Desktop/vscode/x/node_modules/vite/dist/node/chunks/dep-2b82a1ce.js:44345:30)
at async loadAndTransform (file:///Users/x/Desktop/vscode/x/node_modules/vite/dist/node/chunks/dep-2b82a1ce.js:55015:29)
at async viteTransformMiddleware (file:///Users/x/Desktop/vscode/x/node_modules/vite/dist/node/chunks/dep-2b82a1ce.js:64417:32)
Failed to resolve import "zlib-sync" from "node_modules/.vite/deps/discord__js.js?v=f1677f66". Does the file exist?
10:35:55 AM [vite] Internal server error: Failed to resolve import "zlib-sync" from "node_modules/.vite/deps/discord__js.js?v=f1677f66". Does the file exist?
Plugin: vite:import-analysis
File: /Users/x/Desktop/x/node_modules/.vite/deps/discord__js.js?v=f1677f66:50929:65
50927| }
50928| __name(getInitialSendRateLimitState, "getInitialSendRateLimitState");
50929| var getZlibSync = (0, import_util2.lazy)(async () => import("zlib-sync").then((mod) => mod.default).catch(() => null));
| ^
50930| var WebSocketShardEvents = ((WebSocketShardEvents2) => {
50931| WebSocketShardEvents2["Closed"] = "closed";
at formatError (file:///Users/x/Desktop/vscode/x/node_modules/vite/dist/node/chunks/dep-2b82a1ce.js:44055:46)
at TransformContext.error (file:///Users/x/Desktop/vscode/x/node_modules/vite/dist/node/chunks/dep-2b82a1ce.js:44051:19)
at normalizeUrl (file:///Users/x/Desktop/vscode/x/node_modules/vite/dist/node/chunks/dep-2b82a1ce.js:41837:33)
at async file:///Users/x/Desktop/vscode/x/node_modules/vite/dist/node/chunks/dep-2b82a1ce.js:41991:47
at async Promise.all (index 1)
at async TransformContext.transform (file:///Users/x/Desktop/vscode/x/node_modules/vite/dist/node/chunks/dep-2b82a1ce.js:41907:13)
at async Object.transform (file:///Users/x/Desktop/vscode/x/node_modules/vite/dist/node/chunks/dep-2b82a1ce.js:44345:30)
at async loadAndTransform (file:///Users/x/Desktop/vscode/x/node_modules/vite/dist/node/chunks/dep-2b82a1ce.js:55015:29)
at async viteTransformMiddleware (file:///Users/x/Desktop/vscode/x/node_modules/vite/dist/node/chunks/dep-2b82a1ce.js:64417:32)
6 replies
DIAdiscord.js - Imagine an app
Created by seasha on 10/14/2023 in #djs-questions
Zlib-sync failed to resolve
node 18.16.1
6 replies
DIAdiscord.js - Imagine an app
Created by seasha on 10/14/2023 in #djs-questions
Zlib-sync failed to resolve
discordjs 14.13.0
6 replies
DIAdiscord.js - Imagine an app
Created by Tyranasaurus on 11/7/2022 in #djs-questions
inconsistent 'interaction not found' errors
20 replies
DIAdiscord.js - Imagine an app
Created by Tyranasaurus on 11/7/2022 in #djs-questions
inconsistent 'interaction not found' errors
and doesn't really give an error
20 replies
DIAdiscord.js - Imagine an app
Created by Tyranasaurus on 11/7/2022 in #djs-questions
inconsistent 'interaction not found' errors
basically says interaction does not respond
20 replies
DIAdiscord.js - Imagine an app
Created by Tyranasaurus on 11/7/2022 in #djs-questions
inconsistent 'interaction not found' errors
im working on the same project
20 replies