mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Add 'mention' property in PartialWebhookChannel
This commit is contained in:
parent
52967ec103
commit
76eb126664
@ -660,6 +660,11 @@ class PartialWebhookChannel(Hashable):
|
|||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
return f'<PartialWebhookChannel name={self.name!r} id={self.id}>'
|
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):
|
class PartialWebhookGuild(Hashable):
|
||||||
"""Represents a partial guild for webhooks.
|
"""Represents a partial guild for webhooks.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user