Your 18-digit code is tied to your account, allowing a uniform way to find users, messages, and servers since every user, message, and Discord server offers a unique Discord ID.