seyfert 3.1.3-dev-15217195551.0 → 3.2.0
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/LICENSE +20 -20
- package/README.md +60 -60
- package/lib/builders/SelectMenu.d.ts +1 -1
- package/lib/common/shorters/threads.d.ts +3 -2
- package/lib/common/shorters/threads.js +23 -12
- package/lib/components/MentionableSelectMenuComponent.d.ts +1 -1
- package/lib/langs/router.d.ts +1 -1
- package/lib/langs/router.js +3 -1
- package/lib/structures/Guild.d.ts +2 -1
- package/lib/structures/Guild.js +3 -0
- package/lib/types/payloads/components.d.ts +1 -1
- package/package.json +79 -79
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 socram03
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 socram03
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
<div align='center'>
|
|
2
|
-
<img src="./assets/icon.png" alt="seyfert" width="200px" />
|
|
3
|
-
|
|
4
|
-
**Seyfert is a brand-new Discord framework to take the bot development to a next level**
|
|
5
|
-
|
|
6
|
-
[](https://github.com/tiramisulabs/seyfert/blob/main/LICENSE)
|
|
7
|
-
[](https://www.npmjs.com/package/seyfert)
|
|
8
|
-
[](https://discord.com/invite/XNw2RZFzaP)
|
|
9
|
-
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
## FAQ
|
|
13
|
-
### So, what is `seyfert`?
|
|
14
|
-
Seyfert is the ultimate Discord framework! We make it easy to interact with the Discord API, big cache control, scalable code and a pretty dev experience.
|
|
15
|
-
|
|
16
|
-
### Why should I use it?
|
|
17
|
-
There are many reasons to use Seyfert, but they dont all fit in this tiny readme, so here is a list of the most awesome reasons!
|
|
18
|
-
|
|
19
|
-
- **Low RAM Usage**
|
|
20
|
-
- **Latest features**
|
|
21
|
-
- **Dev experience**
|
|
22
|
-
- **24/6 support (Sunday is for church)**
|
|
23
|
-
- **Written from Scratch**
|
|
24
|
-
- **Type-safe**
|
|
25
|
-
- **And many more!!**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
## Installation
|
|
29
|
-
> [!NOTE]
|
|
30
|
-
> Node v18>= is required (or v16 with `--experimental-fetch` flag), Bun/Node LTS recommended.
|
|
31
|
-
|
|
32
|
-
```sh
|
|
33
|
-
pnpm add seyfert
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
```sh
|
|
37
|
-
deno add npm:seyfert
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
```sh
|
|
41
|
-
bun add seyfert
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
```sh
|
|
45
|
-
npm i seyfert
|
|
46
|
-
```
|
|
47
|
-
> Or other package manager.
|
|
48
|
-
|
|
49
|
-
## Contributing
|
|
50
|
-
We are open to contributions, fork the repo and make your changes!
|
|
51
|
-
|
|
52
|
-
## Useful links
|
|
53
|
-
|
|
54
|
-
- [GitHub Repository](https://github.com/tiramisulabs/seyfert)
|
|
55
|
-
- [Discord server](https://discord.com/invite/XNw2RZFzaP)
|
|
56
|
-
- [npm - core](https://www.npmjs.com/package/seyfert)
|
|
57
|
-
- [Website](https://seyfert.dev)
|
|
58
|
-
- [Documentation](https://docs.seyfert.dev)
|
|
59
|
-
|
|
60
|
-

|
|
1
|
+
<div align='center'>
|
|
2
|
+
<img src="./assets/icon.png" alt="seyfert" width="200px" />
|
|
3
|
+
|
|
4
|
+
**Seyfert is a brand-new Discord framework to take the bot development to a next level**
|
|
5
|
+
|
|
6
|
+
[](https://github.com/tiramisulabs/seyfert/blob/main/LICENSE)
|
|
7
|
+
[](https://www.npmjs.com/package/seyfert)
|
|
8
|
+
[](https://discord.com/invite/XNw2RZFzaP)
|
|
9
|
+
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
## FAQ
|
|
13
|
+
### So, what is `seyfert`?
|
|
14
|
+
Seyfert is the ultimate Discord framework! We make it easy to interact with the Discord API, big cache control, scalable code and a pretty dev experience.
|
|
15
|
+
|
|
16
|
+
### Why should I use it?
|
|
17
|
+
There are many reasons to use Seyfert, but they dont all fit in this tiny readme, so here is a list of the most awesome reasons!
|
|
18
|
+
|
|
19
|
+
- **Low RAM Usage**
|
|
20
|
+
- **Latest features**
|
|
21
|
+
- **Dev experience**
|
|
22
|
+
- **24/6 support (Sunday is for church)**
|
|
23
|
+
- **Written from Scratch**
|
|
24
|
+
- **Type-safe**
|
|
25
|
+
- **And many more!!**
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## Installation
|
|
29
|
+
> [!NOTE]
|
|
30
|
+
> Node v18>= is required (or v16 with `--experimental-fetch` flag), Bun/Node LTS recommended.
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
pnpm add seyfert
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
deno add npm:seyfert
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
bun add seyfert
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
npm i seyfert
|
|
46
|
+
```
|
|
47
|
+
> Or other package manager.
|
|
48
|
+
|
|
49
|
+
## Contributing
|
|
50
|
+
We are open to contributions, fork the repo and make your changes!
|
|
51
|
+
|
|
52
|
+
## Useful links
|
|
53
|
+
|
|
54
|
+
- [GitHub Repository](https://github.com/tiramisulabs/seyfert)
|
|
55
|
+
- [Discord server](https://discord.com/invite/XNw2RZFzaP)
|
|
56
|
+
- [npm - core](https://www.npmjs.com/package/seyfert)
|
|
57
|
+
- [Website](https://seyfert.dev)
|
|
58
|
+
- [Documentation](https://docs.seyfert.dev)
|
|
59
|
+
|
|
60
|
+

|
|
@@ -83,7 +83,7 @@ export declare class RoleSelectMenu extends SelectMenu<APIRoleSelectComponent> {
|
|
|
83
83
|
}
|
|
84
84
|
export type MentionableDefaultElement = {
|
|
85
85
|
id: string;
|
|
86
|
-
type: keyof
|
|
86
|
+
type: keyof typeof SelectMenuDefaultValueType;
|
|
87
87
|
};
|
|
88
88
|
/**
|
|
89
89
|
* Represents a Select Menu for selecting mentionable entities.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ThreadChannelStructure } from '../../client/transformers';
|
|
2
|
-
import type
|
|
2
|
+
import { type APIThreadMember, type RESTGetAPIChannelThreadMembersQuery, type RESTGetAPIChannelThreadsArchivedQuery, type RESTPatchAPIChannelJSONBody, type RESTPostAPIChannelMessagesThreadsJSONBody, type RESTPostAPIChannelThreadsJSONBody, type RESTPostAPIGuildForumThreadsJSONBody } from '../../types';
|
|
3
3
|
import type { MakeRequired, When } from '../types/util';
|
|
4
4
|
import { BaseShorter } from './base';
|
|
5
5
|
export declare class ThreadShorter extends BaseShorter {
|
|
@@ -21,11 +21,12 @@ export declare class ThreadShorter extends BaseShorter {
|
|
|
21
21
|
fetchMember<WithMember extends boolean = false>(threadId: string, memberId: string, with_member: WithMember): Promise<When<WithMember, Required<APIThreadMember>, GetAPIChannelThreadMemberResult>>;
|
|
22
22
|
addMember(threadId: string, memberId: string): Promise<undefined>;
|
|
23
23
|
listMembers<T extends RESTGetAPIChannelThreadMembersQuery = RESTGetAPIChannelThreadMembersQuery>(threadId: string, query?: T): Promise<InferWithMemberOnList<T>>;
|
|
24
|
-
|
|
24
|
+
listArchived(channelId: string, type: 'public' | 'private', query?: RESTGetAPIChannelThreadsArchivedQuery): Promise<{
|
|
25
25
|
threads: ThreadChannelStructure[];
|
|
26
26
|
members: GetAPIChannelThreadMemberResult[];
|
|
27
27
|
hasMore: boolean;
|
|
28
28
|
}>;
|
|
29
|
+
listGuildActive(guildId: string, force?: boolean): Promise<ThreadChannelStructure[]>;
|
|
29
30
|
listJoinedArchivedPrivate(channelId: string, query?: RESTGetAPIChannelThreadsArchivedQuery): Promise<{
|
|
30
31
|
threads: ThreadChannelStructure[];
|
|
31
32
|
members: GetAPIChannelThreadMemberResult[];
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ThreadShorter = void 0;
|
|
4
4
|
const __1 = require("../..");
|
|
5
5
|
const structures_1 = require("../../structures");
|
|
6
|
+
const types_1 = require("../../types");
|
|
6
7
|
const base_1 = require("./base");
|
|
7
8
|
class ThreadShorter extends base_1.BaseShorter {
|
|
8
9
|
/**
|
|
@@ -21,16 +22,11 @@ class ThreadShorter extends base_1.BaseShorter {
|
|
|
21
22
|
return (0, structures_1.channelFrom)(thread, this.client);
|
|
22
23
|
}));
|
|
23
24
|
}
|
|
24
|
-
fromMessage(channelId, messageId, options) {
|
|
25
|
+
async fromMessage(channelId, messageId, options) {
|
|
25
26
|
const { reason, ...body } = options;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
.threads.post({ body, reason })
|
|
30
|
-
.then(async (thread) => {
|
|
31
|
-
await this.client.cache.channels?.setIfNI(__1.CacheFrom.Rest, 'Guilds', thread.id, thread.guild_id, thread);
|
|
32
|
-
return (0, structures_1.channelFrom)(thread, this.client);
|
|
33
|
-
});
|
|
27
|
+
const thread = await this.client.proxy.channels(channelId).messages(messageId).threads.post({ body, reason });
|
|
28
|
+
await this.client.cache.channels?.setIfNI(__1.CacheFrom.Rest, 'Guilds', thread.id, thread.guild_id, thread);
|
|
29
|
+
return await (0, structures_1.channelFrom)(thread, this.client);
|
|
34
30
|
}
|
|
35
31
|
join(threadId) {
|
|
36
32
|
return this.client.proxy.channels(threadId)['thread-members']('@me').put();
|
|
@@ -38,8 +34,9 @@ class ThreadShorter extends base_1.BaseShorter {
|
|
|
38
34
|
leave(threadId) {
|
|
39
35
|
return this.client.proxy.channels(threadId)['thread-members']('@me').delete();
|
|
40
36
|
}
|
|
41
|
-
lock(threadId, locked = true, reason) {
|
|
42
|
-
|
|
37
|
+
async lock(threadId, locked = true, reason) {
|
|
38
|
+
const x = await this.edit(threadId, { locked }, reason);
|
|
39
|
+
return (0, structures_1.channelFrom)(x, this.client);
|
|
43
40
|
}
|
|
44
41
|
async edit(threadId, body, reason) {
|
|
45
42
|
return (await this.client.channels.edit(threadId, body, { reason }));
|
|
@@ -60,7 +57,7 @@ class ThreadShorter extends base_1.BaseShorter {
|
|
|
60
57
|
listMembers(threadId, query) {
|
|
61
58
|
return this.client.proxy.channels(threadId)['thread-members'].get({ query });
|
|
62
59
|
}
|
|
63
|
-
async
|
|
60
|
+
async listArchived(channelId, type, query) {
|
|
64
61
|
const data = await this.client.proxy.channels(channelId).threads.archived[type].get({ query });
|
|
65
62
|
return {
|
|
66
63
|
threads: data.threads.map(thread => (0, structures_1.channelFrom)(thread, this.client)),
|
|
@@ -68,6 +65,20 @@ class ThreadShorter extends base_1.BaseShorter {
|
|
|
68
65
|
hasMore: data.has_more,
|
|
69
66
|
};
|
|
70
67
|
}
|
|
68
|
+
async listGuildActive(guildId, force = false) {
|
|
69
|
+
if (!force) {
|
|
70
|
+
const cached = await this.client.cache.channels?.valuesRaw(guildId);
|
|
71
|
+
if (cached)
|
|
72
|
+
return cached
|
|
73
|
+
.filter(x => [types_1.ChannelType.PublicThread, types_1.ChannelType.PrivateThread, types_1.ChannelType.AnnouncementThread].includes(x.type))
|
|
74
|
+
.map(x => (0, structures_1.channelFrom)(x, this.client));
|
|
75
|
+
}
|
|
76
|
+
const data = await this.client.proxy.guilds(guildId).threads.active.get();
|
|
77
|
+
return Promise.all(data.threads.map(async (thread) => {
|
|
78
|
+
await this.client.cache.channels?.setIfNI(__1.CacheFrom.Rest, 'Guilds', thread.id, guildId, thread);
|
|
79
|
+
return (0, structures_1.channelFrom)(thread, this.client);
|
|
80
|
+
}));
|
|
81
|
+
}
|
|
71
82
|
async listJoinedArchivedPrivate(channelId, query) {
|
|
72
83
|
const data = await this.client.proxy.channels(channelId).users('@me').threads.archived.private.get({ query });
|
|
73
84
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentType } from '../types';
|
|
2
2
|
import { BaseSelectMenuComponent } from './BaseSelectMenuComponent';
|
|
3
3
|
export declare class MentionableSelectMenuComponent extends BaseSelectMenuComponent<ComponentType.MentionableSelect> {
|
|
4
|
-
get defaultValues(): import("../types").APISelectMenuDefaultValue<import("../types").SelectMenuDefaultValueType
|
|
4
|
+
get defaultValues(): import("../types").APISelectMenuDefaultValue<import("../types").SelectMenuDefaultValueType>[] | undefined;
|
|
5
5
|
}
|
package/lib/langs/router.d.ts
CHANGED
package/lib/langs/router.js
CHANGED
|
@@ -13,6 +13,8 @@ const LangRouter = (userLocale, defaultLang, langs) => {
|
|
|
13
13
|
if (typeof locale === 'undefined')
|
|
14
14
|
throw new Error('Undefined locale');
|
|
15
15
|
let value = langs[locale];
|
|
16
|
+
if (typeof value === 'undefined')
|
|
17
|
+
throw new Error(`Locale "${locale}" not found`);
|
|
16
18
|
for (const i of route)
|
|
17
19
|
value = value[i];
|
|
18
20
|
return value;
|
|
@@ -39,4 +41,4 @@ const LangRouter = (userLocale, defaultLang, langs) => {
|
|
|
39
41
|
return createProxy;
|
|
40
42
|
};
|
|
41
43
|
exports.LangRouter = LangRouter;
|
|
42
|
-
/**Idea inspiration from: FreeAoi */
|
|
44
|
+
/**Idea inspiration from: FreeAoi | Fixed by: Drylozu */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GuildMemberStructure, GuildStructure } from '../client';
|
|
1
|
+
import type { GuildMemberStructure, GuildStructure, ThreadChannelStructure } from '../client';
|
|
2
2
|
import type { UsingClient } from '../commands';
|
|
3
3
|
import type { CreateInviteFromChannel } from '../common';
|
|
4
4
|
import type { ObjectToLower, StructPropState, StructStates, ToClass } from '../common/types/util';
|
|
@@ -20,6 +20,7 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
20
20
|
get maxStickers(): MaxStickers;
|
|
21
21
|
get maxEmojis(): MaxEmojis;
|
|
22
22
|
fetchOwner(force?: boolean): Promise<GuildMemberStructure | null>;
|
|
23
|
+
listActiveThreads(force?: boolean): Promise<ThreadChannelStructure[]>;
|
|
23
24
|
templates: {
|
|
24
25
|
fetch: (code: string) => Promise<import("../client").GuildTemplateStructure>;
|
|
25
26
|
list: () => Promise<import("../client").GuildTemplateStructure[]>;
|
package/lib/structures/Guild.js
CHANGED
|
@@ -56,6 +56,9 @@ class Guild extends BaseGuild_1.BaseGuild {
|
|
|
56
56
|
}
|
|
57
57
|
return this.members.fetch(this.ownerId, force);
|
|
58
58
|
}
|
|
59
|
+
listActiveThreads(force = false) {
|
|
60
|
+
return this.client.threads.listGuildActive(this.id, force);
|
|
61
|
+
}
|
|
59
62
|
templates = GuildTemplate_1.GuildTemplate.methods({ client: this.client, guildId: this.id });
|
|
60
63
|
stickers = Sticker_1.Sticker.methods({ client: this.client, guildId: this.id });
|
|
61
64
|
members = GuildMember_1.GuildMember.methods({ client: this.client, guildId: this.id });
|
|
@@ -213,7 +213,7 @@ export type APIRoleSelectComponent = APIBaseAutoPopulatedSelectMenuComponent<Com
|
|
|
213
213
|
/**
|
|
214
214
|
* https://discord.com/developers/docs/interactions/message-components#select-menus
|
|
215
215
|
*/
|
|
216
|
-
export type APIMentionableSelectComponent = APIBaseAutoPopulatedSelectMenuComponent<ComponentType.MentionableSelect, SelectMenuDefaultValueType
|
|
216
|
+
export type APIMentionableSelectComponent = APIBaseAutoPopulatedSelectMenuComponent<ComponentType.MentionableSelect, SelectMenuDefaultValueType>;
|
|
217
217
|
/**
|
|
218
218
|
* https://discord.com/developers/docs/interactions/message-components#select-menus
|
|
219
219
|
*/
|
package/package.json
CHANGED
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "seyfert",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "The most advanced framework for discord bots",
|
|
5
|
-
"main": "./lib/index.js",
|
|
6
|
-
"module": "./lib/index.js",
|
|
7
|
-
"types": "./lib/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"lib/**"
|
|
10
|
-
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "tsc --outDir ./lib",
|
|
13
|
-
"prepublishOnly": "npm run build",
|
|
14
|
-
"prepare": "npm run build && husky",
|
|
15
|
-
"lint": "biome lint --write ./src",
|
|
16
|
-
"format": "biome format --write ./src",
|
|
17
|
-
"check-h": "biome check --write ./src",
|
|
18
|
-
"check": "biome check --verbose --write --no-errors-on-unmatched ./src",
|
|
19
|
-
"test": "vitest run --config ./tests/vitest.config.mts ./tests/"
|
|
20
|
-
},
|
|
21
|
-
"author": "MARCROCK22",
|
|
22
|
-
"license": "MIT",
|
|
23
|
-
"devDependencies": {
|
|
24
|
-
"@biomejs/biome": "1.9.4",
|
|
25
|
-
"@changesets/cli": "^2.29.
|
|
26
|
-
"@commitlint/cli": "^19.8.
|
|
27
|
-
"@commitlint/config-conventional": "^19.8.
|
|
28
|
-
"@types/node": "^
|
|
29
|
-
"husky": "^9.1.7",
|
|
30
|
-
"lint-staged": "^15.5.1",
|
|
31
|
-
"typescript": "^5.8.3",
|
|
32
|
-
"vitest": "^3.
|
|
33
|
-
},
|
|
34
|
-
"homepage": "https://seyfert.dev",
|
|
35
|
-
"repository": {
|
|
36
|
-
"type": "git",
|
|
37
|
-
"url": "git+https://github.com/tiramisulabs/seyfert.git"
|
|
38
|
-
},
|
|
39
|
-
"bugs": {
|
|
40
|
-
"url": "https://github.com/tiramisulabs/seyfert"
|
|
41
|
-
},
|
|
42
|
-
"keywords": [
|
|
43
|
-
"api",
|
|
44
|
-
"discord",
|
|
45
|
-
"bots",
|
|
46
|
-
"typescript",
|
|
47
|
-
"botdev"
|
|
48
|
-
],
|
|
49
|
-
"publishConfig": {
|
|
50
|
-
"access": "public"
|
|
51
|
-
},
|
|
52
|
-
"maintainers": [
|
|
53
|
-
{
|
|
54
|
-
"name": "socram03",
|
|
55
|
-
"url": "https://github.com/socram03"
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
"contributors": [
|
|
59
|
-
{
|
|
60
|
-
"name": "Free 公園",
|
|
61
|
-
"url": "https://github.com/FreeAoi"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "David",
|
|
65
|
-
"url": "https://github.com/Drylozu"
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
|
-
"lint-staged": {
|
|
69
|
-
"*.ts": [
|
|
70
|
-
"biome check --write"
|
|
71
|
-
]
|
|
72
|
-
},
|
|
73
|
-
"pnpm": {
|
|
74
|
-
"onlyBuiltDependencies": [
|
|
75
|
-
"@biomejs/biome",
|
|
76
|
-
"esbuild"
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "seyfert",
|
|
3
|
+
"version": "3.2.0",
|
|
4
|
+
"description": "The most advanced framework for discord bots",
|
|
5
|
+
"main": "./lib/index.js",
|
|
6
|
+
"module": "./lib/index.js",
|
|
7
|
+
"types": "./lib/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"lib/**"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsc --outDir ./lib",
|
|
13
|
+
"prepublishOnly": "npm run build",
|
|
14
|
+
"prepare": "npm run build && husky",
|
|
15
|
+
"lint": "biome lint --write ./src",
|
|
16
|
+
"format": "biome format --write ./src",
|
|
17
|
+
"check-h": "biome check --write ./src",
|
|
18
|
+
"check": "biome check --verbose --write --no-errors-on-unmatched ./src",
|
|
19
|
+
"test": "vitest run --config ./tests/vitest.config.mts ./tests/"
|
|
20
|
+
},
|
|
21
|
+
"author": "MARCROCK22",
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@biomejs/biome": "1.9.4",
|
|
25
|
+
"@changesets/cli": "^2.29.4",
|
|
26
|
+
"@commitlint/cli": "^19.8.1",
|
|
27
|
+
"@commitlint/config-conventional": "^19.8.1",
|
|
28
|
+
"@types/node": "^24.0.1",
|
|
29
|
+
"husky": "^9.1.7",
|
|
30
|
+
"lint-staged": "^15.5.1",
|
|
31
|
+
"typescript": "^5.8.3",
|
|
32
|
+
"vitest": "^3.2.3"
|
|
33
|
+
},
|
|
34
|
+
"homepage": "https://seyfert.dev",
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/tiramisulabs/seyfert.git"
|
|
38
|
+
},
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://github.com/tiramisulabs/seyfert"
|
|
41
|
+
},
|
|
42
|
+
"keywords": [
|
|
43
|
+
"api",
|
|
44
|
+
"discord",
|
|
45
|
+
"bots",
|
|
46
|
+
"typescript",
|
|
47
|
+
"botdev"
|
|
48
|
+
],
|
|
49
|
+
"publishConfig": {
|
|
50
|
+
"access": "public"
|
|
51
|
+
},
|
|
52
|
+
"maintainers": [
|
|
53
|
+
{
|
|
54
|
+
"name": "socram03",
|
|
55
|
+
"url": "https://github.com/socram03"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"contributors": [
|
|
59
|
+
{
|
|
60
|
+
"name": "Free 公園",
|
|
61
|
+
"url": "https://github.com/FreeAoi"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "David",
|
|
65
|
+
"url": "https://github.com/Drylozu"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"lint-staged": {
|
|
69
|
+
"*.ts": [
|
|
70
|
+
"biome check --write"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"pnpm": {
|
|
74
|
+
"onlyBuiltDependencies": [
|
|
75
|
+
"@biomejs/biome",
|
|
76
|
+
"esbuild"
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
}
|