-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat/implement message poll #212
base: develop
Are you sure you want to change the base?
Conversation
export 'package:mineral/src/domains/events/contracts/server/server_presence_update_event.dart'; | ||
export 'package:mineral/src/domains/events/contracts/server/server_role_select_event.dart'; | ||
export 'package:mineral/src/domains/events/contracts/server/server_roles_create_event.dart'; | ||
export 'package:mineral/src/domains/events/contracts/server/server_roles_remove_event.dart'; | ||
export 'package:mineral/src/domains/events/contracts/server/server_roles_update_event.dart'; | ||
export 'package:mineral/src/domains/events/contracts/server/server_stickers_update_event.dart'; | ||
export 'package:mineral/src/domains/events/contracts/server/server_text_select_event.dart'; | ||
export 'package:mineral/src/domains/events/contracts/server/server_update_event.dart'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove server update event export ?
@override | ||
String? customId; | ||
|
||
FutureOr<void> handle(PrivateMessage message, User user, int answer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't give directly PollAnswer object instead of int ?
@override | ||
String? customId; | ||
|
||
FutureOr<void> handle(PrivateMessage message, User user, int answer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
@override | ||
String? customId; | ||
|
||
FutureOr<void> handle(ServerMessage message, Member member, int answer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
@override | ||
String? customId; | ||
|
||
FutureOr<void> handle(ServerMessage message, Member member, int answer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
@@ -98,6 +102,10 @@ enum Event implements EnhancedEnum, EventType { | |||
['ThreadChannel thread', 'Server server', 'Member member']), | |||
serverThreadListSync(ServerThreadListSyncEvent, | |||
['List<ThreadChannel> threads', 'Server server']), | |||
serverPollVoteAdd(ServerPollVoteAddEvent, | |||
['ServerMessage message', 'Member member', 'String answer']), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You give as a "String answer", but you give really as int
@@ -107,6 +107,8 @@ final class Shard implements ShardContract { | |||
onceEventQueue.add(jsonDecode(message.originalContent)); | |||
} | |||
|
|||
print(json.encode((message.content as ShardMessage).payload)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove print debug
No description provided.