Preparing search index...
The search index is not available
OneSDK
OneSDK
types/Plugin
OnePlugin
Interface OnePlugin
interface
OnePlugin
{
author
?:
string
;
defaultState
:
Record
<
string
,
any
>
;
name
:
string
;
permissions
:
(
PluginFilterEvent
|
SendType
)
[]
;
uid
:
string
;
url
?:
string
;
version
:
string
;
destroy
?
(
)
:
void
;
filterComment
?
(
comment
,
service
,
userData
)
:
Promise
<
false
|
Comment
>
;
filterSpeech
?
(
text
,
userData
,
config
)
:
Promise
<
string
|
false
>
;
init
?
(
api
,
initialData
)
:
void
;
request
?
(
req
)
:
Promise
<
PluginResponse
>
;
subscribe
?
(
type
,
...
args
)
:
void
;
[
key
:
string
]
:
any
;
}
Indexable
[
key:
string
]:
any
Index
Properties
author?
default
State
name
permissions
uid
url?
version
Methods
destroy?
filter
Comment?
filter
Speech?
init?
request?
subscribe?
Properties
Optional
author
author
?:
string
default
State
default
State
:
Record
<
string
,
any
>
name
name
:
string
permissions
permissions
:
(
PluginFilterEvent
|
SendType
)
[]
uid
uid
:
string
Optional
url
url
?:
string
version
version
:
string
Methods
Optional
destroy
destroy
(
)
:
void
Returns
void
Optional
filter
Comment
filter
Comment
(
comment
,
service
,
userData
)
:
Promise
<
false
|
Comment
>
Parameters
comment
:
Comment
service
:
Service
userData
:
null
|
UserNameData
Returns
Promise
<
false
|
Comment
>
Optional
filter
Speech
filter
Speech
(
text
,
userData
,
config
)
:
Promise
<
string
|
false
>
Parameters
text
:
string
userData
:
null
|
UserNameData
config
:
Partial
<
SpeechConfig
>
Returns
Promise
<
string
|
false
>
Optional
init
init
(
api
,
initialData
)
:
void
Parameters
api
:
PluginAPI
initialData
:
Partial
<
ConnectedData
>
Returns
void
Optional
request
request
(
req
)
:
Promise
<
PluginResponse
>
Parameters
req
:
PluginRequest
Returns
Promise
<
PluginResponse
>
Optional
subscribe
subscribe
(
type
,
...
args
)
:
void
Parameters
type
:
SendType
Rest
...
args
:
any
[]
Returns
void
Settings
Theme
OS
Light
Dark
On This Page
author
default
State
name
permissions
uid
url
version
destroy
filter
Comment
filter
Speech
init
request
subscribe
OneSDK
Loading...