chore(plugins/staff-settings): move to register on start

This commit is contained in:
PalmDevs 2025-07-22 19:13:16 +07:00
parent b27fd9221a
commit 22ce36e4f4
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

View file

@ -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',