#Command raised an exception: PermissionError: [Errno 13] Permission denied: 'temp_guilds'
1 messages · Page 1 of 1 (latest)
or perhaps where it's executing, it literally doesn't have permissiions
are you running this locally, on an VPS, what?
I have already checked all your assumptions, they turned out to be incorrect
locally
does the user that is running the code have permissions to create a directory?
There is, and the bot successfully creates a folder, but in the future it cannot get it and attach it to the message
so when the folder doesn't exist, it successfully runs or not?
yes
then it's erroring because the folder already exists. Either delete it when you're done with it, or add dirs_exist_ok=True as a kwarg to shutil.copytree()
It's not about that. Perhaps you misunderstood me. Let me explain again: when the folder exists, an error pops up stating that the program does not have the rights to get this folder and attach it to the message, when the folder does not exist, it is created and an identical error pops up again