Hey so when I shut down my laptop I always close all windows but when I start it it is immediately in discord so the laptop opens immediately discord how can I switch it off
Either you deactivate the Autostart of Discord in the Windows Task Manager or go to the User Settings in Discord, there you can set under Windows Settings (at the bottom) that Discord should start minimized (i.e. Should start when the PC boots, but only below should be displayed in the system tray next to the clock)
I'm assuming that you use Windows.
You have to open your task manager (you can do this by searching for it using the Windows key or by right-clicking on your taskbar).
Then you should see one point with "Autostart", in this you can select Discord and deactivate the autostart.
I assume you have Windows (10), then you need to do the following:
Press the Windows key -> open settings -> select apps -> go to autostart -> remove by moving the latch whether the app / discord starts up immediately when your laptop starts
In the settings