Expand description
Services PhoenixCord provides to every plugin.
Functions§
- clear_
timer - Cancel a timeout or interval.
- clipboard_
read - clipboard_
write - close_
modal - fetch
- Send an HTTP request in the background. The result arrives as
event.httpwith the returned ID. - get_
setting - The current value of a setting, or its default.
nonefor unknown keys that were never set. - is_
plugin_ enabled - Whether a plugin with this name is loaded and running.
- log
- Write to the PhoenixCord log, attributed to this plugin.
- notify
- open_
modal - Open a modal showing
content. Returns its ID. - open_
url - Open a URL in the user’s browser.
- request_
render - Ask the client to call this plugin’s render hooks again, e.g. after its state changed.
- set_
interval - Deliver
event.timerwith the returned ID everyinterval-msmilliseconds. - set_
setting - Store a setting and deliver
event.setting-changedafter the current call returns. - set_
timeout - Deliver
event.timerwith the returned ID once, afterdelay-msmilliseconds. - show_
notice - show_
toast - storage_
delete - storage_
get - Read from this plugin’s persistent key-value storage.
- storage_
keys - storage_
set - update_
modal