Help with discord music bot

I’ve been trying to make a discord music bot for a few hours and keep on getting the same error about my Youtube API key not being a string.

Error: The YouTube API key you provided was not a string.
9:30 PM
at new YouTube (/rbd/pnpm-volume/688e15ef-7600-4bb6-833b-03c9182fe182/node_modules/.registry.npmjs.org/simple-youtube-api/5.2.1/node_modules/simple-youtube-api/src/index.js:26:44)
Jump Toat Object. (/app/index.js:16:17)
at Module._compile (internal/modules/cjs/loader.js:759:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:826:10)
at internal/main/run_main_module.js:17:11

Go to this thread Click here., hope this helps.

Make sure you provided a correct token and have stored it in the correct format.