A simple discord WebSocket message log, for API debugging and reference purpose. Source code is available at the DiscordLogger GitHub repository. Questions and requests should be directed there.

Query Database

Database Schema

There's a single table available called "message" with the following colums:

Name Type Description
id INT KEY Unique record id.
dir TINYINT NOT NULL Direction of communication. 0=received, 1=sent.
time TIMESTAMP NOT NULL The time the record was received by the client.
op INT Value of the "op" property when available.
s INT Value of the "s" property when available.
t VARCHAR(255) Value of the "t" property when available.
raw TEXT Raw JSON string received/sent on the WebSocket.

Result columns with the name "raw" or "dir" is treated specially when displayed. The "raw" column is decoded as JSON, and encoded again with indents for readability before being rendered in a <pre> tag, and the "dir" column has values of 0 replaced with "Receive" and values of 1 replaced with "Send".