ChatEventItemCreateAttachment Method |  |
Creates and adds a new attachment to this event.
Namespace: Compiled.EDD.ScriptingAssembly: Compiled.EDD.Scripting (in Compiled.EDD.Scripting.dll) Version: 9.0.0.0-142fa9725
Syntaxpublic ChatEventAttachmentItem CreateAttachment(
string? path,
bool copyFileToChatSource = true
)
Parameters
- path String
- The file path of the attachment or to indicate a missing attachment.
- copyFileToChatSource Boolean (Optional)
- Whether to copy the file path points to to the chat source's directory.
Return Value
ChatEventAttachmentItem
The created attachment.
Exceptions
See Also