ErythroGuild / irene

<Erythro>'s server admin bot.
Mozilla Public License 2.0
0 stars 0 forks source link

Update to D#+ 4.4 #498

Closed Ernest314 closed 11 months ago

Ernest314 commented 11 months ago

Upgrade notes from the D#+ discord announcements:

IF you previously had an interaction event handler that uncritically acknowledged every single event while also using button interactivity, your code will likely break. make sure you only ack events you actually handle (this should be done regardless).

IF you previously had two event handlers, handling the same event and relying on sequentiality, your code will break. this is an intentional breaking change we took in order to get the benefits from this change. you will have to either register only one handler handling all your logic in sequence, or manage state yourself.

furthermore, this eliminates the "event handlers should not run for longer than one second" restriction. if you previously wrapped your event handler logic in a Task.Run, you are now free to remove it.

(see also: #174)