Feed Channel

Describes a single feed channel. Owns a list of /datum/feed_message.
Vars | |
admin_locked | Whether the channel is admin-locked. |
---|---|
author | The author of the channel. |
author_ckey | The author's ckey |
backup_author | The fallback author name to display if the channel is censored. |
censored | Whether the channel is censored or not. |
channel_name | The name of the channel. |
description | The description of the channel. |
frozen | Whether the channel is frozen or not. |
icon | The channel's icon. |
is_public | Whether the channel is public or not. |
messages | Lazy list. Contains all /datum/feed_message pertaining to the channel. |
Procs | |
add_message | Adds a new story to the channel and network singleton. |
can_modify | Returns whether the given user can edit or delete this channel. |
can_publish | Returns whether the given user can publish new stories to this channel. |
clear | Clears the channel's information. |
get_announce_text | Returns the text to be said by newscasters when announcing new news from a channel. |
Var Details
admin_locked

Whether the channel is admin-locked.
author

The author of the channel.
author_ckey

The author's ckey
backup_author

The fallback author name to display if the channel is censored.
censored

Whether the channel is censored or not.
channel_name

The name of the channel.
description

The description of the channel.
frozen

Whether the channel is frozen or not.
icon

The channel's icon.
is_public

Whether the channel is public or not.
messages

Lazy list. Contains all /datum/feed_message pertaining to the channel.
Proc Details
add_message
Adds a new story to the channel and network singleton.
Arguments:
- M - The story to add.
can_modify
Returns whether the given user can edit or delete this channel.
Arguments:
- user - The user
- scanned_user - The user's identifying information on the newscaster
can_publish
Returns whether the given user can publish new stories to this channel.
Arguments:
- user - The user
- scanned_user - The user's identifying information on the newscaster
clear
Clears the channel's information.
Discards all owned stories.
get_announce_text
Returns the text to be said by newscasters when announcing new news from a channel.
Arguments:
- title - Optional. The headline to announce along with the channel's name. Typically the newest story's title.