diff --git a/project/src/callbacks/MatchCallbacks.ts b/project/src/callbacks/MatchCallbacks.ts index b4e6f87a..f133f890 100644 --- a/project/src/callbacks/MatchCallbacks.ts +++ b/project/src/callbacks/MatchCallbacks.ts @@ -9,6 +9,7 @@ import { IAcceptGroupInviteRequest } from "@spt-aki/models/eft/match/IAcceptGrou import { IAcceptGroupInviteResponse } from "@spt-aki/models/eft/match/IAcceptGroupInviteResponse"; import { ICancelGroupInviteRequest } from "@spt-aki/models/eft/match/ICancelGroupInviteRequest"; import { ICreateGroupRequestData } from "@spt-aki/models/eft/match/ICreateGroupRequestData"; +import { IDeclineGroupInviteRequest } from "@spt-aki/models/eft/match/IDeclineGroupInviteRequest"; import { IEndOfflineRaidRequestData } from "@spt-aki/models/eft/match/IEndOfflineRaidRequestData"; import { IGetGroupStatusRequestData } from "@spt-aki/models/eft/match/IGetGroupStatusRequestData"; import { IGetGroupStatusResponse } from "@spt-aki/models/eft/match/IGetGroupStatusResponse"; @@ -90,6 +91,17 @@ export class MatchCallbacks return this.httpResponse.getBody(result); } + /** Handle client/match/group/invite/decline */ + // eslint-disable-next-line @typescript-eslint/no-unused-vars + public declineGroupInvite( + url: string, + info: IDeclineGroupInviteRequest, + sessionID: string, + ): IGetBodyResponseData + { + return null; + } + /** Handle client/match/group/invite/cancel */ // eslint-disable-next-line @typescript-eslint/no-unused-vars public cancelGroupInvite( diff --git a/project/src/models/eft/match/IDeclineGroupInviteRequest.ts b/project/src/models/eft/match/IDeclineGroupInviteRequest.ts new file mode 100644 index 00000000..8114fd20 --- /dev/null +++ b/project/src/models/eft/match/IDeclineGroupInviteRequest.ts @@ -0,0 +1,3 @@ +export interface IDeclineGroupInviteRequest +{ +} diff --git a/project/src/routers/static/MatchStaticRouter.ts b/project/src/routers/static/MatchStaticRouter.ts index 3b2f5ec1..7130ba7a 100644 --- a/project/src/routers/static/MatchStaticRouter.ts +++ b/project/src/routers/static/MatchStaticRouter.ts @@ -94,6 +94,13 @@ export class MatchStaticRouter extends StaticRouter return this.matchCallbacks.acceptGroupInvite(url, info, sessionID); }, ), + new RouteAction( + "/client/match/group/invite/decline", + (url: string, info: any, sessionID: string, output: string): any => + { + return this.matchCallbacks.declineGroupInvite(url, info, sessionID); + }, + ), new RouteAction( "/client/match/group/invite/cancel", (url: string, info: any, sessionID: string, output: string): any =>