hasRead.lua 515 B

123456789101112131415161718192021222324
  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. {
  9. name = 'id',
  10. type = 'number',
  11. description = 'The ID of the message to check.'
  12. }
  13. },
  14. returns = {
  15. {
  16. name = 'read',
  17. type = 'boolean',
  18. description = 'Whether the message has been read.'
  19. }
  20. },
  21. related = {
  22. 'Channel:push'
  23. }
  24. }