Skip to content

Commit

Permalink
mentions updated
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-thorsell committed Jun 8, 2023
1 parent 549601e commit aede510
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nextguild/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(self, payload: dict):
self.is_silent: bool = message.get('isSilent', False)
# If message has no mentions it's empty
# TODO Model "mentions" attribute
self.mentions = [mention['id'] for mention in message.get('mentions', {}).get('users', [])]
self.mentions = message.get('mentions', {})
self.created_at: str = message.get('createdAt')
self.author_id: str = message.get('createdBy')
self.webhook_id: str = message.get('createdByWebhookId')
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "nextguild"
version = "1.1.6"
version = "1.1.7"
authors = [
{ name="Arjun Sharda", email="sharda.aj17@gmail.com" },
{ name="Erik Thorsell", email="contact@erikthorsell.com" },
Expand Down

0 comments on commit aede510

Please sign in to comment.