-
public final class Config
-
-
Field Summary
Fields Modifier and Type Field Description private final DatecreatedAtprivate final DateupdatedAtprivate final Stringnameprivate final BooleantypingEventsEnabledprivate final BooleanreadEventsEnabledprivate final BooleanconnectEventsEnabledprivate final BooleansearchEnabledprivate final BooleanisReactionsEnabledprivate final BooleanisRepliesEnabledprivate final BooleanmuteEnabledprivate final BooleanuploadsEnabledprivate final BooleanurlEnrichmentEnabledprivate final BooleancustomEventsEnabledprivate final BooleanpushNotificationsEnabledprivate final StringmessageRetentionprivate final IntegermaxMessageLengthprivate final Stringautomodprivate final StringautomodBehaviorprivate final StringblocklistBehaviorprivate final List<Command>commands
-
Constructor Summary
Constructors Constructor Description Config(Date createdAt, Date updatedAt, String name, Boolean typingEventsEnabled, Boolean readEventsEnabled, Boolean connectEventsEnabled, Boolean searchEnabled, Boolean isReactionsEnabled, Boolean isRepliesEnabled, Boolean muteEnabled, Boolean uploadsEnabled, Boolean urlEnrichmentEnabled, Boolean customEventsEnabled, Boolean pushNotificationsEnabled, String messageRetention, Integer maxMessageLength, String automod, String automodBehavior, String blocklistBehavior, List<Command> commands)
-
Method Summary
Modifier and Type Method Description final DategetCreatedAt()Date of channel creation. final DategetUpdatedAt()Date of last channel update. final StringgetName()The name of the channel type must be unique per application final BooleangetTypingEventsEnabled()Controls if typing indicators are shown. final BooleangetReadEventsEnabled()Controls whether the chat shows how far you’ve read. final BooleangetConnectEventsEnabled()Determines if events are fired for connecting and disconnecting to a chat. final BooleangetSearchEnabled()Controls if messages should be searchable (this is a premium feature). final BooleangetIsReactionsEnabled()If users are allowed to add reactions to messages. final BooleangetIsRepliesEnabled()Enables message threads and replies. final BooleangetMuteEnabled()Determines if users are able to mute other users. final BooleangetUploadsEnabled()Allows image and file uploads within messages. final BooleangetUrlEnrichmentEnabled()Determines if URL enrichment enabled to show they as attachments. final BooleangetCustomEventsEnabled()final BooleangetPushNotificationsEnabled()final StringgetMessageRetention()A number of days or infinite. final IntegergetMaxMessageLength()The max message length. final StringgetAutomod()Disabled, simple or AI are valid options for the Automod. final StringgetAutomodBehavior()final StringgetBlocklistBehavior()final List<Command>getCommands()The commands that are available on this channel type, e.g. -
-
Constructor Detail
-
Config
Config(Date createdAt, Date updatedAt, String name, Boolean typingEventsEnabled, Boolean readEventsEnabled, Boolean connectEventsEnabled, Boolean searchEnabled, Boolean isReactionsEnabled, Boolean isRepliesEnabled, Boolean muteEnabled, Boolean uploadsEnabled, Boolean urlEnrichmentEnabled, Boolean customEventsEnabled, Boolean pushNotificationsEnabled, String messageRetention, Integer maxMessageLength, String automod, String automodBehavior, String blocklistBehavior, List<Command> commands)
-
-
Method Detail
-
getCreatedAt
final Date getCreatedAt()
Date of channel creation.
-
getUpdatedAt
final Date getUpdatedAt()
Date of last channel update.
-
getTypingEventsEnabled
final Boolean getTypingEventsEnabled()
Controls if typing indicators are shown. Enabled by default.
-
getReadEventsEnabled
final Boolean getReadEventsEnabled()
Controls whether the chat shows how far you’ve read. Enabled by default.
-
getConnectEventsEnabled
final Boolean getConnectEventsEnabled()
Determines if events are fired for connecting and disconnecting to a chat. Enabled by default.
-
getSearchEnabled
final Boolean getSearchEnabled()
Controls if messages should be searchable (this is a premium feature). Disabled by default.
-
getIsReactionsEnabled
final Boolean getIsReactionsEnabled()
If users are allowed to add reactions to messages. Enabled by default.
-
getIsRepliesEnabled
final Boolean getIsRepliesEnabled()
Enables message threads and replies. Enabled by default.
-
getMuteEnabled
final Boolean getMuteEnabled()
Determines if users are able to mute other users. Enabled by default.
-
getUploadsEnabled
final Boolean getUploadsEnabled()
Allows image and file uploads within messages. Enabled by default.
-
getUrlEnrichmentEnabled
final Boolean getUrlEnrichmentEnabled()
Determines if URL enrichment enabled to show they as attachments. Enabled by default.
-
getCustomEventsEnabled
final Boolean getCustomEventsEnabled()
-
getPushNotificationsEnabled
final Boolean getPushNotificationsEnabled()
-
getMessageRetention
final String getMessageRetention()
A number of days or infinite. "Infinite" by default.
-
getMaxMessageLength
final Integer getMaxMessageLength()
The max message length. 5000 by default.
-
getAutomod
final String getAutomod()
Disabled, simple or AI are valid options for the Automod. AI based moderation is a premium feature.
-
getAutomodBehavior
final String getAutomodBehavior()
-
getBlocklistBehavior
final String getBlocklistBehavior()
-
getCommands
final List<Command> getCommands()
The commands that are available on this channel type, e.g. /giphy.
-
-
-
-