Browse Source

Add 'mention' property in PartialWebhookChannel

pull/10102/head
Gooraeng 2 months ago
committed by GitHub
parent
commit
76eb126664
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      discord/webhook/async_.py

5
discord/webhook/async_.py

@ -660,6 +660,11 @@ class PartialWebhookChannel(Hashable):
def __repr__(self) -> str:
return f'<PartialWebhookChannel name={self.name!r} id={self.id}>'
@property
def mention(self) -> str:
""":class:`str`: The string that allows you to mention the channel that the webhook is following."""
return f'<#{self.id}>'
class PartialWebhookGuild(Hashable):
"""Represents a partial guild for webhooks.

Loading…
Cancel
Save