(v4.2) Open Discord Framework Update (Part 2)
Replaced all "Default" classes & types with ID mappings & improved types. Updated Interactive Setup CLI & certain events, renamed ODStat's to ODStatistics. Moved many classes, types & interfaces to the framework
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import {opendiscord, api, utilities} from "../../index"
|
||||
|
||||
export const loadAllEvents = () => {
|
||||
const eventList: (keyof api.ODEventIds_Default)[] = [
|
||||
const eventList: (keyof api.ODNoGeneric<api.ODEventManagerIdMappings>)[] = [
|
||||
//error handling
|
||||
"onErrorHandling",
|
||||
"afterErrorHandling",
|
||||
@@ -258,13 +258,13 @@ export const loadAllEvents = () => {
|
||||
"onHelpMenuComponentLoad",
|
||||
"afterHelpMenuComponentsLoaded",
|
||||
|
||||
//stats
|
||||
"onStatScopeLoad",
|
||||
"afterStatScopesLoaded",
|
||||
"onStatLoad",
|
||||
"afterStatsLoaded",
|
||||
"onStatInit",
|
||||
"afterStatsInitiated",
|
||||
//statistics
|
||||
"onStatisticScopeLoad",
|
||||
"afterStatisticScopesLoaded",
|
||||
"onStatisticLoad",
|
||||
"afterStatisticsLoaded",
|
||||
"onStatisticInit",
|
||||
"afterStatisticsInitiated",
|
||||
|
||||
//plugin loading before code
|
||||
"onPluginBeforeCodeLoad",
|
||||
|
||||
Reference in New Issue
Block a user