summary refs log tree commit diff
path: root/dist/gateway/src/schema/Activity.js
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-10 20:59:58 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-10 20:59:58 +0100
commit3d54ed476240702812caf0b6e1ce94bfb0329cb5 (patch)
tree9f928dee5023de75b22d6b99c25c3c3fd967da7f /dist/gateway/src/schema/Activity.js
parentexport event (diff)
downloadserver-3d54ed476240702812caf0b6e1ce94bfb0329cb5.tar.xz
fix models + move schemas in api and gateway
Diffstat (limited to 'dist/gateway/src/schema/Activity.js')
-rw-r--r--dist/gateway/src/schema/Activity.js44
1 files changed, 44 insertions, 0 deletions
diff --git a/dist/gateway/src/schema/Activity.js b/dist/gateway/src/schema/Activity.js
new file mode 100644

index 00000000..cbca224c --- /dev/null +++ b/dist/gateway/src/schema/Activity.js
@@ -0,0 +1,44 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActivitySchema = void 0; +const Emoji_1 = require("./Emoji"); +exports.ActivitySchema = { + afk: Boolean, + status: String, + $activities: [ + { + name: String, + type: Number, + $url: String, + $created_at: Number, + $timestamps: { + // unix timestamps for start and/or end of the game + start: Number, + end: Number, + }, + $application_id: BigInt, + $details: String, + $State: String, + $emoji: Emoji_1.EmojiSchema, + $party: { + $id: String, + $size: [Number], + }, + $assets: { + $large_image: String, + $large_text: String, + $small_image: String, + $small_text: String, + }, + $secrets: { + $join: String, + $spectate: String, + $match: String, + }, + $instance: Boolean, + flags: BigInt, + }, + ], + $since: Number, +}; +//# sourceMappingURL=Activity.js.map \ No newline at end of file