diff options
author | 2021-03-05 12:32:26 +0530 | |
---|---|---|
committer | 2021-10-11 12:05:30 +0530 | |
commit | aaf62d36ba2bcd2593756f19534547f740b57f16 (patch) | |
tree | 5d50e46d1cea7609486f422896dec0af45b8c526 | |
parent | If message content more than 500 characters shorten it done to 300 characters (diff) |
Add a docstring to 'send_webhooks' function
-rw-r--r-- | bot/exts/moderation/incidents.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bot/exts/moderation/incidents.py b/bot/exts/moderation/incidents.py index 1f1f20d6c..8304df174 100644 --- a/bot/exts/moderation/incidents.py +++ b/bot/exts/moderation/incidents.py @@ -499,6 +499,15 @@ class Incidents(Cog): message: discord.Message, webhook: discord.Webhook ) -> t.List[int]: + """ + Send Message Link Embeds to #incidents channel. + + Uses the `webhook` passed in as parameter to send the embeds + in `webhook_embed_list` parameter. + + After sending each webhook it maps the `message.id` to the + `webhook_msg_ids` IDs in the async rediscache. + """ webhook_msg_ids = [] try: for x, embed in enumerate(webhook_embed_list): |