Commit graph

306 commits

Author SHA1 Message Date
iCrawl a92d19212d
ci: publishing dev version semver 2023-07-30 23:08:46 +02:00
Jiralite f83a8a58c9
feat: create-discord-bot (#9420)
* feat: basic initialisation

* fix: no scope

* chore: add options for issues

* feat: good word, Monbrey

* feat: basic README.md

* fix: no documentation for this

* feat: install for them

* chore: update licencing

* chore: fix year

* fix: build tsup

* feat: add TypeScript option

* feat: add `name` option

* chore: ignore annoying errors

* chore: add tsconfig.json

* refactor: remove name

We can just use the name of the directory instead.

* chore: update cliff jumper rc

* chore: bump dependencies

* chore: bump dependencies

* fix: build in prepack

* fix: configure ESLint correctly

* feat: infer package manager

* docs(packageManager): document `install()`

* fix(packageManager): do not emit a warning for `npm`

* refactor: change project name colour to yellow

* docs(constants): basic documentation

* feat: add link

* chore: add `verbatimModuleSyntax`

* chore: bump discord.js

* refactor: switch to @sapphire/ts-config

* refactor: file name changes

* refactor: tweak description

* chore: update yarn.lock

* fix: add .env

* chore: bump dependencies

* feat: event handler

* refactor: use `default`

* refactor: simpler event

* chore: bump discord.js

* fix: add release script and reorder

* style: reorder package.json

* chore: remove unneeded ignores

* chore: bump minimum Node.js version

* chore: add @types/node to TypeScript package.json

* chore: apply requested changes

Co-authored-by: Noel <buechler.noel@outlook.com>

* style: run ESLint + Prettier

* refactor: prefer "the"

* refactor: remove some comments

* feat: add ESLint + Prettier

* chore: requested changes

Co-authored-by: Noel <buechler.noel@outlook.com>

* chore: more requested changes

Co-authored-by: Noel <buechler.noel@outlook.com>

---------

Co-authored-by: Noel <buechler.noel@outlook.com>
2023-05-07 18:05:26 +02:00
iCrawl fc5b9c523b
ci: positional arguments 2023-05-06 17:00:27 +02:00
iCrawl 256b68bf9f
ci: pass push arguments to buildx 2023-05-06 16:54:08 +02:00
iCrawl d8d21cf370
chore: cloudflare sponsorship 2023-05-05 20:29:10 +02:00
Jaw0r3k 423bfce286
docs: Add bug/feature form for ui and util (#9504)
feat: add tags for other packages
2023-05-03 16:20:09 +00:00
iCrawl 7e875f6919
chore: refactor workspace 2023-05-03 02:14:22 +02:00
iCrawl 2e0804ae92
ci: update node version 2023-05-01 16:27:29 +02:00
iCrawl 71983cc5d1
ci: make package optional for docs upload 2023-05-01 16:02:05 +02:00
iCrawl 0f3d870ce6
ci: properly look for docs 2023-05-01 15:57:28 +02:00
iCrawl ce4e1fc2c6
ci: dramatically speed up docs building 2023-05-01 15:55:14 +02:00
Jiralite 77191a2e7b
docs: Add new issue form for applications (#9470) 2023-04-28 21:47:19 +02:00
Jiralite b49c5c9f48
ci: Fix issue triage (#9433) 2023-04-20 20:41:21 +02:00
Jiralite 0eb866357b
ci: Update actions (#9424) 2023-04-19 18:57:16 +02:00
iCrawl f883279ab3
ci: re-add pr triage for labels 2023-04-16 22:50:43 +02:00
iCrawl f1b2dec8e1
chore: add codeowners 2023-04-16 22:38:38 +02:00
iCrawl 83143178aa
ci: remove nextjs bundle analysis 2023-04-14 20:10:26 +02:00
iCrawl a0c57abadd
ci: uploading to before mv 2023-04-11 18:26:27 +02:00
iCrawl 311cab2d3f
build(website): build site from db data 2023-04-01 02:50:24 +02:00
iCrawl fd008f0144
ci: run specific version of node 2023-03-28 23:02:25 +02:00
iCrawl 8deef3e93f
ci: fix docker image build 2023-03-28 22:55:28 +02:00
iCrawl 89235f32b0
ci: docker image build for proxy 2023-03-28 22:47:48 +02:00
iCrawl d144a78813
ci: add lighthouse for prod 2023-03-23 23:11:13 +01:00
iCrawl 645e2d3d6b
ci: lighthouse score 2023-03-23 22:48:27 +01:00
Suneet Tipirneni ee5169e0aa
feat(website): render syntax and mdx on the server (#9086) 2023-03-23 22:17:41 +01:00
Jiralite 950fc47234
ci: Lock ancient issues (#9257)
ci: use dessant/lock-threads@v4
2023-03-20 19:35:58 +00:00
ckohen 6e481f0a30
ci: create publish release workflow (#9150)
* ci: create publish release workflow

* test: fix tests for formatTag

* ci(publish-release): fix string concat

* ci: release action runs with tag as source

* ci(publish-release): no longer testing

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-21 20:15:39 +00:00
ckohen 7f2ef962ec
test: fix coverage reporting (#9148)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-19 18:59:35 +00:00
Almeida 9439107a1d
feat(Client): guildAuditLogEntryCreate event (#9058)
* feat(Client): `guildAuditLogEntryCreate` event

* feat: add `targetId` and `executorId`

* types: `ApplicationCommand` fix

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-17 20:11:52 +00:00
SkanePrime b8684e0585
chore: fix \n breaks (#9116) 2023-02-17 20:36:40 +01:00
Jiralite 0e4224be36
ci: don't run issue triage on edit (#9113) 2023-02-08 22:00:26 +00:00
Jiralite 2e48faf91a
ci: Update issue labeller (#9064)
* ci: Add formatters issue label

* fix: "the" instead of "this"

* chore: add next
2023-01-17 18:54:56 +00:00
Parbez 8c265b628d
ci: automated issue labeler (#8873)
* ci: automated issue labeler

* ci: remove comment

* Apply suggestions from code review

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>

* ci: update labeler on new package

* chore: add core

* ci: add feature req too

* fix: update date

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
2023-01-13 10:28:14 +00:00
iCrawl a580768cda
ci: remove unnecessary build step 2023-01-12 12:18:32 +01:00
iCrawl 368b8ba73c
ci: always upload bundle on main 2023-01-12 12:01:42 +01:00
iCrawl d28af8eca7
ci: use pull request target for forks 2023-01-12 11:46:38 +01:00
iCrawl 4224d783bc
ci: fix accessing the base branch bundle 2023-01-12 11:32:09 +01:00
iCrawl 38e115b908
ci: make sure to run build command top-level 2023-01-12 11:15:23 +01:00
iCrawl 4cedc21dbb
ci: build packages before building docs 2023-01-12 11:06:24 +01:00
iCrawl 8d327aa416
ci: make sure to build legacy docgen 2023-01-12 11:01:00 +01:00
iCrawl 0a0c7d32d6
ci: update read path for comment 2023-01-12 10:54:13 +01:00
ckohen 859111f864
chore: init @discordjs/next (#8988)
Co-authored-by: Superchupu <53496941+SuperchupuDev@users.noreply.github.com>
Co-authored-by: Noel <buechler.noel@outlook.com>
Co-authored-by: Isidro Casiano <isidroICP@outlook.com>
2023-01-12 10:27:07 +01:00
iCrawl 4accb00b98
ci: only run documentation workflow if source files changes 2023-01-12 10:18:53 +01:00
iCrawl e042492486
ci: fix nextjs bundle analysis 2023-01-12 09:44:07 +01:00
iCrawl a995cbc0fa
ci: build website correctly 2023-01-10 13:59:18 +01:00
iCrawl 7ab62b4bb7
ci: add nextjs bundle checker 2023-01-10 13:52:11 +01:00
Jiralite 83eafb6146
chore: Add backport label (#8942) 2022-12-16 18:19:44 +01:00
iCrawl fb70df817c
ci: fix ref name 2022-12-03 17:05:37 +01:00
Suneet Tipirneni 3fca638a84
feat: add @discordjs/formatters (#8889)
* feat: add @discordjs/formatters

* chore: make requested changes

* chore: make requested changes

* chore: fix other places

* chore: make requested changes

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-02 12:55:00 +00:00
Almeida f13ff5c6d3
feat(createPackage): sort label files (#8892)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-01 10:02:44 +00:00
Jiralite 5e4331062b
chore: Add brokers to package list and labels in issue forms (#8893)
chore: add brokers and sort list

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-01 10:00:04 +00:00
Almeida fff3602a8a
fix(createPackage): invalid label/path on labeler file (#8891)
* fix(createPackage): invalid label/path on labeler file

* fix: `packages:ui` label
2022-12-01 09:55:31 +00:00
Jiralite e592852e42
ci: Fix typo for /core labels (#8878) 2022-11-28 19:15:10 +01:00
Jiralite ed68a1af5b
chore: Update /core constants (#8874) 2022-11-28 09:14:16 +01:00
Suneet Tipirneni 2127b32d26
feat: Add @discordjs/core (#8736)
* feat: add @discordjs/core

* chore: lint

* chore: add all gateway events

* chore: add the rest of the rest routes

* chore: cleanup gateway

* chore: rename gateway to client

* chore: rename gateway to client

* fix: don't spread unless we need to

* refactor: use classes and make requested changes

* chore: show shardId on emit

* chore: add interface for intrinsic props

* refactor: scope dispatch data instead of spreading

* chore: add utility for uploading files for messages and interactions

* feat: finish up form data handling

* chore: add readme

* chore: update api-extractor stuff

* chore: bump deps

* chore: make requested changes

* chore: make requested changes

* Update package.json

* chore: make requested changes

* fix: add missing interaction responses

* chore: make some requested changes

* chore: remove `return await`

* chore: use autoModeration instead of automod

* refactor: use snowflakes and -types results

* chore: sort imports, fix return type on editUserVoiceState

* chore: rename bots to users

* feat: add automod dispatch events

* refactor: move templates and members into guild

* fix: use users instead of bots in api class

* chore: imports

* chore: make requested changes

* fix: don't make files required on interaction replies

* fix: rename sendMessage to createMessage

* feat: add application command routes

* feat: add webhook.execute overloads and options to invites.get

* chore: use create prefixes

* chore: seperate interaction params

* chore: use Id

* chore: make requested changes

* chore: make requested changes

* chore: make requested changes

* chore: for -> from

* Apply suggestions from code review

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>

* Update packages/core/README.md

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>

* chore: make requested changes

* chore: update -types

* chore: bump vitest

* fix: sticker uploading

* fix: lockfile

* chore: make requested changes

* chore: make requested changes

* Update packages/core/src/api/applicationCommands.ts

Co-authored-by: Almeida <almeidx@pm.me>

* Apply suggestions from code review

Co-authored-by: Aura Román <kyradiscord@gmail.com>

* Update packages/core/README.md

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>

Co-authored-by: almeidx <almeidx@pm.me>
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
Co-authored-by: Aura Román <kyradiscord@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-11-27 21:23:13 +00:00
iCrawl 56d086022f
ci: fetch all branches 2022-11-25 20:13:03 +01:00
iCrawl ac0851b5b1
ci: fetch with a depth of 5 2022-11-25 19:55:45 +01:00
iCrawl db346e014f
ci: don't forward filter option 2022-11-25 19:19:57 +01:00
iCrawl 8f5b167483
build: only run scripts on changed content 2022-11-25 19:15:44 +01:00
Jiralite fd4ba5eaba
feat: Auto Moderation (#7938)
* feat: initial AutoMod commit

* types: Typo in class name

Co-authored-by: Jonathan <54381371+axisiscool@users.noreply.github.com>

* refactor: move things around

* refactor: remove undocumented property

* chore: add new intents to issue form

* feat: add initial basic manager

* feat(AutoModRule): add new properties

* feat: add events

* feat(GuildAuditLog): cache rules

* refactor: move JSDoc to where it is actually used

* refactor(AutoModRule): add `_patch()` method

* feat(AutoModRuleManager): add resolvers

* feat(Sweepers): add new manager

* types: nullify first parameter of `autoModerationRuleUpdate`

* types: add manager to `Caches`

* docs(AutoModRule): update `metadata` docstring

* feat: add execution event

* fix(AutoModActionExecution): export class

* refactor(AutoModRule): `triggerType` is not modifiable

* docs(AutoModRule): link class

* feat: add trigger metadata definitions

* docs(AutoModRule): typos

* feat(AutoModRule): action metadata

* types: Proper casing of name

Co-authored-by: MateoDeveloper <79017590+Mateo-tem@users.noreply.github.com>

* refactor: only patch data if exists

* types: `preset` is an array

* types(AutoModRuleActionMetadata): nullify all

* feat(AutoModRuleManager): add `fetch()`

* docs(AutoModRule): tweak some wording

* docs(AutoModRule): use "array" over "list"

* docs(AutoModRuleResolvable): fix union

* types: adjust some names

* feat(AutoModRuleManager): add `create()`

* feat(AutoModRuleManager): add `delete()`

* refactor: prefer full auto moderation name

* docs(AutoModerationRuleManager): fix a fetch example

* refactor(Sweepers): alphabetise methods

* chore: remove testing

* fix(AutoModerationRuleCreateOptions): add `reason`

* fix: typo for `presets`

* fix(AutoModerationRuleCreateOptions): `actions` is required

* fix(AutoModerationRuleManager): handle properties that are unrequired

* feat(AutoModerationRuleManager): add `edit()`

* feat(GuildAuditLogsEntry): add auto moderation rules

* refactor: prefer "AutoModerationActionExecutionAction"

* refactor: annotate todos and doc fixes

* feat(AutoModerationRule): add guild getter

* docs(AutoModerationRule): rule -> auto moderation rule

* docs(AutoModerationRuleEditOptions): `eventType` is optional

* feat(AutoModerationRule): add helpers

* docs: random string updates

* chore: add TODOs

* feat(AutoModerationActionExecution): add helpers

* feat: support role and channel resolvables

* chore: high priority todo to keep me in solitary

* refactor(AutoModerationActionMetadataOptions): allow resolvables

* chore: tidy up from merge

* docs(AutoModerationRule): document extension

* feat: export `AutoModerationRuleManager`

* chore(ActionsManager): add new actions

* chore: add to websocket index

* refactor(AutoModerationActionExecution): send the guild across

* docs(AutoModerationActionExecution): typo

* docs(AutoModerationRule): deduplicate a word

* docs(Guild): dot

* test: add some basic tests

* docs(AutoModerationRuleManager): fetch is optional

* docs(AutoModerationActionExecution): prefer non-links

* types: `presets` is an array of numbers

* docs(AutoModerationRuleEditOptions): `name` is optional

* docs(AutoModerationRule): fix type for `exemptChannels`

* docs(AutoModerationRuleUpdateAction): remove "object"

* feat: add `allow_list`

* fix(GuildAuditLogsEntry): pass guild

* docs(AutoModerationRuleManager): correct fetch example

* chore: prettier

* refactor: remove unneeded optional chaining operator

* feat: add mention limit

* docs(AutoModerationRuleManager): document new requirement

* refactor: conform to message content intent

* docs: document permission for event

* docs: refactor intent message

* docs: dot

* docs: remove string in link

* refactor: document upstream changes

* fix(AutoModerationRuleDelete): Correct event fire

Co-authored-by: GoldenAngel <50855202+GoldenAngel2@users.noreply.github.com>

* feat(AutoModerationRule): Add `setMentionTotalLimit()` helper method

* feat(AuditLogEntries): add new extra fields

* types: add `guild` in constructors

* types: update typings

* refactor(AutoModerationRuleManager): `&&` shorthand

* types: remove leftover type

* chore: types

* docs: update API types

* docs: Tweak guild wording

Co-authored-by: Aura Román <kyradiscord@gmail.com>

* feat: add regular expression matching

* docs: update `allowList` wording

* refactor: deduplicate `guildId`

Co-authored-by: Jonathan <54381371+axisiscool@users.noreply.github.com>
Co-authored-by: MateoDeveloper <79017590+Mateo-tem@users.noreply.github.com>
Co-authored-by: GoldenAngel <50855202+GoldenAngel2@users.noreply.github.com>
Co-authored-by: Aura Román <kyradiscord@gmail.com>
2022-11-19 22:06:13 +00:00
Suneet Tipirneni abefc4f809
docs: add section on testing local changes (#8802)
* docs: add section on testing local changes

* chore: use the root command for watching

* Update .github/CONTRIBUTING.md

Co-authored-by: Almeida <almeidx@pm.me>

* Update .github/CONTRIBUTING.md

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>

* Update .github/CONTRIBUTING.md

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>

* Update .github/CONTRIBUTING.md

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>

Co-authored-by: Almeida <almeidx@pm.me>
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-11-19 21:17:19 +00:00
iCrawl c0e3629f64
ci: properly cache yarn deps 2022-10-20 02:52:59 +02:00
DD bf9aa1858d
feat: @discordjs/brokers (#8548) 2022-10-13 22:20:36 +02:00
iCrawl e8f63617a2
chore: deps 2022-10-11 16:01:45 +02:00
iCrawl 5bfb61d5b8
ci: fix documentation workflow 2022-10-10 21:38:11 +02:00
iCrawl 3ed668e539
chore: move website and guide out of packages 2022-10-10 01:22:48 +02:00
iCrawl dc31b76465
ci: update workflow for tags 2022-10-08 16:33:37 +02:00
Noel 0ac3e766bd
feat: web-components (#8715) 2022-10-07 06:56:13 +02:00
Suneet Tipirneni f85022162d
feat(scripts): Add script to create a @discordjs package (#8711) 2022-10-07 02:38:58 +02:00
Noel 2628659747
feat: astro guide (#8714) 2022-10-06 23:53:35 +02:00
iCrawl 0b8651cf85
chore: remove building package docs with old docgen 2022-10-03 14:32:40 +02:00
iCrawl bf92172d80
chore(util): release @discordjs/util@0.1.0 2022-10-03 14:08:03 +02:00
Suneet Tipirneni b2ec865765
feat: add @discordjs/util (#8591)
* feat: add @discordjs/util

* fix: builders test

* refactor: make rest use lazy for ESM import

* chore: make requested changes

* Apply suggestions from code review

Co-authored-by: Parbez <imranbarbhuiya.fsd@gmail.com>
Co-authored-by: A. Román <kyradiscord@gmail.com>

* chore: make requested changes and add tests

* chore: regen lockfile

* test: add type tests

* chore: push missing files

* chore: make requested changes

* chore: update CI stuff

* chore: fix lockfile

* chore: make requested changes

Co-authored-by: Parbez <imranbarbhuiya.fsd@gmail.com>
Co-authored-by: A. Román <kyradiscord@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-02 18:00:31 +00:00
A. Román 1398af66f0
chore(github): resolved typos in issue templates (#8564) 2022-08-29 18:04:37 +02:00
iCrawl 7623fc552e
ci: don't double check inputs 2022-08-22 12:11:45 +02:00
iCrawl 74740260a7
ci: fix if statement, again 2022-08-17 23:51:07 +02:00
iCrawl 1008e3d4a7
ci: fix if check 2022-08-17 23:46:22 +02:00
Jiralite 7701331b1c
ci: Remove management of chore label (#8508)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-08-17 20:12:54 +00:00
iCrawl c99b808882
ci: fix workflow 2022-08-16 16:24:07 +02:00
iCrawl 501945215b
ci: use concurrency 2022-08-16 11:00:17 +02:00
iCrawl 5f42b5af30
feat: fetch from local when developing or CI build 2022-08-15 19:13:01 +02:00
iCrawl 1e00f5789e
chore: enable kodiak for auto merges 2022-08-15 16:56:30 +02:00
iCrawl d09ef1e425
build: switch back to turbo for speedz 2022-08-15 14:19:17 +02:00
iCrawl c052f56f3e
ci: fix typechecking in ci 2022-08-15 00:42:33 +02:00
iCrawl 4cf265c7c6
ci: exclude shared match 2022-08-14 21:21:17 +02:00
iCrawl 3ec7ef07a0
ci: correctly reference job 2022-08-14 21:17:12 +02:00
iCrawl 90e7aea443
ci: check for shared additionally to packages 2022-08-14 21:04:51 +02:00
iCrawl 1211c7fc10
ci: fix dependency 2022-08-14 20:12:58 +02:00
iCrawl 84a4b1f58a
ci: only test run affected packages 2022-08-14 20:12:02 +02:00
Parbez c479d39a6b
chore: build only actions (#8383) 2022-07-29 11:19:54 +02:00
iCrawl 9ae461d84d
chore: rename docker publish 2022-07-24 18:51:26 +02:00
iCrawl 160487d866
chore: fix dockerbuild and add ws props everywhere 2022-07-24 18:49:06 +02:00
Suneet Tipirneni 335695c698
refactor: use next links (#8344)
* chore(website): use next links

* chore: fix deploy check

* chore: use ligher syntax highlighter
2022-07-24 15:14:18 +02:00
iCrawl 96b62b6539
ci: rename files to match better naming 2022-07-20 22:33:23 +02:00
iCrawl 8a6ee906a7
ci: better naming for ci 2022-07-20 20:24:09 +02:00
iCrawl 45c9659080
ci: fix vercel deploy check 2022-07-20 19:03:48 +02:00
iCrawl 07a5cd7048
ci: check deploy branch vercel 2022-07-20 18:49:24 +02:00
iCrawl a05386a46c
ci: fix docs and dev publishes 2022-07-20 17:22:57 +02:00
iCrawl 4ffd7f9f80
chore: vercel banner 2022-07-19 18:26:03 +02:00
iCrawl 78d013f87c
ci: fix building before linting/testing 2022-07-18 14:20:11 +02:00