aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-06-24 20:26:58 -0400
committerRapptz <[email protected]>2017-06-24 20:26:58 -0400
commit72780e7737e333b0018959be75021fb8950deeb0 (patch)
tree325c14d1b5457398141b995eb6a8f18a5197b28b
parent[commands] Ensure that Context.command is the command in Command.can_run (diff)
downloaddiscord.py-72780e7737e333b0018959be75021fb8950deeb0.tar.xz
discord.py-72780e7737e333b0018959be75021fb8950deeb0.zip
Actually expose Message.webhook_id.
-rw-r--r--discord/message.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/message.py b/discord/message.py
index 27296117..39f1d599 100644
--- a/discord/message.py
+++ b/discord/message.py
@@ -181,6 +181,7 @@ class Message:
def __init__(self, *, state, channel, data):
self._state = state
self.id = int(data['id'])
+ self.webhook_id = utils._get_as_snowflake(data, 'webhook_id')
self.reactions = [Reaction(message=self, data=d) for d in data.get('reactions', [])]
self._update(channel, data)