(state, target = "")
| 1035 | if (typeof args === "string") |
| 1036 | return args; |
| 1037 | if (Array.isArray(args)) |
| 1038 | return args.map(commandArgsText).join(" "); |
| 1039 | if (typeof args === "object") { |
| 1040 | for (const key of ["arguments", "args", "message", "text", "value"]) { |
| 1041 | if (args[key] !== undefined) |
| 1042 | return commandArgsText(args[key]); |
| 1043 | } |
| 1044 | } |
| 1045 | return String(args); |
| 1046 | } |
no test coverage detected