Skip to content

Commit e5e367f

Browse files
authored
fix: remove unused extends
1 parent e383495 commit e5e367f

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

src/Extenders/Node.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const { Structure } = require('erela.js');
22
const WebSocket = require('ws');
3-
const fetch = require('petitio');
43
const { version } = require('../../package.json');
54

65
class Node extends Structure.get('Node') {
@@ -25,20 +24,6 @@ class Node extends Structure.get('Node') {
2524
this.socket.on('message', this.message.bind(this));
2625
this.socket.on('error', this.error.bind(this));
2726
}
28-
29-
async makeRequest(endpoint, modify) {
30-
endpoint = endpoint.replace(/^\//gm, '');
31-
32-
const request = fetch(`http${this.options.secure ? 's' : ''}://${this.options.host}:${this.options.port}/${endpoint}`)
33-
.header('Authorization', this.options.password).header('User-Agent', `NoteBlock v${version}`);
34-
35-
if (modify) {
36-
await modify(request);
37-
}
38-
39-
this.calls++;
40-
return await request.json();
41-
}
4227
}
4328

4429
Structure.extend('Node', () => Node);

0 commit comments

Comments
 (0)