mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-08 06:48:04 +03:00
Update webhook events to fire game and playtype
This commit is contained in:
@@ -72,7 +72,7 @@ export async function UpdateClassIfGreater(
|
||||
if (isGreater === null) {
|
||||
EmitWebhookEvent({
|
||||
type: "class-update/v1",
|
||||
content: { userID, new: classVal, old: null, set: classSet },
|
||||
content: { userID, new: classVal, old: null, set: classSet, game, playtype },
|
||||
});
|
||||
|
||||
return null;
|
||||
@@ -84,6 +84,8 @@ export async function UpdateClassIfGreater(
|
||||
new: classVal,
|
||||
old: userGameStats!.classes[classSet]!,
|
||||
set: classSet,
|
||||
game,
|
||||
playtype,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user