How to check if the user has the permission "manage posts"

Hi, I would like to know how I can check if a user has the "ManagePosts" permission? Indeed, this permission doesn't seem to exist in DiscordJS but that's what it's called on Discord Versions - Discord.JS arrow 14.7.1 - Node.JS arrow 18.12.1 Code
// message: Message<true>
// thread: AnyThreadChannel<true>

const userId = message.author.id;
// The permission ManagePosts doesn't exist...
if (!thread.permissionsFor(userId)?.has("ManagePosts")) {
return;
}
// message: Message<true>
// thread: AnyThreadChannel<true>

const userId = message.author.id;
// The permission ManagePosts doesn't exist...
if (!thread.permissionsFor(userId)?.has("ManagePosts")) {
return;
}
4 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
CanineData
CanineData2y ago
You need ManageThreads permission iirc
Apokalypt
ApokalyptOP2y ago
Ho, ManageThreads is the same as ManagePosts but for Forum ? Alright, thanks
CanineData
CanineData2y ago
A forum is essentially a ThreadOnlyChannel
Want results from more Discord servers?
Add your server