why don t save “set discord”
Try putting quotes around the invite ("https://discord.gg/aaaaaa") and also try using an actual discord invite instead of something at “invite.gg”
"https://discord.gg/aaaaaa"