From aede5105342b84df6c8a3930da3f1b6f4185a29c Mon Sep 17 00:00:00 2001 From: Erik Thorsell <108808053+erik-thorsell@users.noreply.github.com> Date: Thu, 8 Jun 2023 20:01:28 +0200 Subject: [PATCH] mentions updated --- nextguild/message.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nextguild/message.py b/nextguild/message.py index c2a614e..0996c69 100644 --- a/nextguild/message.py +++ b/nextguild/message.py @@ -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') diff --git a/pyproject.toml b/pyproject.toml index c101902..b57551e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" },