fix(lib/plugins): restrict unscoped.discord.(actions|design) to init+
This commit is contained in:
parent
ff410cbb25
commit
73534bda6a
1 changed files with 2 additions and 0 deletions
|
|
@ -120,12 +120,14 @@ export const discord = defineLazyProperties(
|
|||
} as PluginApiDiscord,
|
||||
{
|
||||
actions: () => {
|
||||
guardIndexInitialized('Discord.actions')
|
||||
return DiscordActions
|
||||
},
|
||||
flux: () => {
|
||||
return DiscordFlux
|
||||
},
|
||||
design: () => {
|
||||
guardIndexInitialized('Discord.design')
|
||||
return DiscordDesign
|
||||
},
|
||||
native: () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue