nyx/events/typingStart.js

16 lines
552 B
JavaScript
Raw Normal View History

2023-04-02 14:12:53 +02:00
const { ChannelType } = require("discord.js");
const client = require("..");
2021-09-21 01:51:56 +02:00
client.on("typingStart", async typing => {
2023-04-02 14:12:53 +02:00
if (
!typing.user ||
typing.user.bot ||
!typing.channel ||
typing.channel.type != ChannelType.DM
)
return;
2021-09-21 01:51:56 +02:00
typing.user.send({
content:
"```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]```",
});
});