So I am building a discord bot which is using google sheets like a database. I would like the user to be able to enter a command with a unique ID which every row will have and then return all the values of said row and store than as a variable. which will then later be used elsewhere.
The command the user would run is ">Read (UNIQUEID)", then I would like the bot to reply with, "(UNIQUEID) has been found" if it is found and "(UNIQUEID) can not be found".
The user would then use the second command ">Upload" to essentially upload that entire row to a new spreadsheet.
I am confident I can finish the >Upload code by myself, but for the life of me I dont know how to query using the google sheets api. for some reference below I have attached an image of my sheet I want to read from.
There would also be a lot more information in the google sheet, but for testing purposes I left it with only one entry.
Edit 1: I have been looking into the Google Visualization API, I did a bit of research but Im not sure this would actually work with sheets? From some of the documentation it seems like its for charts..
Google Sheet To Read Fromis the sample Spreadsheet. If that is used, can I ask you about the expected input and output values?