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 User17mo ago
Message Not Public
Sign In & Join Server To View
CanineData
CanineData17mo ago
You need ManageThreads permission iirc
Apokalypt
Apokalypt17mo ago
Ho, ManageThreads is the same as ManagePosts but for Forum ? Alright, thanks
CanineData
CanineData17mo ago
A forum is essentially a ThreadOnlyChannel
Want results from more Discord servers?
Add your server
More Posts