diff --git a/disnake/embeds.py b/disnake/embeds.py index 337c7cb8d0..f0b0b8b07a 100644 --- a/disnake/embeds.py +++ b/disnake/embeds.py @@ -431,7 +431,7 @@ def set_footer( "text": str(text), } - result = self._handle_resource(icon_url, file, key="footer", strict=False) + result = self._handle_resource(icon_url, file, key="footer", required=False) if result is not None: self._footer["icon_url"] = result @@ -650,7 +650,7 @@ def set_author( self._author["url"] = str(url) result = self._handle_resource( - icon_url if icon_url else None, file, key="author", strict=False + icon_url if icon_url else None, file, key="author", required=False ) if result is not None: self._author["icon_url"] = result @@ -887,9 +887,9 @@ def get_default_colour(cls) -> Optional[Colour]: get_default_color = get_default_colour def _handle_resource( - self, url: Optional[Any], file: File, *, key: _FileKey, strict: bool = True + self, url: Optional[Any], file: File, *, key: _FileKey, required: bool = True ) -> Optional[str]: - if strict: + if required: if not (url is MISSING) ^ (file is MISSING): raise TypeError("Exactly one of url or file must be provided") else: