DraftsService
This class is not replicated. Its interface does not cross the network boundary.
This class is not creatable. Instances of this class cannot be created with Instance.new.
This class is a service. It is a singleton that may be acquired with GetService.
Memory category | Instances |
---|
Member index 16
Removed member index 6
History | Member | |
---|---|---|
398 | OpenDrafts(scripts: Objects): void | |
397 | DraftDeleted(script: Instance) | |
399 | DraftOutdatedStateChanged(script: Instance, outdated: bool) | |
397 | ScriptDeleted(script: Instance) | |
398 | ScriptRemoved(script: Instance) | |
398 | ScriptServerVersionChanged(script: Instance) |
Description
History 75
- 648 Change Parameters of UpdateToLatestVersion from (scripts: Objects) to (scripts: Instances)
- 648 Change Parameters of ShowSourceDiffsAgainstCurrent from (sources: Array, scripts: Objects) to (sources: Array, scripts: Instances)
- 648 Change Parameters of ShowDiffsAgainstServer from (scripts: Objects) to (scripts: Instances)
- 648 Change Parameters of ShowDiffsAgainstBase from (scripts: Objects) to (scripts: Instances)
- 648 Change Parameters of RestoreScripts from (scripts: Objects) to (scripts: Instances)
- 648 Change ReturnType of GetEditors from Objects to Instances
- 648 Change ReturnType of GetDrafts from Objects to Instances
- 648 Change Parameters of DiscardEdits from (scripts: Objects) to (scripts: Instances)
- 648 Change Parameters of CommitEdits from (scripts: Objects) to (scripts: Instances)
- 608 Add ShowSourceDiffsAgainstCurrent
- 573 Change ReturnType of UpdateToLatestVersion from void to null
- 573 Change ReturnType of ShowDiffsAgainstServer from void to null
- 573 Change ReturnType of ShowDiffsAgainstBase from void to null
- 573 Change ReturnType of RestoreScripts from void to null
- 573 Change ReturnType of DiscardEdits from void to null
- 573 Change ReturnType of CommitEdits from void to null
- 462 Change ThreadSafety of UpdateStatusChanged from to Unsafe
- 462 Change ThreadSafety of EditorsListChanged from to Unsafe
- 462 Change ThreadSafety of DraftStatusChanged from to Unsafe
- 462 Change ThreadSafety of DraftRemoved from to Unsafe
- 462 Change ThreadSafety of DraftAdded from to Unsafe
- 462 Change ThreadSafety of CommitStatusChanged from to Unsafe
- 462 Change ThreadSafety of UpdateToLatestVersion from to Unsafe
- 462 Change ThreadSafety of ShowDiffsAgainstServer from to Unsafe
- 462 Change ThreadSafety of ShowDiffsAgainstBase from to Unsafe
- 462 Change ThreadSafety of RestoreScripts from to Unsafe
- 462 Change ThreadSafety of GetEditors from to Unsafe
- 462 Change ThreadSafety of GetDrafts from to Unsafe
- 462 Change ThreadSafety of GetDraftStatus from to Unsafe
- 462 Change ThreadSafety of DiscardEdits from to Unsafe
- 462 Change ThreadSafety of CommitEdits from to Unsafe
- 403 Add RestoreScripts
- 399 Add DraftStatusChanged
- 399 Remove DraftOutdatedStateChanged
- 399 Add GetDraftStatus
- 398 Remove ScriptServerVersionChanged
- 398 Remove ScriptRemoved
- 398 Add DraftOutdatedStateChanged
- 398 Remove OpenDrafts
- 397 Add ScriptRemoved
- 397 Remove ScriptDeleted
- 397 Add DraftRemoved
- 397 Remove DraftDeleted
- 396 Add UpdateStatusChanged
- 396 Change Parameters of ScriptServerVersionChanged from (scriptGuid: string) to (script: Instance)
- 396 Change Parameters of ScriptDeleted from (scriptGuid: string) to (script: Instance)
- 396 Change Parameters of EditorsListChanged from (scriptGuid: string) to (script: Instance)
- 396 Change Parameters of DraftDeleted from (scriptGuid: string) to (script: Instance)
- 396 Change Parameters of DraftAdded from (scriptGuid: string, script: Instance) to (script: Instance)
- 396 Change Parameters of CommitStatusChanged from (scriptGuid: string, commitStatus: int) to (script: Instance, status: DraftStatusCode)
- 396 Change Parameters of UpdateToLatestVersion from (scriptGuids: Array) to (scripts: Objects)
- 396 Change ReturnType of UpdateToLatestVersion from Dictionary to void
- 396 Change Parameters of ShowDiffsAgainstServer from (scriptGuids: Array) to (scripts: Objects)
- 396 Change Parameters of ShowDiffsAgainstBase from (scriptGuids: Array) to (scripts: Objects)
- 396 Change Parameters of OpenDrafts from (scriptGuids: Array) to (scripts: Objects)
- 396 Change Parameters of GetEditors from (scriptGuid: string) to (script: Instance)
- 396 Change ReturnType of GetEditors from Array to Objects
- 396 Change ReturnType of GetDrafts from Dictionary to Objects
- 396 Change Parameters of DiscardEdits from (scriptGuids: Array) to (scripts: Objects)
- 396 Change Parameters of CommitEdits from (scriptGuids: Array) to (scripts: Objects)
- 395 Add ScriptServerVersionChanged
- 395 Add ScriptDeleted
- 395 Add EditorsListChanged
- 395 Add DraftDeleted
- 395 Add DraftAdded
- 395 Add CommitStatusChanged
- 395 Add UpdateToLatestVersion
- 395 Add ShowDiffsAgainstServer
- 395 Add ShowDiffsAgainstBase
- 395 Add OpenDrafts
- 395 Add GetEditors
- 395 Add GetDrafts
- 395 Add DiscardEdits
- 395 Add CommitEdits
- 395 Add DraftsService
Members 16
CommitEdits
Parameters (1) | ||
---|---|---|
scripts | Instances | |
Returns (1) | ||
null |
This function yields. It will block the calling thread until completion.
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 5
- 648 Change Parameters of CommitEdits from (scripts: Objects) to (scripts: Instances)
- 573 Change ReturnType of CommitEdits from void to null
- 462 Change ThreadSafety of CommitEdits from to Unsafe
- 396 Change Parameters of CommitEdits from (scriptGuids: Array) to (scripts: Objects)
- 395 Add CommitEdits
CommitStatusChanged
Parameters (2) | |
---|---|
script | Instance |
status | DraftStatusCode |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 462 Change ThreadSafety of CommitStatusChanged from to Unsafe
- 396 Change Parameters of CommitStatusChanged from (scriptGuid: string, commitStatus: int) to (script: Instance, status: DraftStatusCode)
- 395 Add CommitStatusChanged
DiscardEdits
Parameters (1) | ||
---|---|---|
scripts | Instances | |
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 5
- 648 Change Parameters of DiscardEdits from (scripts: Objects) to (scripts: Instances)
- 573 Change ReturnType of DiscardEdits from void to null
- 462 Change ThreadSafety of DiscardEdits from to Unsafe
- 396 Change Parameters of DiscardEdits from (scriptGuids: Array) to (scripts: Objects)
- 395 Add DiscardEdits
DraftAdded
Parameters (1) | |
---|---|
script | Instance |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 462 Change ThreadSafety of DraftAdded from to Unsafe
- 396 Change Parameters of DraftAdded from (scriptGuid: string, script: Instance) to (script: Instance)
- 395 Add DraftAdded
DraftRemoved
Parameters (1) | |
---|---|
script | Instance |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of DraftRemoved from to Unsafe
- 397 Add DraftRemoved
DraftStatusChanged
Parameters (1) | |
---|---|
script | Instance |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of DraftStatusChanged from to Unsafe
- 399 Add DraftStatusChanged
EditorsListChanged
Parameters (1) | |
---|---|
script | Instance |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 462 Change ThreadSafety of EditorsListChanged from to Unsafe
- 396 Change Parameters of EditorsListChanged from (scriptGuid: string) to (script: Instance)
- 395 Add EditorsListChanged
GetDraftStatus
Parameters (1) | ||
---|---|---|
script | Instance | |
Returns (1) | ||
DraftStatusCode |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of GetDraftStatus from to Unsafe
- 399 Add GetDraftStatus
GetDrafts
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
Instances |
This function yields. It will block the calling thread until completion.
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
GetEditors
Parameters (1) | ||
---|---|---|
script | Instance | |
Returns (1) | ||
Instances |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 5
- 648 Change ReturnType of GetEditors from Objects to Instances
- 462 Change ThreadSafety of GetEditors from to Unsafe
- 396 Change Parameters of GetEditors from (scriptGuid: string) to (script: Instance)
- 396 Change ReturnType of GetEditors from Array to Objects
- 395 Add GetEditors
RestoreScripts
Parameters (1) | ||
---|---|---|
scripts | Instances | |
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 4
- 648 Change Parameters of RestoreScripts from (scripts: Objects) to (scripts: Instances)
- 573 Change ReturnType of RestoreScripts from void to null
- 462 Change ThreadSafety of RestoreScripts from to Unsafe
- 403 Add RestoreScripts
ShowDiffsAgainstBase
Parameters (1) | ||
---|---|---|
scripts | Instances | |
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 5
- 648 Change Parameters of ShowDiffsAgainstBase from (scripts: Objects) to (scripts: Instances)
- 573 Change ReturnType of ShowDiffsAgainstBase from void to null
- 462 Change ThreadSafety of ShowDiffsAgainstBase from to Unsafe
- 396 Change Parameters of ShowDiffsAgainstBase from (scriptGuids: Array) to (scripts: Objects)
- 395 Add ShowDiffsAgainstBase
ShowDiffsAgainstServer
Parameters (1) | ||
---|---|---|
scripts | Instances | |
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 5
- 648 Change Parameters of ShowDiffsAgainstServer from (scripts: Objects) to (scripts: Instances)
- 573 Change ReturnType of ShowDiffsAgainstServer from void to null
- 462 Change ThreadSafety of ShowDiffsAgainstServer from to Unsafe
- 396 Change Parameters of ShowDiffsAgainstServer from (scriptGuids: Array) to (scripts: Objects)
- 395 Add ShowDiffsAgainstServer
ShowSourceDiffsAgainstCurrent
Parameters (2) | ||
---|---|---|
sources | Array | |
scripts | Instances | |
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 648 Change Parameters of ShowSourceDiffsAgainstCurrent from (sources: Array, scripts: Objects) to (sources: Array, scripts: Instances)
- 608 Add ShowSourceDiffsAgainstCurrent
UpdateStatusChanged
Parameters (2) | |
---|---|
script | Instance |
status | DraftStatusCode |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of UpdateStatusChanged from to Unsafe
- 396 Add UpdateStatusChanged
UpdateToLatestVersion
Parameters (1) | ||
---|---|---|
scripts | Instances | |
Returns (1) | ||
null |
This function yields. It will block the calling thread until completion.
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 6
- 648 Change Parameters of UpdateToLatestVersion from (scripts: Objects) to (scripts: Instances)
- 573 Change ReturnType of UpdateToLatestVersion from void to null
- 462 Change ThreadSafety of UpdateToLatestVersion from to Unsafe
- 396 Change Parameters of UpdateToLatestVersion from (scriptGuids: Array) to (scripts: Objects)
- 396 Change ReturnType of UpdateToLatestVersion from Dictionary to void
- 395 Add UpdateToLatestVersion
Removed members 6
DraftDeleted
Parameters (1) | |
---|---|
script | Instance |
Security | RobloxScriptSecurity |
---|
History 3
- 397 Remove DraftDeleted
- 396 Change Parameters of DraftDeleted from (scriptGuid: string) to (script: Instance)
- 395 Add DraftDeleted
DraftOutdatedStateChanged
Parameters (2) | |
---|---|
script | Instance |
outdated | bool |
Security | RobloxScriptSecurity |
---|
History 2
OpenDrafts
Parameters (1) | ||
---|---|---|
scripts | Objects | |
Returns (1) | ||
void |
Security | RobloxScriptSecurity |
---|
History 3
- 398 Remove OpenDrafts
- 396 Change Parameters of OpenDrafts from (scriptGuids: Array) to (scripts: Objects)
- 395 Add OpenDrafts
ScriptDeleted
Parameters (1) | |
---|---|
script | Instance |
Security | RobloxScriptSecurity |
---|
History 3
- 397 Remove ScriptDeleted
- 396 Change Parameters of ScriptDeleted from (scriptGuid: string) to (script: Instance)
- 395 Add ScriptDeleted
ScriptRemoved
Parameters (1) | |
---|---|
script | Instance |
Security | RobloxScriptSecurity |
---|
History 2
- 398 Remove ScriptRemoved
- 397 Add ScriptRemoved
ScriptServerVersionChanged
Parameters (1) | |
---|---|
script | Instance |
Security | RobloxScriptSecurity |
---|
History 3
- 398 Remove ScriptServerVersionChanged
- 396 Change Parameters of ScriptServerVersionChanged from (scriptGuid: string) to (script: Instance)
- 395 Add ScriptServerVersionChanged