Skip to content
This repository has been archived by the owner on Aug 28, 2022. It is now read-only.

Error #3

Open
ghost opened this issue Aug 13, 2022 · 0 comments
Open

Error #3

ghost opened this issue Aug 13, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 13, 2022

Hi, i get this error when i run the project?
Terminal Error:
TSError: тип Unable to compile TypeScript:
src/services/handlers/guildCreate.handler.ts:17:25 - error TS2339: Property 'send' does not exist on type 'TextChannel'.
17 return channel?.send(Hey, I'm a Bot which is made from Star Bot Builder!);
~~~~

at createTSError (C:\Users\sunds\Desktop\wadwad\node_modules\ts-node\src\index.ts:434:12)
at reportTSError (C:\Users\sunds\Desktop\wadwad\node_modules\ts-node\src\index.ts:438:19)
at getOutput (C:\Users\sunds\Desktop\wadwad\node_modules\ts-node\src\index.ts:578:36)
at Object.compile (C:\Users\sunds\Desktop\wadwad\node_modules\ts-node\src\index.ts:775:32)
at Module.m._compile (C:\Users\sunds\Desktop\wadwad\node_modules\ts-node\src\index.ts:858:43)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Object.require.extensions.<computed> [as .ts] (C:\Users\sunds\Desktop\wadwad\node_modules\ts-node\src\index.ts:861:12)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (C:\Users\sunds\Desktop\wadwad\src\services\events.service.ts:7:1)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Module.m._compile (C:\Users\sunds\Desktop\wadwad\node_modules\ts-node\src\index.ts:858:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Object.require.extensions.<computed> [as .ts] (C:\Users\sunds\Desktop\wadwad\node_modules\ts-node\src\index.ts:861:12)

C:\Users\sunds\Desktop\wadwad>npm start
npm WARN config global --global, --local are deprecated. Use --location=global instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants