Comments (4)
I cannot see the contents of the HasteBin link you posted. Could anyone else please confirm?
from revolt.js.
I cannot see the contents of the HasteBin link you posted. Could anyone else please confirm?
full log
node_modules/revolt-api/dist/index.d.ts:61:81 - error TS2536: Type '"path"' cannot be used to index type 'Routes'.
61 req<Method extends Methods, Routes extends PickRoutes<Method>, Path extends Routes['path'], Route extends Routes & {
~~~~~~~~~~~~~~
node_modules/revolt-api/dist/index.d.ts:64:44 - error TS2536: Type '"params"' cannot be used to index type 'Route'.
64 }>(method: Method, path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
~~~~~~~~~~~~~~~
node_modules/revolt-api/dist/index.d.ts:64:99 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
64 }>(method: Method, path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
~~~~~~~~~~~~~~~~~
node_modules/revolt-api/dist/index.d.ts:75:28 - error TS2536: Type '"params"' cannot be used to index type 'Route'.
75 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
~~~~~~~~~~~~~~~
node_modules/revolt-api/dist/index.d.ts:75:83 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
75 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
~~~~~~~~~~~~~~~~~
node_modules/revolt-api/dist/index.d.ts:86:29 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
86 }>(path: Path): Promise<Route['response']>;
~~~~~~~~~~~~~~~~~
node_modules/revolt-api/dist/index.d.ts:97:28 - error TS2536: Type '"params"' cannot be used to index type 'Route'.
97 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
~~~~~~~~~~~~~~~
node_modules/revolt-api/dist/index.d.ts:97:83 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
97 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
~~~~~~~~~~~~~~~~~
node_modules/revolt-api/dist/index.d.ts:108:29 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
108 }>(path: Path): Promise<Route['response']>;
~~~~~~~~~~~~~~~~~
node_modules/revolt-api/dist/index.d.ts:119:28 - error TS2536: Type '"params"' cannot be used to index type 'Route'.
119 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
~~~~~~~~~~~~~~~
node_modules/revolt-api/dist/index.d.ts:119:83 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
119 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
~~~~~~~~~~~~~~~~~
node_modules/revolt-api/dist/index.d.ts:130:29 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
130 }>(path: Path): Promise<Route['response']>;
~~~~~~~~~~~~~~~~~
node_modules/revolt-api/dist/index.d.ts:141:58 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
141 }>(path: Path, config?: AxiosRequestConfig): Promise<Route['response']>;
~~~~~~~~~~~~~~~~~
node_modules/revolt-api/dist/index.d.ts:152:29 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
152 }>(path: Path): Promise<Route['response']>;
~~~~~~~~~~~~~~~~~
node_modules/revolt-api/dist/index.d.ts:163:28 - error TS2536: Type '"params"' cannot be used to index type 'Route'.
163 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
~~~~~~~~~~~~~~~
node_modules/revolt-api/dist/index.d.ts:163:83 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
163 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
~~~~~~~~~~~~~~~~~
node_modules/revolt-api/dist/index.d.ts:174:29 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
174 }>(path: Path): Promise<Route['response']>;
~~~~~~~~~~~~~~~~~
node_modules/revolt.js/dist/Client.d.ts:85:15 - error TS2304: Cannot find name 'Session'.
85 session?: Session | string;
~~~~~~~
node_modules/revolt.js/dist/Client.d.ts:144:33 - error TS2304: Cannot find name 'Session'.
144 useExistingSession(session: Session): Promise<((username: string, loginAfterSuccess?: boolean | undefined) => Promise<void>) | undefined>;
~~~~~~~
node_modules/revolt.js/dist/websocket/notifications.d.ts:16:5 - error TS2304: Cannot find name 'Session'.
16 } & Session) | {
~~~~~~~
Found 20 errors in 3 files.
Errors Files
17 node_modules/revolt-api/dist/index.d.ts:61
2 node_modules/revolt.js/dist/Client.d.ts:85
1 node_modules/revolt.js/dist/websocket/notifications.d.ts:16
from revolt.js.
Still happening.
from revolt.js.
This was fixed at some point.
from revolt.js.
Related Issues (20)
- TypeError: Cannot read property 'low' of undefined HOT 1
- bug: Focus isn't allowed in api.patch "/users/@me" HOT 1
- bug: When fetching a member by user id from a server guild: the returned Member does not have a user property. HOT 5
- feat(ci): automatically bump revolt-api when applicable
- feat(ci): add automatic publish flow
- issue: importing revolt.js without skipLibCheck throws type errors HOT 2
- feat: add helper functions for generating preset attachment sizes
- bug: Error deleting a message after bot sends DM to user HOT 3
- bug: A simple CommonJS Bot, but: revolt-api/node_modules/axios: 404 error when someone joins server: http Request of members/00000000000000000000000000 HOT 3
- bug: If you restart revolt bot and someone leaves the server: serverMemberLeave event is not triggered. HOT 1
- bug: Can't install from git HOT 1
- bug: MessageReact event crashes with: TypeError: reactions.get is not a function HOT 1
- bug: update events don't use hydration key mappings
- bug: explicitly importing the ESM version fails
- feature request: add ability for client to delete emojis HOT 5
- bug: client.servers.fetch() not working due to missing permissions HOT 1
- feature request: Export Events Type
- bug: TextEmbed not working HOT 1
- TypeError: Cannot read properties of undefined (reading 'lastMessageId')
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from revolt.js.