chore(plugins/staff-settings): move to register on start
This commit is contained in:
parent
b27fd9221a
commit
22ce36e4f4
1 changed files with 4 additions and 13 deletions
|
|
@ -1,8 +1,11 @@
|
|||
import { ToastActionCreators } from '@revenge-mod/discord/actions'
|
||||
import { getStore, Stores } from '@revenge-mod/discord/common/flux'
|
||||
import { byProps } from '@revenge-mod/modules/finders/filters'
|
||||
import { getModule } from '@revenge-mod/modules/finders/get'
|
||||
import { instead } from '@revenge-mod/patcher'
|
||||
import { InternalPluginFlags, registerPlugin } from '@revenge-mod/plugins/_'
|
||||
import { PluginFlags } from '@revenge-mod/plugins/constants'
|
||||
import { lookupGeneratedIconComponent } from '@revenge-mod/utils/discord'
|
||||
import type { DiscordModules } from '@revenge-mod/discord/types'
|
||||
|
||||
registerPlugin(
|
||||
|
|
@ -14,19 +17,7 @@ registerPlugin(
|
|||
icon: 'StaffBadgeIcon',
|
||||
},
|
||||
{
|
||||
start({ cleanup, logger, unscoped }) {
|
||||
const {
|
||||
utils: {
|
||||
discord: { lookupGeneratedIconComponent },
|
||||
},
|
||||
discord: {
|
||||
common: {
|
||||
flux: { getStore, Stores },
|
||||
},
|
||||
actions: { ToastActionCreators },
|
||||
},
|
||||
} = unscoped
|
||||
|
||||
start({ cleanup, logger }) {
|
||||
const CircleInformationIcon = lookupGeneratedIconComponent(
|
||||
'CircleInformationIcon',
|
||||
'CircleInformationIcon-secondary',
|
||||
Loading…
Add table
Reference in a new issue