ModuleBuilder/moduleWrappers/electron/clipboard.js

7 lines
No EOL
216 B
JavaScript

export const writeText = (text) => { // Write text to clipboard
return DiscordNative.clipboard.copy(text);
};
export const readText = () => { // Read text from clipboard
return DiscordNative.clipboard.read();
};