File tree Expand file tree Collapse file tree 4 files changed +19
-0
lines changed Expand file tree Collapse file tree 4 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 1+ import { Command } from '../generated/schemas' ;
2+ import { schemaCommandFactory } from '../utils/commandFactory' ;
3+
4+ export const getQuestEnrollmentStatus = schemaCommandFactory ( Command . GET_QUEST_ENROLLMENT_STATUS ) ;
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ import {getInstanceConnectedParticipants} from './getInstanceConnectedParticipan
2424import { getRelationships } from './getRelationships' ;
2525import { inviteUserEmbedded } from './inviteUserEmbedded' ;
2626import { getUser } from './getUser' ;
27+ import { getQuestEnrollmentStatus } from './getQuestEnrollmentStatus' ;
28+ import { questStartTimer } from './questStartTimer' ;
2729
2830export { Commands , SetActivity } ;
2931
@@ -52,6 +54,8 @@ function commands(sendCommand: TSendCommand) {
5254 getRelationships : getRelationships ( sendCommand ) ,
5355 inviteUserEmbedded : inviteUserEmbedded ( sendCommand ) ,
5456 getUser : getUser ( sendCommand ) ,
57+ getQuestEnrollmentStatus : getQuestEnrollmentStatus ( sendCommand ) ,
58+ questStartTimer : questStartTimer ( sendCommand ) ,
5559 } ;
5660}
5761
Original file line number Diff line number Diff line change 1+ import { Command } from '../generated/schemas' ;
2+ import { schemaCommandFactory } from '../utils/commandFactory' ;
3+
4+ export const questStartTimer = schemaCommandFactory ( Command . QUEST_START_TIMER ) ;
Original file line number Diff line number Diff line change @@ -192,4 +192,11 @@ export const commandsMockDefault: IDiscordSDK['commands'] = {
192192 avatar : null ,
193193 } ) ;
194194 } ,
195+ getQuestEnrollmentStatus : ( ) =>
196+ Promise . resolve ( {
197+ quest_id : 'mock_quest_id' ,
198+ is_enrolled : false ,
199+ enrolled_at : null ,
200+ } ) ,
201+ questStartTimer : ( ) => Promise . resolve ( { success : true } ) ,
195202} ;
You can’t perform that action at this time.
0 commit comments