hasRead.lua 574 B

12345678910111213141516171819202122232425262728
  1. return {
  2. summary = 'Get whether a message has been read.',
  3. description = [[
  4. Returns whether or not the message with the given ID has been read. Every call to
  5. `Channel:push` returns a message ID.
  6. ]],
  7. arguments = {
  8. id = {
  9. type = 'number',
  10. description = 'The ID of the message to check.'
  11. }
  12. },
  13. returns = {
  14. read = {
  15. type = 'boolean',
  16. description = 'Whether the message has been read.'
  17. }
  18. },
  19. variants = {
  20. {
  21. arguments = { 'id' },
  22. returns = { 'read' }
  23. }
  24. },
  25. related = {
  26. 'Channel:push'
  27. }
  28. }