Follow the steps below to redeem YouTube Premium Code from Discord:
Go to your Discord Nitro account and sign in.
Look into the options.
Select the Gift Inventory option.
Go to Youtube Premium and select it.
Your Youtube Premium redemption code will be sent to you.
Go to Youtube.com/redeem now.
Use your Google account to log in.