This repository has been archived by the owner on Aug 28, 2020. It is now read-only.
Proposal: Non overriding events #432
Labels
Mod: Loader
Issues and PRs related to the loader.
Type: Caching
Issues and PRs related to caching.
Type: Question
Issues that do not belong to the Issue Tracker and should be asked in the official Discord Server.
Describe your proposal
An event option to prevent an event from overriding the built-in core event if provided.
Use-Cases for your proposal
You could have both the core event functional, and a personal event without one being overridden.
Expected and actual behavior
An event with the option
override: false
will not override a core event.Further details
By default all events's override option would default to true, to keep the current functionality the same and not break things, and allow users to create events that do not override core events, Ex.
The core message event working
A personal message event with
override: false
, doing something completely different than the core event.This keeps the core events in-framework, keeps them up to date with the framework, rather than having to require users to copy all the code from events they need access to into their events then keep that code up to date, when they never modify the code in the first place.
Another possible configuration would be, Ex.
A message event with
override: true
(default) that overrides the core event, that you would copy and modify the core event's code into, to modify the functionality,Then allow you to add a second event with
override: false
that has an entirely different use, doesn't contain the core event code or any variant, and both of them function.The text was updated successfully, but these errors were encountered: