Models
django_slack_tools.slack_messages.models
SlackMention
Bases: TimestampMixin
, Model
People or group in channels receive messages.
Source code in django_slack_tools/slack_messages/models/mention.py
mention: str
property
Mention string for use in messages, e.g. "<@{USER_ID}>"
.
MentionType
Bases: TextChoices
Possible mention types.
Source code in django_slack_tools/slack_messages/models/mention.py
GROUP = ('G', _('Group'))
class-attribute
instance-attribute
Team mentions. e.g. @backend
.
SPECIAL = ('S', _('Special'))
class-attribute
instance-attribute
Special mentions. e.g. @here
, @channel
, @everyone
.
UNKNOWN = ('?', _('Unknown'))
class-attribute
instance-attribute
Unknown mention type.
USER = ('U', _('User'))
class-attribute
instance-attribute
User mentions. e.g. @lasuillard
.
SlackMessage
Bases: TimestampMixin
, Model
An Slack message.
Source code in django_slack_tools/slack_messages/models/message.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
|
SlackMessageRecipient
Bases: TimestampMixin
, Model
People or group in channels receive messages.
Source code in django_slack_tools/slack_messages/models/message_recipient.py
SlackMessagingPolicy
Bases: TimestampMixin
, Model
An Slack messaging policy which determines message content and those who receive messages.
Source code in django_slack_tools/slack_messages/models/messaging_policy.py
TemplateType
Bases: TextChoices
Possible template types.
Source code in django_slack_tools/slack_messages/models/messaging_policy.py
DICT = ('D', _('Dictionary'))
class-attribute
instance-attribute
Dictionary-based template.
DJANGO = ('DJ', _('Django'))
class-attribute
instance-attribute
Django XML-based template.
DJANGO_INLINE = ('DI', _('Django Inline'))
class-attribute
instance-attribute
Django inline template.
UNKNOWN = ('?', _('Unknown'))
class-attribute
instance-attribute
Unknown template type.