typingStart.js (567B)
1 const { ChannelType } = require("discord.js"); 2 const client = require(".."); 3 client.on("typingStart", async typing => { 4 if ( 5 !typing.user || 6 typing.user.bot || 7 !typing.channel || 8 typing.channel.type != ChannelType.DM 9 ) 10 return; 11 typing.user.send({ 12 content: 13 "```DMs is reserved for bug reports/suggestions/feedbacks/queries and is forwarded to the developers. Please refrain from using it as a clipboard or trying to run commands in here [by violating this condition, you agree to let us sell your data]```", 14 }); 15 });