djs-model 0.1.0-alpha.2

Discord API v10 types — users, guilds, channels, messages, interactions and gateway events.
Documentation
[
  {
    "heading": "Example Interaction",
    "interaction": {
      "type": 2,
      "token": "A_UNIQUE_TOKEN",
      "member": {
        "user": {
          "id": "53908232506183680",
          "username": "Mason",
          "avatar": "a_d5efa99b3eeaa7dd43acca82f5692432",
          "discriminator": "1337",
          "public_flags": 131141
        },
        "roles": [
          "539082325061836999"
        ],
        "premium_since": null,
        "permissions": "2147483647",
        "pending": false,
        "nick": null,
        "mute": false,
        "joined_at": "2017-03-13T19:19:14.040000+00:00",
        "is_pending": false,
        "deaf": false
      },
      "id": "786008729715212338",
      "guild_id": "290926798626357999",
      "app_permissions": "442368",
      "guild_locale": "en-US",
      "locale": "en-US",
      "data": {
        "options": [
          {
            "type": 3,
            "name": "cardname",
            "value": "The Gitrog Monster"
          }
        ],
        "type": 1,
        "name": "cardsearch",
        "id": "771825006014889984"
      },
      "channel_id": "645027906669510667"
    }
  },
  {
    "heading": "Example Interaction",
    "interaction": {
      "application_id": "775799577604522054",
      "channel_id": "772908445358620702",
      "data": {
        "id": "866818195033292850",
        "name": "context-menu-user-2",
        "resolved": {
          "members": {
            "809850198683418695": {
              "avatar": null,
              "is_pending": false,
              "joined_at": "2021-02-12T18:25:07.972000+00:00",
              "nick": null,
              "pending": false,
              "permissions": "246997699136",
              "premium_since": null,
              "roles": []
            }
          },
          "users": {
            "809850198683418695": {
              "avatar": "afc428077119df8aabbbd84b0dc90c74",
              "bot": true,
              "discriminator": "7302",
              "id": "809850198683418695",
              "public_flags": 0,
              "username": "VoltyDemo"
            }
          }
        },
        "target_id": "809850198683418695",
        "type": 2
      },
      "guild_id": "772904309264089089",
      "guild_locale": "en-US",
      "app_permissions": "442368",
      "id": "867794291820986368",
      "locale": "en-US",
      "member": {
        "avatar": null,
        "deaf": false,
        "is_pending": false,
        "joined_at": "2020-11-02T20:46:57.364000+00:00",
        "mute": false,
        "nick": null,
        "pending": false,
        "permissions": "274877906943",
        "premium_since": null,
        "roles": [
          "785609923542777878"
        ],
        "user": {
          "avatar": "a_f03401914fb4f3caa9037578ab980920",
          "discriminator": "6538",
          "id": "167348773423415296",
          "public_flags": 1,
          "username": "ian"
        }
      },
      "token": "UNIQUE_TOKEN",
      "type": 2,
      "version": 1
    }
  },
  {
    "heading": "Example Interaction",
    "interaction": {
      "application_id": "775799577604522054",
      "channel_id": "772908445358620702",
      "data": {
        "id": "866818195033292851",
        "name": "context-menu-message-2",
        "resolved": {
          "messages": {
            "867793854505943041": {
              "attachments": [],
              "author": {
                "avatar": "a_f03401914fb4f3caa9037578ab980920",
                "discriminator": "6538",
                "id": "167348773423415296",
                "public_flags": 1,
                "username": "ian"
              },
              "channel_id": "772908445358620702",
              "components": [],
              "content": "some message",
              "edited_timestamp": null,
              "embeds": [],
              "flags": 0,
              "id": "867793854505943041",
              "mention_everyone": false,
              "mention_roles": [],
              "mentions": [],
              "pinned": false,
              "timestamp": "2021-07-22T15:42:57.744000+00:00",
              "tts": false,
              "type": 0
            }
          }
        },
        "target_id": "867793854505943041",
        "type": 3
      },
      "guild_id": "772904309264089089",
      "guild_locale": "en-US",
      "app_permissions": "442368",
      "id": "867793873336926249",
      "locale": "en-US",
      "member": {
        "avatar": null,
        "deaf": false,
        "is_pending": false,
        "joined_at": "2020-11-02T20:46:57.364000+00:00",
        "mute": false,
        "nick": null,
        "pending": false,
        "permissions": "274877906943",
        "premium_since": null,
        "roles": [
          "785609923542777878"
        ],
        "user": {
          "avatar": "a_f03401914fb4f3caa9037578ab980920",
          "discriminator": "6538",
          "id": "167348773423415296",
          "public_flags": 1,
          "username": "ian"
        }
      },
      "token": "UNIQUE_TOKEN",
      "type": 2,
      "version": 1
    }
  }
]