mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 10:53:10 +00:00
Implement TextChannel.follow()
This commit is contained in:
@ -564,6 +564,12 @@ class HTTPClient:
|
||||
def get_webhook(self, webhook_id):
|
||||
return self.request(Route('GET', '/webhooks/{webhook_id}', webhook_id=webhook_id))
|
||||
|
||||
def follow_webhook(self, channel_id, webhook_channel_id):
|
||||
payload = {
|
||||
'webhook_channel_id': str(webhook_channel_id)
|
||||
}
|
||||
return self.request(Route('POST', '/channels/{channel_id}/followers', channel_id=channel_id), json=payload)
|
||||
|
||||
# Guild management
|
||||
|
||||
def get_guilds(self, limit, before=None, after=None):
|
||||
|
Reference in New Issue
Block a user