@imaentity/selfjs 4.0.0 → 4.0.1
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/README.md +12 -10
- package/docs.md +848 -848
- package/package.json +1 -1
- package/self.js +2 -2
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 Entity
|
|
5
|
-
* @version 4.0
|
|
5
|
+
* @version 4.0.1
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
const EventEmitter = require("events");
|
|
@@ -74,7 +74,7 @@ const OPCODES = {
|
|
|
74
74
|
// Formats JSON in a way that makes the Discord API
|
|
75
75
|
// able to accept random unicode characters
|
|
76
76
|
function unison(jsonData) {
|
|
77
|
-
return JSON.
|
|
77
|
+
return JSON.stringify(jsonData)?.replace(
|
|
78
78
|
/[\u007F-\uFFFF]/g,
|
|
79
79
|
c => `\\u${c.charCodeAt(0).toString(16).padStart(4, '0')}`
|
|
80
80
|
);
|