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

Error #3

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions