I need to store multiple values inside of one variable, so i thought the best way of doing something like this would be with a dictionary. I'm just wondering how I would do this.
I want to pass in in first input message id, where in a .json file it will create this
"(message id)" = {}
basically creating a dictionary with no content next.
Then I want to be able to pass in value1
and value2
and put them in the dictionary like this:
"(message id)" = {value1 = value2}
And then I should be able to repeat this over and over again so that i have a value3 = value4
etc
I only know how to use json to do simple dictionaries like this:
{
value1 = value2,
value3 = value4
}
I just want to be able to put the dictionary into the variable. Thanks. This is all for a discord bot reaction role so i can make message id the message id and then the value 1 and 2's are the reaction and the role it gives