If you were in a position of responsibility or had a special role in the server, it's courteous to notify a server admin privately before you leave. Let them know you're departing and provide any necessary information they need to know. Learn more about roles and how they work in this guide about adding roles in Discord.