{"_id":"575a4171d5797e0e0075183d","version":{"_id":"57590727ace5c30e00cb23d7","__v":2,"project":"571193ce8103870e00f48b67","createdAt":"2016-06-09T06:05:27.924Z","releaseDate":"2016-06-09T06:05:27.924Z","categories":["57590727ace5c30e00cb23d8","57590cd318760817001e8a83"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"4.0.0","version":"4.0.0"},"category":{"_id":"57590cd318760817001e8a83","__v":0,"project":"571193ce8103870e00f48b67","version":"57590727ace5c30e00cb23d7","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-06-09T06:29:39.417Z","from_sync":false,"order":1,"slug":"parts","title":"Parts"},"project":"571193ce8103870e00f48b67","user":"571193c63590a50e00bba99d","__v":6,"updates":["57b5f6d43e71f3200093adf0"],"next":{"pages":[],"description":""},"createdAt":"2016-06-10T04:26:25.511Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":999,"body":"The message object contains information about text messages sent to a text channel.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Attributes\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Name\",\n    \"h-1\": \"Description\",\n    \"h-2\": \"Type\",\n    \"0-0\": \"id\",\n    \"2-0\": \"channel_id\",\n    \"3-0\": \"content\",\n    \"4-0\": \"mentions\",\n    \"5-0\": \"author\",\n    \"6-0\": \"mention_everyone\",\n    \"7-0\": \"timestamp\",\n    \"8-0\": \"edited_timestamp\",\n    \"9-0\": \"tts\",\n    \"10-0\": \"attachments\",\n    \"11-0\": \"embeds\",\n    \"12-0\": \"nonce\",\n    \"13-0\": \"mention_roles\",\n    \"0-1\": \"The unique identifier of the message.\",\n    \"0-2\": \"snowflake\",\n    \"2-1\": \"The unique identifier of the [Channel](doc:channel) that the message was sent to.\",\n    \"2-2\": \"snowflake\",\n    \"3-1\": \"The text content of the message.\",\n    \"3-2\": \"string\",\n    \"4-1\": \"An array of mentions.\",\n    \"4-2\": \"array[object]\",\n    \"5-1\": \"The author of the message.\",\n    \"5-2\": \"[User](doc:user)\",\n    \"6-1\": \"Whether the message had an `:::at:::everyone` call.\",\n    \"6-2\": \"bool\",\n    \"7-1\": \"The time the message was sent.\",\n    \"7-2\": \"Carbon\",\n    \"8-1\": \"The time the message was edited (if it was edited).\",\n    \"8-2\": \"Carbon or `null`\",\n    \"9-1\": \"Whether the message was sent as text-to-speech.\",\n    \"9-2\": \"bool\",\n    \"10-1\": \"An array of attachments.\",\n    \"10-2\": \"array[object]\",\n    \"11-1\": \"An array of embeds.\",\n    \"11-2\": \"array[object]\",\n    \"12-1\": \"Used for validating a message was sent properly.\",\n    \"12-2\": \"string\",\n    \"13-1\": \"Whether the message mentioned a role.\",\n    \"13-2\": \"bool\",\n    \"1-0\": \"channel\",\n    \"1-1\": \"The [Channel](doc:channel) the message was sent to.\",\n    \"1-2\": \"[Channel](doc:channel)\"\n  },\n  \"cols\": 3,\n  \"rows\": 14\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"fn\",\n  \"title\": \"reply($text)\"\n}\n[/block]\nSends a reply to the channel in the format `@author-of-message, {$text}`.\n\nReturns a Promise with a Message.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Parameter\",\n    \"h-1\": \"Description\",\n    \"h-2\": \"Type\",\n    \"0-0\": \"`$text`\",\n    \"0-1\": \"The text to send to the channel.\",\n    \"0-2\": \"`string`\"\n  },\n  \"cols\": 3,\n  \"rows\": 1\n}\n[/block]","excerpt":"A message is the container for a text message/file sent to a text channel.","slug":"message","type":"basic","title":"Message"}

Message

A message is the container for a text message/file sent to a text channel.

The message object contains information about text messages sent to a text channel. [block:api-header] { "type": "basic", "title": "Attributes" } [/block] [block:parameters] { "data": { "h-0": "Name", "h-1": "Description", "h-2": "Type", "0-0": "id", "2-0": "channel_id", "3-0": "content", "4-0": "mentions", "5-0": "author", "6-0": "mention_everyone", "7-0": "timestamp", "8-0": "edited_timestamp", "9-0": "tts", "10-0": "attachments", "11-0": "embeds", "12-0": "nonce", "13-0": "mention_roles", "0-1": "The unique identifier of the message.", "0-2": "snowflake", "2-1": "The unique identifier of the [Channel](doc:channel) that the message was sent to.", "2-2": "snowflake", "3-1": "The text content of the message.", "3-2": "string", "4-1": "An array of mentions.", "4-2": "array[object]", "5-1": "The author of the message.", "5-2": "[User](doc:user)", "6-1": "Whether the message had an `@everyone` call.", "6-2": "bool", "7-1": "The time the message was sent.", "7-2": "Carbon", "8-1": "The time the message was edited (if it was edited).", "8-2": "Carbon or `null`", "9-1": "Whether the message was sent as text-to-speech.", "9-2": "bool", "10-1": "An array of attachments.", "10-2": "array[object]", "11-1": "An array of embeds.", "11-2": "array[object]", "12-1": "Used for validating a message was sent properly.", "12-2": "string", "13-1": "Whether the message mentioned a role.", "13-2": "bool", "1-0": "channel", "1-1": "The [Channel](doc:channel) the message was sent to.", "1-2": "[Channel](doc:channel)" }, "cols": 3, "rows": 14 } [/block] [block:api-header] { "type": "fn", "title": "reply($text)" } [/block] Sends a reply to the channel in the format `@author-of-message, {$text}`. Returns a Promise with a Message. [block:parameters] { "data": { "h-0": "Parameter", "h-1": "Description", "h-2": "Type", "0-0": "`$text`", "0-1": "The text to send to the channel.", "0-2": "`string`" }, "cols": 3, "rows": 1 } [/block]