| 320 | }) |
| 321 | |
| 322 | function signaturesForCommand (string, ts, salt, preview, acknowledgements) { |
| 323 | const signatures = [] |
| 324 | const slices = string.split(' ') |
| 325 | if (sliceIndexForMessage[slices[0]]) { |
| 326 | const [fieldName, sliceIndex] = sliceIndexForMessage[slices[0]] |
| 327 | const sliced = slices.slice(sliceIndex) |
| 328 | if (sliced.length > 0) { |
| 329 | const signable = sliced.join(' ') |
| 330 | signatures.push({ argumentName: fieldName, signature: client.signMessage(signable, ts, salt, preview, acknowledgements) }) |
| 331 | } |
| 332 | } |
| 333 | return signatures |
| 334 | } |
| 335 | |
| 336 | // Chat Sending |
| 337 | let pendingChatRequest |