Add mentions field to Reminders model#370
Conversation
MarkKoz
left a comment
There was a problem hiding this comment.
Is there any compelling reason we'd still need to track the author? Can we just lump their ID in with the rest of the mentions?
Currently, the More importantly, since I'm using an I'll address your other changes. |
|
Ah right we need to know the author cause we have a list reminders command. |
Since the mentions field stores static IDs and not foreign keys, there is no need to create the objects for the test.
To facilitate bot/#1026, this PR adds a field to store the IDs of Member and Role objects.
No validation is done other than ensuring the ID is greater than 0, since we just ignore the ID if it doesn't convert to a valid Member/Role object on the bot side.