171
rated 0 times
[
172]
[
1]
/ answers: 1 / hits: 8049
/ 3 Years ago, mon, may 17, 2021, 12:00:00
I'm having a problem with TypeScript compiler that expects a :
in 17, 5 but I can't understand why and where to put it, my code:
import { Client , TextChannel } from "discord.js";
module.exports = {
name: "ready",
run: async(client: Client) => {
client.user.setPresence({
activities: [{
name: "Aun en beta!"
}],
status: "idle"
})
let str = `-- censored --`
let channel: TextChannel;
channel = client.channels.cache.get('-- censored --')?
channel.send (str)
}
}
More From » typescript