Hello,
You’re right. The hacker has accessed your account, removed your email address (alias) from your Microsoft account, and replaced it with their own. If that happens, you can no longer use the removed email address to sign in.
**IMPORTANT NOTE: Discord phishing scams are common, and users have reported losing access to their accounts after falling for them. Be cautious about the websites where you enter your information, and never share a verification code. Microsoft will not verify your account through Discord. Any Discord bot or server asking for a Microsoft verification code is a phishing scam
As your account information has been changed, you may not be able to use the standard account recovery form. Instead, submit a recovery request to the Xbox Support team using the link below. The team can review your account and help with the account recovery process even if your information has been modified.
https://support.xbox.com/en-US/forms/recover-your-microsoft-account