Skip to content

Commit 7c11b85

Browse files
IanMitchellRodentman87ckohen
authored
Finalize discord-request v1 (#149)
Co-authored-by: Maisy <rodentman87@gmail.com> Co-authored-by: ckohen <chaikohen@gmail.com>
1 parent 1a0201f commit 7c11b85

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+5457
-10786
lines changed

.changeset/late-windows-compare.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"discord-edge-runner": patch
3+
---
4+
5+
Updates package to run on the new esbuild API

.changeset/shy-taxis-ring.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"discord-verify": patch
3+
---
4+
5+
Corrects documentation style errors

.changeset/sour-fishes-yawn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"discord-request": major
3+
---
4+
5+
Initial release of discord-request. Use this package to quickly interact with the Discord API

.changeset/three-dodos-tan.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"discord-error": patch
3+
---
4+
5+
Corrects a bug when parsing Error Groups

.eslintrc.cjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
module.exports = {
22
parser: "@typescript-eslint/parser",
3-
env: {
4-
node: true,
5-
},
63
plugins: ["@typescript-eslint", "eslint-plugin-tsdoc"],
74
extends: ["xo", "xo-typescript", "prettier"],
5+
ignorePatterns: [".eslintrc.cjs"],
86
rules: {
97
"@typescript-eslint/ban-types": 0,
108
"@typescript-eslint/prefer-literal-enum-member": 0,
119
"@typescript-eslint/naming-convention": 0,
1210
"@typescript-eslint/parameter-properties": 0,
11+
"@typescript-eslint/member-ordering": 0,
1312
"@typescript-eslint/consistent-type-imports": [
1413
"error",
1514
{ prefer: "type-imports" },

.github/actions/setup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Setup
22
runs:
33
using: "composite"
44
steps:
5-
- name: Install Node.js 18.x
5+
- name: Install Node.js 18.16.0
66
uses: actions/setup-node@v2
77
with:
8-
node-version: 18.x
8+
node-version: 18.16.0
99
cache: npm
1010
registry-url: "https://registry.npmjs.org"
1111

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@
2626
},
2727
"[markdown]": {
2828
"editor.defaultFormatter": "esbenp.prettier-vscode"
29-
}
29+
},
30+
"eslint.runtime": "node"
3031
}

apps/flint/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
"name": "flint-bot",
33
"main": "./src/app.ts",
44
"type": "module",
5+
"private": true,
56
"scripts": {
7+
"clean": "rimraf .turbo .ikit",
68
"deploy": "ikit deploy",
7-
"bot": "DEBUG=* ikit dev",
9+
"bot": "DEBUG=* DEBUG_HIDE_DATE=ON ikit dev",
810
"typecheck": "tsc --noEmit",
911
"prettier": "prettier src/**/*.ts --check",
1012
"lint": "eslint ./src/**/*.ts"
@@ -14,7 +16,7 @@
1416
},
1517
"platform": "node",
1618
"dependencies": {
17-
"interaction-kit": "file:../../packages/interaction-kit",
19+
"interaction-kit": "0.2.4",
1820
"esbuild": "0.15.13"
1921
}
2022
}

apps/flint/src/app.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
import { Application } from "interaction-kit";
1+
import { Application, PlatformAlgorithm } from "interaction-kit";
22
import PingCommand from "./commands/ping.js";
33

44
export default new Application({
55
applicationId: process.env.APPLICATION_ID!,
66
publicKey: process.env.PUBLIC_KEY!,
77
token: process.env.TOKEN!,
8+
platform:
9+
process.env.ENVIRONMENT === "production"
10+
? PlatformAlgorithm.VercelProd
11+
: PlatformAlgorithm.VercelDev,
812
}).addCommand(PingCommand);

0 commit comments

Comments
 (0)