Sign In

typingStart

This event is fired when a user starts typing in a channel

v1.4.0+

Register the event

Enable typingStart in events and include the required gateway intents in your ForgeClient options in index.js:

const { ForgeClient } = require("@tryforge/forgescript")

const client = new ForgeClient({
  events: [
    "typingStart"
  ],
  intents: [
    "GuildMessageTyping",
    "DirectMessageTyping"
  ]
})

Handle the event

Listen and react when typingStart is triggered using an inline command or an external handler file:

client.commands.add({
  type: "typingStart",
  code: `$log[typingStart event was triggered!]`
})

Required Intents

Listening to this event requires:
GuildMessageTyping DirectMessageTyping

Was this page helpful?