Socket
Socket
Sign inDemoInstall

discord.js-typing-stop

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    discord.js-typing-stop

A module that adds a "typingStop" event to discord.js.


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

discord.js-typing-stop

A module that adds a "typingStop" event to discord.js.

The Discord API doesn't emit a TYPING_STOP event. How it works in the different clients, is that the animation starts playing on the TYPING_START event, and stops either after a few seconds have passed, or after the user has sent a message.

This module handles that for you!

Installation

npm install discord.js-typing-stop

Usage

The module exports a function, which you pass the Discord module to, and it will make the necessary changes. Here's an example:

const Discord = require("discord.js-typing-stop")(require("discord.js"))

The Client class of this module will start emitting typingStop events, with the same arguments that are passed to the typingStart event handler.

The User class of this module will have three new available properties; typing (boolean), typingChannelID (?Snowflake), and typingChannel (?Channel).

FAQs

Last updated on 14 Jul 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc