scele forum¶
List discussions in a forum.
forum lists the discussions (threads) in one forum. It accepts either the forum's activity
cmid (what forums and course give you) or the raw forum instance id, and figures out
which one you handed it.
Each discussion carries a discussion id (d), the subject, who started it, when the last
reply landed, and how many replies there are. That d is what thread takes.
Usage¶
Arguments¶
| Argument | Required |
|---|---|
forum_id |
yes |
Options¶
| Flag | Type | Description |
|---|---|---|
--limit |
value | Max discussions to return. |
Example¶
Output¶

Returns:
Discussion
| Field | Type |
|---|---|
id |
string |
name |
string |
url |
string |
author |
string |
replies |
integer? |
last_post |
string |
created |
string |
unread |
integer? |
Notes¶
--limit Ncaps how many discussions come back; the newest are returned first.- An empty list is legitimate: many announcement forums genuinely have no discussions.