最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Send private message in a public channel discord.js - Stack Overflow

programmeradmin5浏览0评论

How do you create this in discord.js version 12.5.3. I mean that Only you can see this. I know how to send message to a channel using message.channel.send but how do I send the Only you can see this message. Thank you

How do you create this in discord.js version 12.5.3. I mean that Only you can see this. I know how to send message to a channel using message.channel.send but how do I send the Only you can see this message. Thank you

Share Improve this question asked Oct 2, 2021 at 13:17 Arya AnishArya Anish 6701 gold badge8 silver badges20 bronze badges 2
  • According to reddit./r/discordapp/ments/kqwgqe/… they are related to discord./developers/docs/interactions/application-mands – AKX Commented Oct 2, 2021 at 13:19
  • but how do I send it after on message event – Arya Anish Commented Oct 2, 2021 at 13:21
Add a ment  | 

1 Answer 1

Reset to default 6

There is no way of sending these types of "hidden" messages on Discord.js v12, it is feature introduced on v13 on Interactions. Which are related to slash mands and buttons.

Pretty sure you can not send them as it from message (or messageCreate) event.

You can read more about Ephemeral responses and maybe work on your implemention of slash mands to your bot

发布评论

评论列表(0)

  1. 暂无评论