Monorepo for all of our bots and their common utilities, along with some NPM packages.
This project is lincensed under the GNU AGPLv3 license. View the full file here.
Helping sift through user concerns
License: Other
Monorepo for all of our bots and their common utilities, along with some NPM packages.
This project is lincensed under the GNU AGPLv3 license. View the full file here.
GET /modmail/v1/guilds/:guildId/snippets
PUT /modmail/v1/guilds/:guildId/snippets
- creates a new snippet, returning it
GET /modmail/v1/guilds/:guildId/snippets/:snippetId
PATCH /modmail/v1/guilds/:guildId/snippets/:snippetId
- update an existing snippet - also needs to insert a SnippetUpdate, returns the updated data
DELETE /modmail/v1/guilds/:guildId/snippets/:snippetId
, returns the deleted snippet
CombinedError: Received one or more errors
at UnionValidator.handle (/root/mod/ModMail/node_modules/@sapphire/shapeshift/src/validators/UnionValidator.ts:111:21)
at UnionValidator.parse (/root/mod/ModMail/node_modules/@sapphire/shapeshift/src/validators/BaseValidator.ts:80:86)
at EmbedBuilder.setDescription (/root/mod/ModMail/node_modules/@discordjs/builders/src/messages/embed/Embed.ts:56:52)
at null.sendMemberThreadMessage (/root/mod/ModMail/packages/bot/src/util/sendMemberThreadMessage.ts:40:5)
at default_1.handle (/root/mod/ModMail/packages/bot/src/events/modmail/modmailMessageCreate.ts:114:9)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:384:10)
at processTicksAndRejections (node:internal/process/task_queues:85:21) {
errors: [
ExpectedValidationError: Expected values to be equals
at LiteralValidator.handle (/root/mod/ModMail/node_modules/@sapphire/shapeshift/src/validators/LiteralValidator.ts:17:17)
at LiteralValidator.run (/root/mod/ModMail/node_modules/@sapphire/shapeshift/src/validators/BaseValidator.ts:62:21)
at UnionValidator.handle (/root/mod/ModMail/node_modules/@sapphire/shapeshift/src/validators/UnionValidator.ts:106:29)
at UnionValidator.parse (/root/mod/ModMail/node_modules/@sapphire/shapeshift/src/validators/BaseValidator.ts:80:86)
at EmbedBuilder.setDescription (/root/mod/ModMail/node_modules/@discordjs/builders/src/messages/embed/Embed.ts:56:52)
at null.sendMemberThreadMessage (/root/mod/ModMail/packages/bot/src/util/sendMemberThreadMessage.ts:40:5)
at default_1.handle (/root/mod/ModMail/packages/bot/src/events/modmail/modmailMessageCreate.ts:114:9) {
validator: 's.literal(V)',
given: '',
expected: null
},
ExpectedConstraintError: Invalid string length
at Object.run (/root/mod/ModMail/node_modules/@sapphire/shapeshift/src/constraints/StringConstraints.ts:40:18)
at StringValidator.run (/root/mod/ModMail/node_modules/@sapphire/shapeshift/src/validators/BaseValidator.ts:66:24)
at UnionValidator.handle (/root/mod/ModMail/node_modules/@sapphire/shapeshift/src/validators/UnionValidator.ts:106:29)
at UnionValidator.parse (/root/mod/ModMail/node_modules/@sapphire/shapeshift/src/validators/BaseValidator.ts:80:86)
at EmbedBuilder.setDescription (/root/mod/ModMail/node_modules/@discordjs/builders/src/messages/embed/Embed.ts:56:52)
at null.sendMemberThreadMessage (/root/mod/ModMail/packages/bot/src/util/sendMemberThreadMessage.ts:40:5)
at default_1.handle (/root/mod/ModMail/packages/bot/src/events/modmail/modmailMessageCreate.ts:114:9) {
constraint: 's.string.lengthGreaterThanOrEqual',
given: '',
expected: 'expected.length >= 1'
}
]
}```
waiting on d.js to release its set of bug fixes on the feature first - currently blocked, but can be worked on in the meantime using discord.js@dev
- just that it won't be merged in that state
Turbo def has support for pkg filtering like this.
See internal discussion: https://canary.discord.com/channels/844192551561068547/1068221770110345226/1068990867563614278
Takes too long.
Clear and concise generalistic APIs to paginate data within Discord. More specifically:
pageCount - 1
, show page back and 24 elements, otherwise show page back, 23 elements and page frontPaginationStrategy
Buttons
SelectMenuOptions
SelectMenuPaginatorState
readonly page: number
, current pageSelectMenuPaginatorData<Strategy extends PaginationStrategy>
extends SelectMenuPaginatorState
pageLeftButton?: Strategy extends PaginationStrategy.Buttons ? APIButton : undefined
pageRightButton?: Strategy extends PaginationStrategy.Buttons ? APIButton : undefined
selectMenu: APISelectMenu
IStore
- simple KV, Map
-like storageSelectMenuPaginatorState
readonly size: number
, some sort of getter of how many states are being keptget(key: string) -> MaybePromise<SelectMenuPaginatorState>
setPage(key: string, state: number) -> MaybePromise<void>
has(key: string) -> MaybePromise<boolean>
delete(key: string) -> MaybePromise<boolean>
, boolean value indicating if the value existed to begin withSelectMenuPaginator<Strategy extends PaginationStrategy>
, wherenew (options: SelectMenuPaginatorOptions) => SelectMenuPaginator
, where SelectMenuPaginatorOptions
would hold the following fields:data: unknown[]
- the data one desires to paginate - this will leave on the class as an immutable property and cannot be changed for its lifetimekey: string
maxElementsPerPage?: number
- defaults to 25, cannot be lower than 1, cannot be higher than 25store: IStore
nextPage() -> Promise<SelectMenuPaginatorData>
, should throw if we're at the last pagepreviousPage() -> Promise<SelectMenuPaginatorData>
, should throw if we're at the first pagesetPage(page: number) -> Promise<SelectMenuPaginatorData>
, should throw if page is out of boundsgetData() -> Promise<SelectMenuPaginatorData>
, get current state without any mutationsdestroy() -> Promise<void>
clean-up own state from this.store
This will become a library under the @chatsift
namespace if it turns out well.
Use the Ultimate 💪Eslint 🤓 Config 🖥️ by Crawl!!!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.