If you want to change owner of your Discord Server, this tutorial might be helpful to you.
First of all, open the server settings. You can do that by clicking the dropdown right next to the server name and selecting “Server Settings”.
Now, select the “Members” tab on the left side. You now see a list of all members on your server.
Now search for the member you want to make owner. Hover over it and click the three dots.
Click on the “Transfer Ownership” button.
Now, confirm the ownership change by clicking the toggle and finally clicking “Transfer Ownership”. If you have 2-factor-authentication activated, you may need to enter your current 2-fa-code.
That’s it, your friend is now the owner of the Discord server.