Advertisement
Guest User

error

a guest
Aug 1st, 2022
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.35 KB | None | 0 0
  1. root@vps:/revcord# npm install && npm run build
  2. npm WARN deprecated node-pre-gyp@0.11.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
  3.  
  4. added 181 packages, and audited 182 packages in 1m
  5.  
  6. 8 packages are looking for funding
  7. run `npm fund` for details
  8.  
  9. 2 vulnerabilities (1 moderate, 1 high)
  10.  
  11. To address all issues, run:
  12. npm audit fix
  13.  
  14. Run `npm audit` for details.
  15.  
  16. > revcord@1.1.1 build
  17. > tsc
  18.  
  19. node_modules/discord.js/typings/index.d.ts:1503:42 - error TS2344: Type 'MappedInteractionTypes<Cached>[T]' does not satisfy the constraint 'ModalSubmitInteraction<CacheType> | MessageComponentInteraction<CacheType>'.
  20. Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>> | ButtonInteraction<If<Cached, "cached", CacheType>> | SelectMenuInteraction<...> | ModalSubmitInteraction<...>' is not assignable to type 'ModalSubmitInteraction<CacheType> | MessageComponentInteraction<CacheType>'.
  21. Type 'ButtonInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'ModalSubmitInteraction<CacheType> | MessageComponentInteraction<CacheType>'.
  22. Type 'ButtonInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'MessageComponentInteraction<CacheType>'.
  23. Type 'MappedInteractionTypes<Cached>[T]' is not assignable to type 'MessageComponentInteraction<CacheType>'.
  24. Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>> | ButtonInteraction<If<Cached, "cached", CacheType>> | SelectMenuInteraction<...> | ModalSubmitInteraction<...>' is not assignable to type 'MessageComponentInteraction<CacheType>'.
  25. Type 'ButtonInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'MessageComponentInteraction<CacheType>'.
  26. Types of property 'channel' are incompatible.
  27. Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'GuildTextBasedChannel'.
  28. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [...] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
  29. Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
  30. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
  31. Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
  32. Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel | VoiceChannel' is not assignable to type 'GuildTextBasedChannel'.
  33. Type 'DMChannel' is not assignable to type 'GuildTextBasedChannel'.
  34. Type 'DMChannel' is missing the following properties from type 'ThreadChannel': archived, archivedAt, archiveTimestamp, _createdTimestamp, and 35 more.
  35. Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'VoiceChannel'.
  36. Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel | VoiceChannel' is not assignable to type 'VoiceChannel'.
  37. Type 'DMChannel' is missing the following properties from type 'VoiceChannel': videoQualityMode, editable, speakable, rateLimitPerUser, and 40 more.
  38. Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'VoiceChannel'.
  39. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'VoiceChannel'.
  40. Type 'NewsChannel' is not assignable to type 'VoiceChannel'.
  41. Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'VoiceChannel'.
  42. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [...] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'VoiceChannel'.
  43. Type 'NewsChannel' is missing the following properties from type 'VoiceChannel': videoQualityMode, editable, speakable, setBitrate, and 8 more.
  44.  
  45. 1503 } & MessageComponentCollectorOptions<MappedInteractionTypes<Cached>[T]>;
  46. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  47.  
  48. node_modules/discord.js/typings/index.d.ts:1511:49 - error TS2344: Type 'MappedInteractionTypes<Cached>[T]' does not satisfy the constraint 'ModalSubmitInteraction<CacheType> | MessageComponentInteraction<CacheType>'.
  49. Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>> | ButtonInteraction<If<Cached, "cached", CacheType>> | SelectMenuInteraction<...> | ModalSubmitInteraction<...>' is not assignable to type 'ModalSubmitInteraction<CacheType> | MessageComponentInteraction<CacheType>'.
  50. Type 'ButtonInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'ModalSubmitInteraction<CacheType> | MessageComponentInteraction<CacheType>'.
  51. Type 'ButtonInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'MessageComponentInteraction<CacheType>'.
  52. Type 'MappedInteractionTypes<Cached>[T]' is not assignable to type 'MessageComponentInteraction<CacheType>'.
  53. Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>> | ButtonInteraction<If<Cached, "cached", CacheType>> | SelectMenuInteraction<...> | ModalSubmitInteraction<...>' is not assignable to type 'MessageComponentInteraction<CacheType>'.
  54. Type 'ButtonInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'MessageComponentInteraction<CacheType>'.
  55. Types of property 'channel' are incompatible.
  56. Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'GuildTextBasedChannel'.
  57. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [...] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
  58. Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
  59. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
  60. Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
  61. Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel | VoiceChannel' is not assignable to type 'GuildTextBasedChannel'.
  62. Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'VoiceChannel'.
  63. Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel | VoiceChannel' is not assignable to type 'VoiceChannel'.
  64. Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'VoiceChannel'.
  65. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'VoiceChannel'.
  66. Type 'NewsChannel' is not assignable to type 'VoiceChannel'.
  67. Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'VoiceChannel'.
  68. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [...] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'VoiceChannel'.
  69. Type 'NewsChannel' is not assignable to type 'VoiceChannel'.
  70.  
  71. 1511 } & MessageChannelComponentCollectorOptions<MappedInteractionTypes<Cached>[T]>;
  72. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  73.  
  74. node_modules/discord.js/typings/index.d.ts:1518:35 - error TS2344: Type 'MappedInteractionTypes<Cached>[T]' does not satisfy the constraint 'Interaction<CacheType>'.
  75. Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>> | ButtonInteraction<If<Cached, "cached", CacheType>> | SelectMenuInteraction<...> | ModalSubmitInteraction<...>' is not assignable to type 'Interaction<CacheType>'.
  76. Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'Interaction<CacheType>'.
  77. Types of property 'channel' are incompatible.
  78. Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'GuildTextBasedChannel'.
  79. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [...] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
  80. Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
  81. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
  82. Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
  83. Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel | VoiceChannel' is not assignable to type 'GuildTextBasedChannel'.
  84. Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'VoiceChannel'.
  85. Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel | VoiceChannel' is not assignable to type 'VoiceChannel'.
  86. Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'VoiceChannel'.
  87. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'VoiceChannel'.
  88. Type 'NewsChannel' is not assignable to type 'VoiceChannel'.
  89. Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'VoiceChannel'.
  90. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [...] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'VoiceChannel'.
  91. Type 'NewsChannel' is not assignable to type 'VoiceChannel'.
  92.  
  93. 1518 InteractionCollectorOptions<MappedInteractionTypes<Cached>[T]>,
  94. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  95.  
  96. node_modules/discord.js/typings/index.d.ts:1593:27 - error TS2344: Type 'MappedInteractionTypes<Cached>[T]' does not satisfy the constraint 'Interaction<CacheType>'.
  97. Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>> | ButtonInteraction<If<Cached, "cached", CacheType>> | SelectMenuInteraction<...> | ModalSubmitInteraction<...>' is not assignable to type 'Interaction<CacheType>'.
  98. Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'Interaction<CacheType>'.
  99. Types of property 'channel' are incompatible.
  100. Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'GuildTextBasedChannel'.
  101. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [...] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
  102. Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
  103. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
  104. Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
  105. Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel | VoiceChannel' is not assignable to type 'GuildTextBasedChannel'.
  106. Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'VoiceChannel'.
  107. Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel | VoiceChannel' is not assignable to type 'VoiceChannel'.
  108. Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'VoiceChannel'.
  109. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'VoiceChannel'.
  110. Type 'NewsChannel' is not assignable to type 'VoiceChannel'.
  111. Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'VoiceChannel'.
  112. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [...] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'VoiceChannel'.
  113. Type 'NewsChannel' is not assignable to type 'VoiceChannel'.
  114.  
  115. 1593 ): InteractionCollector<MappedInteractionTypes<Cached>[T]>;
  116. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  117.  
  118. node_modules/revolt-api/dist/index.d.ts:61:81 - error TS2536: Type '"path"' cannot be used to index type 'Routes'.
  119.  
  120. 61 req<Method extends Methods, Routes extends PickRoutes<Method>, Path extends Routes['path'], Route extends Routes & {
  121. ~~~~~~~~~~~~~~
  122.  
  123. node_modules/revolt-api/dist/index.d.ts:64:44 - error TS2536: Type '"params"' cannot be used to index type 'Route'.
  124.  
  125. 64 }>(method: Method, path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
  126. ~~~~~~~~~~~~~~~
  127.  
  128. node_modules/revolt-api/dist/index.d.ts:64:99 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  129.  
  130. 64 }>(method: Method, path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
  131. ~~~~~~~~~~~~~~~~~
  132.  
  133. node_modules/revolt-api/dist/index.d.ts:75:28 - error TS2536: Type '"params"' cannot be used to index type 'Route'.
  134.  
  135. 75 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
  136. ~~~~~~~~~~~~~~~
  137.  
  138. node_modules/revolt-api/dist/index.d.ts:75:83 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  139.  
  140. 75 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
  141. ~~~~~~~~~~~~~~~~~
  142.  
  143. node_modules/revolt-api/dist/index.d.ts:86:29 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  144.  
  145. 86 }>(path: Path): Promise<Route['response']>;
  146. ~~~~~~~~~~~~~~~~~
  147.  
  148. node_modules/revolt-api/dist/index.d.ts:97:28 - error TS2536: Type '"params"' cannot be used to index type 'Route'.
  149.  
  150. 97 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
  151. ~~~~~~~~~~~~~~~
  152.  
  153. node_modules/revolt-api/dist/index.d.ts:97:83 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  154.  
  155. 97 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
  156. ~~~~~~~~~~~~~~~~~
  157.  
  158. node_modules/revolt-api/dist/index.d.ts:108:29 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  159.  
  160. 108 }>(path: Path): Promise<Route['response']>;
  161. ~~~~~~~~~~~~~~~~~
  162.  
  163. node_modules/revolt-api/dist/index.d.ts:119:28 - error TS2536: Type '"params"' cannot be used to index type 'Route'.
  164.  
  165. 119 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
  166. ~~~~~~~~~~~~~~~
  167.  
  168. node_modules/revolt-api/dist/index.d.ts:119:83 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  169.  
  170. 119 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
  171. ~~~~~~~~~~~~~~~~~
  172.  
  173. node_modules/revolt-api/dist/index.d.ts:130:29 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  174.  
  175. 130 }>(path: Path): Promise<Route['response']>;
  176. ~~~~~~~~~~~~~~~~~
  177.  
  178. node_modules/revolt-api/dist/index.d.ts:141:58 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  179.  
  180. 141 }>(path: Path, config?: AxiosRequestConfig): Promise<Route['response']>;
  181. ~~~~~~~~~~~~~~~~~
  182.  
  183. node_modules/revolt-api/dist/index.d.ts:152:29 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  184.  
  185. 152 }>(path: Path): Promise<Route['response']>;
  186. ~~~~~~~~~~~~~~~~~
  187.  
  188. node_modules/revolt-api/dist/index.d.ts:163:28 - error TS2536: Type '"params"' cannot be used to index type 'Route'.
  189.  
  190. 163 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
  191. ~~~~~~~~~~~~~~~
  192.  
  193. node_modules/revolt-api/dist/index.d.ts:163:83 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  194.  
  195. 163 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
  196. ~~~~~~~~~~~~~~~~~
  197.  
  198. node_modules/revolt-api/dist/index.d.ts:174:29 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  199.  
  200. 174 }>(path: Path): Promise<Route['response']>;
  201. ~~~~~~~~~~~~~~~~~
  202.  
  203. node_modules/revolt.js/dist/Client.d.ts:82:15 - error TS2304: Cannot find name 'Session'.
  204.  
  205. 82 session?: Session | string;
  206. ~~~~~~~
  207.  
  208. node_modules/revolt.js/dist/Client.d.ts:140:33 - error TS2304: Cannot find name 'Session'.
  209.  
  210. 140 useExistingSession(session: Session): Promise<((username: string, loginAfterSuccess?: boolean | undefined) => Promise<void>) | undefined>;
  211. ~~~~~~~
  212.  
  213. node_modules/revolt.js/dist/websocket/notifications.d.ts:16:5 - error TS2304: Cannot find name 'Session'.
  214.  
  215. 16 } & Session) | {
  216. ~~~~~~~
  217.  
  218.  
  219. Found 24 errors in 4 files.
  220.  
  221. Errors Files
  222. 4 node_modules/discord.js/typings/index.d.ts:1503
  223. 17 node_modules/revolt-api/dist/index.d.ts:61
  224. 2 node_modules/revolt.js/dist/Client.d.ts:82
  225. 1 node_modules/revolt.js/dist/websocket/notifications.d.ts:16
  226. root@vps:/revcord# rm revcord.sqlite
  227. root@vps:/revcord# npm install && npm run build
  228.  
  229. up to date, audited 182 packages in 689ms
  230.  
  231. 8 packages are looking for funding
  232. run `npm fund` for details
  233.  
  234. 2 vulnerabilities (1 moderate, 1 high)
  235.  
  236. To address all issues, run:
  237. npm audit fix
  238.  
  239. Run `npm audit` for details.
  240.  
  241. > revcord@1.1.1 build
  242. > tsc
  243.  
  244. node_modules/discord.js/typings/index.d.ts:1503:42 - error TS2344: Type 'MappedInteractionTypes<Cached>[T]' does not satisfy the constraint 'ModalSubmitInteraction<CacheType> | MessageComponentInteraction<CacheType>'.
  245. Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>> | ButtonInteraction<If<Cached, "cached", CacheType>> | SelectMenuInteraction<...> | ModalSubmitInteraction<...>' is not assignable to type 'ModalSubmitInteraction<CacheType> | MessageComponentInteraction<CacheType>'.
  246. Type 'ButtonInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'ModalSubmitInteraction<CacheType> | MessageComponentInteraction<CacheType>'.
  247. Type 'ButtonInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'MessageComponentInteraction<CacheType>'.
  248. Type 'MappedInteractionTypes<Cached>[T]' is not assignable to type 'MessageComponentInteraction<CacheType>'.
  249. Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>> | ButtonInteraction<If<Cached, "cached", CacheType>> | SelectMenuInteraction<...> | ModalSubmitInteraction<...>' is not assignable to type 'MessageComponentInteraction<CacheType>'.
  250. Type 'ButtonInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'MessageComponentInteraction<CacheType>'.
  251. Types of property 'channel' are incompatible.
  252. Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'GuildTextBasedChannel'.
  253. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [...] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
  254. Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
  255. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
  256. Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
  257. Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel | VoiceChannel' is not assignable to type 'GuildTextBasedChannel'.
  258. Type 'DMChannel' is not assignable to type 'GuildTextBasedChannel'.
  259. Type 'DMChannel' is missing the following properties from type 'ThreadChannel': archived, archivedAt, archiveTimestamp, _createdTimestamp, and 35 more.
  260. Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'VoiceChannel'.
  261. Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel | VoiceChannel' is not assignable to type 'VoiceChannel'.
  262. Type 'DMChannel' is missing the following properties from type 'VoiceChannel': videoQualityMode, editable, speakable, rateLimitPerUser, and 40 more.
  263. Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'VoiceChannel'.
  264. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'VoiceChannel'.
  265. Type 'NewsChannel' is not assignable to type 'VoiceChannel'.
  266. Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'VoiceChannel'.
  267. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [...] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'VoiceChannel'.
  268. Type 'NewsChannel' is missing the following properties from type 'VoiceChannel': videoQualityMode, editable, speakable, setBitrate, and 8 more.
  269.  
  270. 1503 } & MessageComponentCollectorOptions<MappedInteractionTypes<Cached>[T]>;
  271. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  272.  
  273. node_modules/discord.js/typings/index.d.ts:1511:49 - error TS2344: Type 'MappedInteractionTypes<Cached>[T]' does not satisfy the constraint 'ModalSubmitInteraction<CacheType> | MessageComponentInteraction<CacheType>'.
  274. Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>> | ButtonInteraction<If<Cached, "cached", CacheType>> | SelectMenuInteraction<...> | ModalSubmitInteraction<...>' is not assignable to type 'ModalSubmitInteraction<CacheType> | MessageComponentInteraction<CacheType>'.
  275. Type 'ButtonInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'ModalSubmitInteraction<CacheType> | MessageComponentInteraction<CacheType>'.
  276. Type 'ButtonInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'MessageComponentInteraction<CacheType>'.
  277. Type 'MappedInteractionTypes<Cached>[T]' is not assignable to type 'MessageComponentInteraction<CacheType>'.
  278. Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>> | ButtonInteraction<If<Cached, "cached", CacheType>> | SelectMenuInteraction<...> | ModalSubmitInteraction<...>' is not assignable to type 'MessageComponentInteraction<CacheType>'.
  279. Type 'ButtonInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'MessageComponentInteraction<CacheType>'.
  280. Types of property 'channel' are incompatible.
  281. Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'GuildTextBasedChannel'.
  282. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [...] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
  283. Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
  284. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
  285. Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
  286. Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel | VoiceChannel' is not assignable to type 'GuildTextBasedChannel'.
  287. Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'VoiceChannel'.
  288. Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel | VoiceChannel' is not assignable to type 'VoiceChannel'.
  289. Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'VoiceChannel'.
  290. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'VoiceChannel'.
  291. Type 'NewsChannel' is not assignable to type 'VoiceChannel'.
  292. Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'VoiceChannel'.
  293. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [...] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'VoiceChannel'.
  294. Type 'NewsChannel' is not assignable to type 'VoiceChannel'.
  295.  
  296. 1511 } & MessageChannelComponentCollectorOptions<MappedInteractionTypes<Cached>[T]>;
  297. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  298.  
  299. node_modules/discord.js/typings/index.d.ts:1518:35 - error TS2344: Type 'MappedInteractionTypes<Cached>[T]' does not satisfy the constraint 'Interaction<CacheType>'.
  300. Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>> | ButtonInteraction<If<Cached, "cached", CacheType>> | SelectMenuInteraction<...> | ModalSubmitInteraction<...>' is not assignable to type 'Interaction<CacheType>'.
  301. Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'Interaction<CacheType>'.
  302. Types of property 'channel' are incompatible.
  303. Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'GuildTextBasedChannel'.
  304. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [...] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
  305. Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
  306. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
  307. Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
  308. Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel | VoiceChannel' is not assignable to type 'GuildTextBasedChannel'.
  309. Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'VoiceChannel'.
  310. Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel | VoiceChannel' is not assignable to type 'VoiceChannel'.
  311. Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'VoiceChannel'.
  312. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'VoiceChannel'.
  313. Type 'NewsChannel' is not assignable to type 'VoiceChannel'.
  314. Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'VoiceChannel'.
  315. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [...] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'VoiceChannel'.
  316. Type 'NewsChannel' is not assignable to type 'VoiceChannel'.
  317.  
  318. 1518 InteractionCollectorOptions<MappedInteractionTypes<Cached>[T]>,
  319. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  320.  
  321. node_modules/discord.js/typings/index.d.ts:1593:27 - error TS2344: Type 'MappedInteractionTypes<Cached>[T]' does not satisfy the constraint 'Interaction<CacheType>'.
  322. Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>> | ButtonInteraction<If<Cached, "cached", CacheType>> | SelectMenuInteraction<...> | ModalSubmitInteraction<...>' is not assignable to type 'Interaction<CacheType>'.
  323. Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'Interaction<CacheType>'.
  324. Types of property 'channel' are incompatible.
  325. Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'GuildTextBasedChannel'.
  326. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [...] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
  327. Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
  328. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
  329. Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
  330. Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel | VoiceChannel' is not assignable to type 'GuildTextBasedChannel'.
  331. Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'VoiceChannel'.
  332. Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel | VoiceChannel' is not assignable to type 'VoiceChannel'.
  333. Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'VoiceChannel'.
  334. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'VoiceChannel'.
  335. Type 'NewsChannel' is not assignable to type 'VoiceChannel'.
  336. Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'VoiceChannel'.
  337. Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [...] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'VoiceChannel'.
  338. Type 'NewsChannel' is not assignable to type 'VoiceChannel'.
  339.  
  340. 1593 ): InteractionCollector<MappedInteractionTypes<Cached>[T]>;
  341. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  342.  
  343. node_modules/revolt-api/dist/index.d.ts:61:81 - error TS2536: Type '"path"' cannot be used to index type 'Routes'.
  344.  
  345. 61 req<Method extends Methods, Routes extends PickRoutes<Method>, Path extends Routes['path'], Route extends Routes & {
  346. ~~~~~~~~~~~~~~
  347.  
  348. node_modules/revolt-api/dist/index.d.ts:64:44 - error TS2536: Type '"params"' cannot be used to index type 'Route'.
  349.  
  350. 64 }>(method: Method, path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
  351. ~~~~~~~~~~~~~~~
  352.  
  353. node_modules/revolt-api/dist/index.d.ts:64:99 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  354.  
  355. 64 }>(method: Method, path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
  356. ~~~~~~~~~~~~~~~~~
  357.  
  358. node_modules/revolt-api/dist/index.d.ts:75:28 - error TS2536: Type '"params"' cannot be used to index type 'Route'.
  359.  
  360. 75 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
  361. ~~~~~~~~~~~~~~~
  362.  
  363. node_modules/revolt-api/dist/index.d.ts:75:83 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  364.  
  365. 75 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
  366. ~~~~~~~~~~~~~~~~~
  367.  
  368. node_modules/revolt-api/dist/index.d.ts:86:29 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  369.  
  370. 86 }>(path: Path): Promise<Route['response']>;
  371. ~~~~~~~~~~~~~~~~~
  372.  
  373. node_modules/revolt-api/dist/index.d.ts:97:28 - error TS2536: Type '"params"' cannot be used to index type 'Route'.
  374.  
  375. 97 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
  376. ~~~~~~~~~~~~~~~
  377.  
  378. node_modules/revolt-api/dist/index.d.ts:97:83 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  379.  
  380. 97 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
  381. ~~~~~~~~~~~~~~~~~
  382.  
  383. node_modules/revolt-api/dist/index.d.ts:108:29 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  384.  
  385. 108 }>(path: Path): Promise<Route['response']>;
  386. ~~~~~~~~~~~~~~~~~
  387.  
  388. node_modules/revolt-api/dist/index.d.ts:119:28 - error TS2536: Type '"params"' cannot be used to index type 'Route'.
  389.  
  390. 119 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
  391. ~~~~~~~~~~~~~~~
  392.  
  393. node_modules/revolt-api/dist/index.d.ts:119:83 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  394.  
  395. 119 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
  396. ~~~~~~~~~~~~~~~~~
  397.  
  398. node_modules/revolt-api/dist/index.d.ts:130:29 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  399.  
  400. 130 }>(path: Path): Promise<Route['response']>;
  401. ~~~~~~~~~~~~~~~~~
  402.  
  403. node_modules/revolt-api/dist/index.d.ts:141:58 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  404.  
  405. 141 }>(path: Path, config?: AxiosRequestConfig): Promise<Route['response']>;
  406. ~~~~~~~~~~~~~~~~~
  407.  
  408. node_modules/revolt-api/dist/index.d.ts:152:29 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  409.  
  410. 152 }>(path: Path): Promise<Route['response']>;
  411. ~~~~~~~~~~~~~~~~~
  412.  
  413. node_modules/revolt-api/dist/index.d.ts:163:28 - error TS2536: Type '"params"' cannot be used to index type 'Route'.
  414.  
  415. 163 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
  416. ~~~~~~~~~~~~~~~
  417.  
  418. node_modules/revolt-api/dist/index.d.ts:163:83 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  419.  
  420. 163 }>(path: Path, params: Route['params'], config?: AxiosRequestConfig): Promise<Route['response']>;
  421. ~~~~~~~~~~~~~~~~~
  422.  
  423. node_modules/revolt-api/dist/index.d.ts:174:29 - error TS2536: Type '"response"' cannot be used to index type 'Route'.
  424.  
  425. 174 }>(path: Path): Promise<Route['response']>;
  426. ~~~~~~~~~~~~~~~~~
  427.  
  428. node_modules/revolt.js/dist/Client.d.ts:82:15 - error TS2304: Cannot find name 'Session'.
  429.  
  430. 82 session?: Session | string;
  431. ~~~~~~~
  432.  
  433. node_modules/revolt.js/dist/Client.d.ts:140:33 - error TS2304: Cannot find name 'Session'.
  434.  
  435. 140 useExistingSession(session: Session): Promise<((username: string, loginAfterSuccess?: boolean | undefined) => Promise<void>) | undefined>;
  436. ~~~~~~~
  437.  
  438. node_modules/revolt.js/dist/websocket/notifications.d.ts:16:5 - error TS2304: Cannot find name 'Session'.
  439.  
  440. 16 } & Session) | {
  441. ~~~~~~~
  442.  
  443.  
  444. Found 24 errors in 4 files.
  445.  
  446. Errors Files
  447. 4 node_modules/discord.js/typings/index.d.ts:1503
  448. 17 node_modules/revolt-api/dist/index.d.ts:61
  449. 2 node_modules/revolt.js/dist/Client.d.ts:82
  450. 1 node_modules/revolt.js/dist/websocket/notifications.d.ts:16
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement