OliverJansen
DIAdiscord.js - Imagine an app
•Created by OliverJansen on 12/17/2023 in #djs-questions
Create invite links to the server automatically by bot
Could you provide me code I would use in react? By /rest or /core/http-only like?
24 replies
DIAdiscord.js - Imagine an app
•Created by OliverJansen on 12/17/2023 in #djs-questions
Create invite links to the server automatically by bot
Menu is simple. I want to automate create invite link work. If you want to make 10 different link for 10 different people it's annoying to do it by human hands and wanna automate it. This solution is using bot I think. Make sense?
24 replies
DIAdiscord.js - Imagine an app
•Created by OliverJansen on 12/17/2023 in #djs-questions
Create invite links to the server automatically by bot
Ok. Let's say I intend to prepare full meals for thousands of people and want my noddles to be prepared in an industrial kitchen. Then...?
24 replies
DIAdiscord.js - Imagine an app
•Created by OliverJansen on 12/17/2023 in #djs-questions
Create invite links to the server automatically by bot
Er... sorry. I insist in react and my methodology. So you mean there is no way-out in my way? I can't use Intents? I have an error like "you have to use Intents from discord.js 13 version", so I thought I should use Intents. Is it impossible to use Intents in discord.js 14?
24 replies
DIAdiscord.js - Imagine an app
•Created by OliverJansen on 12/17/2023 in #djs-questions
Create invite links to the server automatically by bot
Um... I think we are digressing from the main point. I don't want alternatives or shortcuts to this solution. I encountered error in my code and I want to correct it with your help. As I said, I don't know what Intent is because I am not experienced with discord.js. If I skip this by using easier method, I won't get to know deeper and the real power of discord.js. Please be patient and help me. What do you say?
24 replies
DIAdiscord.js - Imagine an app
•Created by OliverJansen on 12/17/2023 in #djs-questions
Create invite links to the server automatically by bot
I thought this was challenging thing and I really want to realize this with code. And you said it is possible to do this. Do I need to have/tell intention about this? This is just a simple one utilizing the provided functionality of discord.js, isn't it?
24 replies
DIAdiscord.js - Imagine an app
•Created by OliverJansen on 12/17/2023 in #djs-questions
Create invite links to the server automatically by bot
Do I have to use Intents when creating client?
24 replies
DIAdiscord.js - Imagine an app
•Created by OliverJansen on 12/17/2023 in #djs-questions
Create invite links to the server automatically by bot
Thanks. You have been a great help. I will try and tell you the result.
24 replies
DIAdiscord.js - Imagine an app
•Created by OliverJansen on 12/17/2023 in #djs-questions
Create invite links to the server automatically by bot
Thank you for your kind explanation. I didn't get it clearly but I feel thankful. So please clarify once again for me. Is it possible to create invite link by bot (not manually) in case I am the owner of the server?
24 replies
DIAdiscord.js - Imagine an app
•Created by OliverJansen on 12/17/2023 in #djs-questions
Create invite links to the server automatically by bot
You mean I can't use any action related to Discord.js in browser?
24 replies
DIAdiscord.js - Imagine an app
•Created by OliverJansen on 12/17/2023 in #djs-questions
Create invite links to the server automatically by bot
Anyway, can you explain the reason I get error by requireing discord.js module?
24 replies
DIAdiscord.js - Imagine an app
•Created by OliverJansen on 12/17/2023 in #djs-questions
Create invite links to the server automatically by bot
If I erase require('discord.js'), it works without an error
24 replies
DIAdiscord.js - Imagine an app
•Created by OliverJansen on 12/17/2023 in #djs-questions
Create invite links to the server automatically by bot
wait - compiling...
event - compiled client and server successfully in 176 ms (742 modules)
wait - compiling /home-feed (client and server)...
Watchpack Error (initial scan): Error: ENOTDIR: not a directory, scandir 'E:\MyWork\19\Dean\Frontend\codsland\node_modules\next\dist\compiled\timers-browserify\main.js'
Watchpack Error (initial scan): Error: ENOTDIR: not a directory, scandir 'E:\MyWork\19\Dean\Frontend\codsland\node_modules\next\dist\compiled\stream-browserify\index.js'
Watchpack Error (initial scan): Error: ENOTDIR: not a directory, scandir 'E:\MyWork\19\Dean\Frontend\codsland\node_modules\next\dist\compiled\util\util.js'
error - ./node_modules/@discordjs/ws/dist/index.js:113:0
Module not found: Can't resolve 'worker_threads'
Import trace for requested module:
./node_modules/discord.js/src/index.js
./pages/home-feed.js
24 replies
DIAdiscord.js - Imagine an app
•Created by OliverJansen on 12/17/2023 in #djs-questions
Create invite links to the server automatically by bot
I created a server for test so I am the owner. So I have permission, right? How can I do that? And I can't even use require('discord.js'). I will show you the error message.
24 replies
DIAdiscord.js - Imagine an app
•Created by OliverJansen on 12/17/2023 in #djs-questions
Create invite links to the server automatically by bot
"Discord does not condone bots creating invites without the expressed consent of the guild owner/admins."
Who is guild owner/admins and how can I get expressed consent?
24 replies
DIAdiscord.js - Imagine an app
•Created by OliverJansen on 12/17/2023 in #djs-questions
Create invite links to the server automatically by bot
Can you help me?
24 replies
DIAdiscord.js - Imagine an app
•Created by OliverJansen on 12/17/2023 in #djs-questions
Create invite links to the server automatically by bot
I want to do this in react automatically - just when user refreshes the page, there is a link on the screen and that link is exactly the same of when user right click and select invite to server in Discord.
24 replies
DIAdiscord.js - Imagine an app
•Created by OliverJansen on 12/17/2023 in #djs-questions
Create invite links to the server automatically by bot
In discord, you right click other member and select create invite to server, and select specific server. Then message is generated with a link of invite to that server.
24 replies
DIAdiscord.js - Imagine an app
•Created by OliverJansen on 12/17/2023 in #djs-questions
Create invite links to the server automatically by bot
Oh... I just want to generate an invite link.
24 replies
DIAdiscord.js - Imagine an app
•Created by OliverJansen on 12/17/2023 in #djs-questions
Create invite links to the server automatically by bot
I have an error. I can't require('discord.js') because of error.
24 replies