Skip to content
This repository was archived by the owner on May 24, 2025. It is now read-only.

Commit de9cc8a

Browse files
committed
4.0.0
1 parent 69e4da3 commit de9cc8a

File tree

8 files changed

+398
-381
lines changed

8 files changed

+398
-381
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 2024
4+
5+
### January
6+
7+
#### 4.0.0
8+
- Source Code Refactoring
9+
310
## 2023
411

512
### July

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "@synthexia/bpapi-wrapper",
3-
"version": "3.0.0",
3+
"version": "4.0.0",
44
"description": "BPAPI Wrapper allows you to work with BDFD Public API more easier and pretty!",
55
"author": "Kitomanari",
6-
"main": "dist/index.js",
7-
"types": "types/types.d.ts",
6+
"main": "./dist/index.js",
7+
"typings": "./types/",
88
"repository": {
99
"url": "https://github.com/synthexia/bpapi-wrapper"
1010
},
@@ -25,5 +25,6 @@
2525
"devDependencies": {
2626
"@types/centra": "^2.2.0",
2727
"@types/jsdom": "^21.1.1"
28-
}
28+
},
29+
"packageManager": "[email protected]"
2930
}

src/consts.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ export const API = 'https://botdesignerdiscord.com/public/api/';
22
export const NODES = 'https://botdesignerdiscord.com/status';
33

44
export const ENDPOINT_PATH = {
5-
Function: {
6-
Info: 'function/',
7-
List: 'function_list',
8-
TagList: 'function_tag_list'
5+
FUNCTION: {
6+
INFO: 'function/',
7+
LIST: 'function_list',
8+
TAG_LIST: 'function_tag_list'
99
},
10-
Callback: {
11-
Info: 'callback/',
12-
List: 'callback_list',
13-
TagList: 'callback_tag_list'
10+
CALLBACK: {
11+
INFO: 'callback/',
12+
LIST: 'callback_list',
13+
TAG_LIST: 'callback_tag_list'
1414
}
1515
} as const;

src/enums.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
export enum Intents {
2+
None = 'None',
3+
Members = 'Members',
4+
Presence = 'Presence'
5+
}
6+
7+
export enum RawIntents {
8+
None = 0,
9+
Members = 2,
10+
Presence = 256
11+
}
12+
13+
export enum FunctionEndpoint {
14+
Info = 'FunctionInfo',
15+
List = 'FunctionList',
16+
TagList = 'FunctionTagList',
17+
}
18+
19+
export enum CallbackEndpoint {
20+
Info = 'CallbackInfo',
21+
List = 'CallbackList',
22+
TagList = 'CallbackTagList'
23+
}
24+
25+
export enum Target {
26+
Functions = 'Functions',
27+
Callbacks = 'Callbacks',
28+
Nodes = 'Nodes'
29+
}

0 commit comments

Comments
 (0)