Skip to content
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

MessageMixin only works for message updates. #124

Closed
HeySreelal opened this issue Jul 8, 2023 · 1 comment
Closed

MessageMixin only works for message updates. #124

HeySreelal opened this issue Jul 8, 2023 · 1 comment
Assignees
Labels
bug Something isn't working televerse Televerse core update

Comments

@HeySreelal
Copy link
Owner

Although the MessageContext will be utilized for various updates such as message, channel_post, edited_message, and edited_channel_post, all the methods within MessageMixin relied solely on the message.

As a result, an error would be thrown whenever any of those methods were invoked for updates other than the message.

@HeySreelal HeySreelal added bug Something isn't working televerse Televerse core update labels Jul 8, 2023
@HeySreelal HeySreelal self-assigned this Jul 8, 2023
@HeySreelal
Copy link
Owner Author

Stack Trace when this exception has happened:

Unhandled exception:
Null check operator used on a null value
#0      MessageMixin._msg (package:televerse/src/televerse/context/mixins/message_mixin.dart:687:37)
#1      MessageMixin.reply (package:televerse/src/televerse/context/mixins/message_mixin.dart:28:43)
#2      main.<anonymous closure> (file:///Users/sreelalts/Desktop/dev/televersetest/bin/televersetest.dart:9:11)
#3      Televerse._onUpdate (package:televerse/src/televerse/televerse.dart:210:28)
#4      _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
#5      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#6      _DelayedData.perform (dart:async/stream_impl.dart:515:14)
#7      _PendingEvents.handleNext (dart:async/stream_impl.dart:620:11)
#8      _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:591:7)
#9      _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
#10     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
#11     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:123:13)
#12     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:405:11)
#13     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
#14     _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working televerse Televerse core update
Projects
None yet
Development

No branches or pull requests

1 participant