Skip to content

Commit bff522e

Browse files
authored
feat: return updated poll on cast/remove poll vote (#229)
1 parent 81bb24c commit bff522e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/gen/model-decoders/decoders.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3355,6 +3355,8 @@ decoders.PollVote = (input?: Record<string, any>) => {
33553355

33563356
decoders.PollVoteResponse = (input?: Record<string, any>) => {
33573357
const typeMappings: TypeMapping = {
3358+
poll: { type: 'PollResponseData', isSingle: true },
3359+
33583360
vote: { type: 'PollVoteResponseData', isSingle: true },
33593361
};
33603362
return decode(typeMappings, input);

src/gen/models/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9317,6 +9317,8 @@ export interface PollVote {
93179317
export interface PollVoteResponse {
93189318
duration: string;
93199319

9320+
poll?: PollResponseData;
9321+
93209322
vote?: PollVoteResponseData;
93219323
}
93229324

0 commit comments

Comments
 (0)