Hello, I have a Yaml file from which I am loading a list. I would like to use this list as choices for my SlashCommand.
SlashCommand: py @slash_command(name="test-yaml") async def testyaml(self, ctx, choice: Option(choices=YAMLDATAHERE): print(choice)
GetDataFromYaml: py with open('data.yaml', 'r') as file: data = yaml.safe_load(file) airports = data.get('Flughäfen', [])