[PR #35] [MERGED] Implement mention for users, members and channels #73

Closed
opened 2026-02-15 23:16:31 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/stoatchat/python-client-sdk/pull/35
Author: @sniff122
Created: 4/6/2022
Status: Merged
Merged: 4/6/2022
Merged by: @Zomatree

Base: masterHead: master


📝 Commits (1)

  • ef0dfce Implement mention for users, members and channels

📊 Changes

3 files changed (+16 additions, -0 deletions)

View changed files

📝 revolt/channel.py (+6 -0)
📝 revolt/member.py (+5 -0)
📝 revolt/user.py (+5 -0)

📄 Description

Added a mention property to the revolt.Member, revolt.User and revolt.Channel classes

Example:

@property
def mention(self) -> str:
    """:class:`str`: Returns a string that allows you to mention the given user."""
    return f"<@{self.id}>

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/stoatchat/python-client-sdk/pull/35 **Author:** [@sniff122](https://github.com/sniff122) **Created:** 4/6/2022 **Status:** ✅ Merged **Merged:** 4/6/2022 **Merged by:** [@Zomatree](https://github.com/Zomatree) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`ef0dfce`](https://github.com/stoatchat/python-client-sdk/commit/ef0dfced50d6301c952f2245428e28c9506a9d21) Implement mention for users, members and channels ### 📊 Changes **3 files changed** (+16 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `revolt/channel.py` (+6 -0) 📝 `revolt/member.py` (+5 -0) 📝 `revolt/user.py` (+5 -0) </details> ### 📄 Description Added a `mention` property to the revolt.Member, revolt.User and revolt.Channel classes Example: ```py @property def mention(self) -> str: """:class:`str`: Returns a string that allows you to mention the given user.""" return f"<@{self.id}> ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 23:16:31 -05:00
yindo closed this issue 2026-02-15 23:16:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/python-client-sdk#73