@@ -219,7 +219,7 @@ class DiscordWebhook:
219219 Webhook for Discord
220220 """
221221
222- allowed_mentions : List [str ]
222+ allowed_mentions : Dict [ str , List [str ] ]
223223 attachments : Optional [List [Dict [str , Any ]]]
224224 avatar_url : Optional [str ]
225225 components : Optional [list ]
@@ -242,7 +242,7 @@ def __init__(self, url: str, **kwargs) -> None:
242242 Init Webhook for Discord.
243243 ---------
244244 :param str url: your discord webhook url
245- :keyword list allowed_mentions: allowed mentions for the message
245+ :keyword dict allowed_mentions: allowed mentions for the message
246246 :keyword dict attachments: attachments that should be included
247247 :keyword str avatar_url: override the default avatar of the webhook
248248 :keyword str content: the message contents
@@ -258,7 +258,7 @@ def __init__(self, url: str, **kwargs) -> None:
258258 :keyword str username: override the default username of the webhook
259259 :keyword bool wait: waits for server confirmation of message send before response (defaults to True)
260260 """
261- self .allowed_mentions = kwargs .get ("allowed_mentions" , [] )
261+ self .allowed_mentions = kwargs .get ("allowed_mentions" , {} )
262262 self .attachments = kwargs .get ("attachments" , [])
263263 self .avatar_url = kwargs .get ("avatar_url" )
264264 self .content = kwargs .get ("content" )
0 commit comments