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 } });
更多回答
我是一名优秀的程序员,十分优秀!