Here is the error:
I didn’t do anything different except bot permissions and secret.
Can you share the link to your Repl?
In v14 you now use UpperCamelCase for intents, e.g. GUILDS
→ Guilds
Remove the comma after the array or just replace it with this
const client = new Discord.Client({intents: ["GUILDS", "GUILD_MESSAGES"]});