I can't test this right now, but I have a suspicion that you need to set the argtypes and restype properties of the ObjC method manually. The derivation from the protocols argument doesn't always work reliably if the protocol isn't used as part of Pythonista itself. I hope this makes sense.
I completely forgot about argtypes and restype honestly. It makes sense, I will keep trying to find out correct argtypes. Thanks for your suggestion. Please let me know once you test.
The Dropbox SDK will only manage files when connected, correct? So just to clarify, there is no workflow or other offline equivalent to either swiping left on a file to delete, or using the in-editor feature to rename a file.?
@dgelessus thanks that helps a lot, and makes a lot sense. I'll make sure to not use input() on version 2. Even though I was just making files to mess around with not for any real purpose. Thanks a lot for explaining it.
@iacoposk8 This would be a good use of pdb, since you could look at what you are appending each cycle in the loop. Or, just print out something in each loop such as part.shape. I wonder if this isn't just a display issue (things getting overwritten or omitted?)... have you actually checked the type/sizes of the elements in x?
I'm afraid you probably won't get many helpful responses here, because discord.py has nothing to do with Pythonista, and because Pythonista isn't the best platform to run a Discord bot on. You'll probably get more help if you ask on a site like Stack Overflow, or on a discussion site for discord.py. Maybe there is a Discord server for discord.py. :)