aboutsummaryrefslogtreecommitdiffstats
path: root/api/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/models.py')
-rw-r--r--api/models.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/api/models.py b/api/models.py
index bb3489d0..abbaa8bc 100644
--- a/api/models.py
+++ b/api/models.py
@@ -226,6 +226,18 @@ class Message(ModelReprMixin, models.Model):
on_delete=models.CASCADE,
help_text="The author of this message."
)
+ channel_id = models.BigInteger(
+ help_text=(
+ "The channel ID that this message was "
+ "sent in, taken from Discord."
+ ),
+ validators=(
+ MinValueValidator(
+ limit_value=0,
+ message="Channel IDs cannot be negative."
+ ),
+ )
+ )
content = models.CharField(
max_length=2_000,
help_text="The content of this message, taken from Discord."