@imaentity/selfjs 1.3.9 → 1.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs.md +1 -1
- package/package.json +1 -1
- package/self.js +2 -2
package/docs.md
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
- **getRoles(serverID, userID)**: Gets the roles for a user in a server.
|
|
24
24
|
|
|
25
|
-
- **uploadFile(channelID, fileName, msgContent = "", messageID = null)**: Uploads a file to the specified channel.
|
|
25
|
+
- **uploadFile(channelID, fileName, isSpoiled = false, msgContent = "", messageID = null)**: Uploads a file to the specified channel.
|
|
26
26
|
|
|
27
27
|
- **search(channelID, options)**: Search for messages in a channel based on the specified options.
|
|
28
28
|
|
package/package.json
CHANGED
package/self.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @name SelfJS
|
|
3
3
|
* @description Breaking Discord's TOS to bot user accounts.
|
|
4
4
|
* @author Эмберс
|
|
5
|
-
* @version 1.
|
|
5
|
+
* @version 1.4.8
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
const https = require("https");
|
|
@@ -344,7 +344,7 @@ module.exports = {
|
|
|
344
344
|
attachments: [
|
|
345
345
|
{
|
|
346
346
|
id: '0',
|
|
347
|
-
filename: fileName,
|
|
347
|
+
filename: (isSpoiled ? "SPOILER_" : "") + fileName,
|
|
348
348
|
uploaded_filename: requestResData.attachments[0].upload_filename
|
|
349
349
|
}
|
|
350
350
|
]
|