Skip to content

$guildCreatePost

$guildCreatePost will create a post within a guild forum.

Usage

$guildCreatePost[forumId;name;content;autoArchiveDuration?;returnId?;reason?;...appliedTags?]

Parameters

FieldTypeDescriptionRequired
forumIdnumberThe ID of the forum channel.true
namestringThe name of the forum post.true
contentstringThe content of the start message.true
autoArchiveDuration?numberThe automatic archive duration of the forum post.
- 1440 (one day)
- 60 (one hour)
- 10080 (one week / default)
- 4320 (three days)
false
returnId?booleanReturn the ID of the newly created forum post?false
reason?stringThe reason displayed in the guild’s audit logs.false
…appliedTags?stringThe applied post tags. Optional when the forum channel does not require tags.false

Example(s)

This will create a post in the given forum with the name “this is a post” with an embed and a button attached to the message:

1
client.command({
2
name: "guildCreatePost",
3
code: `
4
$guildCreatePost[forumId;This is a Post!;Hello! {newEmbed:{title:This is an embed!}} {actionRow:{button:Button:primary:customId:false}};10080;true]
5
`
6
});