Avatar
norio_nomura 4/22/2018 7:07 AM
なぜ message2でだけas [String : Any]が必要だと言われるのだろう? @swift-4.1.3 let content = "" let fields = [["name": "stdout.txt", "value": ""]] let message1 = fields.isEmpty ? ["content": content] : ["content": content, "embed": ["fields": fields]] let message2 = ["content": content, "embed": ["fields": fields]]