gpt4 book ai didi

Discord.js v13 mention a role but it doesn't ping(Discord.js V13提到了一个角色,但它没有ping)

转载 作者:bug小助手 更新时间:2023-10-25 12:21:51 28 4
gpt4 key购买 nike



I have been trying to get my bot to ping a certain role by doing.

我一直试图让我的机器人通过这样做来ping某个角色。


client.channels.cache.get('927271117155074158').send(`<@&924403524027154513> nota is ${statestart}`)

And it will show the role like this how it shows in discord.

它将向这个角色展示它是如何在不和谐中表现出来的。


But it doesn't actualy ping the role.

但它实际上并没有影响到这个角色。


How do i ping the role?

我如何ping这个角色?


I am using Discord.js V13

我使用的是Discord.js V13


更多回答
优秀答案推荐

I figured it out.
I didn't know i had to allow role mentioning in the client

我想通了。我不知道我必须允许在客户中提到角色


        super({ intents, allowedMentions: { parse: ['roles'], repliedUser: false } });

更多回答

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com