aboutsummaryrefslogtreecommitdiffstats
path: root/slack/config.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-08-26 13:44:16 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commit5d1b7404d965235880813264a0a37bb3704810b4 (patch)
tree9609965ed1bcbb32242df5a353f62a051ed289e8 /slack/config.py
parent425db0016edb859c13c0e5aede03a469cfcb47ed (diff)
downloadwee-slack-5d1b7404d965235880813264a0a37bb3704810b4.tar.gz
Support rendering attachments
Diffstat (limited to 'slack/config.py')
-rw-r--r--slack/config.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/slack/config.py b/slack/config.py
index 5ea0cbc..4503709 100644
--- a/slack/config.py
+++ b/slack/config.py
@@ -132,6 +132,23 @@ class SlackConfigSectionLook:
callback_change=self.config_change_color_nicks_in_nicklist_cb,
)
+ self.color_message_attachments: WeeChatOption[
+ Literal["prefix", "all", "none"]
+ ] = WeeChatOption(
+ self._section,
+ "color_message_attachments",
+ "colorize attachments in a message: prefix = only colorize the prefix, all = colorize the whole line, none = don't colorize",
+ "prefix",
+ string_values=["prefix", "all", "none"],
+ )
+
+ self.display_link_previews = WeeChatOption(
+ self._section,
+ "display_link_previews",
+ "display previews of URLs in messages",
+ True,
+ )
+
self.display_reaction_nicks = WeeChatOption(
self._section,
"display_reaction_nicks",