aboutsummaryrefslogtreecommitdiff
path: root/discord/webhook
diff options
context:
space:
mode:
authorJosh <[email protected]>2021-05-03 14:31:07 +1000
committerGitHub <[email protected]>2021-05-03 00:31:07 -0400
commitdc67d2bd8555ea37ff455b9077fb58712cc0f2fb (patch)
tree3e90f011b30404e9e8f091f141a40d1594955d75 /discord/webhook
parentAdd changelog for v1.7.2 (diff)
downloaddiscord.py-dc67d2bd8555ea37ff455b9077fb58712cc0f2fb.tar.xz
discord.py-dc67d2bd8555ea37ff455b9077fb58712cc0f2fb.zip
Replace uses of Ellipsis as sentinels with utils.MISSING
Diffstat (limited to 'discord/webhook')
-rw-r--r--discord/webhook/async_.py2
-rw-r--r--discord/webhook/sync.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/discord/webhook/async_.py b/discord/webhook/async_.py
index 99a9cc48..8daa62ca 100644
--- a/discord/webhook/async_.py
+++ b/discord/webhook/async_.py
@@ -1179,7 +1179,7 @@ class Webhook(BaseWebhook):
previous_mentions: Optional[AllowedMentions] = getattr(self._state, 'allowed_mentions', None)
if content is None:
- content = ... # type: ignore
+ content = MISSING
params = handle_message_parameters(
content=content,
diff --git a/discord/webhook/sync.py b/discord/webhook/sync.py
index 26978299..635633fd 100644
--- a/discord/webhook/sync.py
+++ b/discord/webhook/sync.py
@@ -853,7 +853,7 @@ class SyncWebhook(BaseWebhook):
previous_mentions: Optional[AllowedMentions] = getattr(self._state, 'allowed_mentions', None)
if content is None:
- content = ... # type: ignore
+ content = MISSING
params = handle_message_parameters(
content=content,