v53

latestOpenAPI 3.1.0AGPLV3raw.githubusercontent.com2026-08-033464331015.5 KB
api

get/api/users/{user_id}/messages/

Path parameters

user_idstring required

user_id

Response

idstring required

A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z

If we have a snowflake '266241948824764416' we can represent it as binary:

64                                          22     17     12          0
 000000111011000111100001101001000101000000  00001  00000  000000000000
      number of ms since Discord epoch       worker  pid    increment
channel_idstring required
type0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 255 required
contentstring required
flagsinteger
application_idstring