import { type CreateNewDiscussionTopicParams } from "https://deno.land/x/gesso@v0.1.2/types/params.ts";
Properties
Whether this topic is published (true) or draft state (false). Only teachers and TAs have the ability to create draft state topics.
If a timestamp is given, the topic will not be published until that time.
If a timestamp is given, the topic will be scheduled to lock at the provided timestamp. If the timestamp is in the past, the topic will be locked.
If true, the podcast will include posts from students as well. Implies podcast_enabled.
If true then a user may not respond to other replies until that user has made an initial reply. Defaults to false.
To create an assignment discussion, pass the assignment parameters as a sub- object. See the Create an Assignment API for the available parameters. The name parameter will be ignored, as it's taken from the discussion title. If you want to make a discussion that was an assignment NOT an assignment, pass set_assignment = false as part of the assignment object
If true, this topic is an announcement. It will appear in the announcement's section rather than the discussions section. This requires announcment-posting permissions.
By default, discussions are sorted chronologically by creation date, you can pass the id of another topic to have this one show up after the other when they are listed.
If present, the topic will become a group discussion assigned to the group.
A multipart/form-data form-field-style attachment. Attachments larger than 1 kilobyte are subject to quota restrictions.
A comma-separated list of sections ids to which the discussion topic should be made specific to. If it is not desired to make the discussion topic specific to sections, then this parameter may be omitted or set to “all”. Can only be present only on announcements and only those that are for a course (as opposed to a group).