diff --git a/discord/ui/view.py b/discord/ui/view.py index 81379b329a3b..55806830718f 100644 --- a/discord/ui/view.py +++ b/discord/ui/view.py @@ -383,7 +383,7 @@ def add_view(self, view: View, message_id: Optional[int] = None): def remove_view(self, view: View): for item in view.children: if item.is_dispatchable(): - self._views.pop((item.type.value, item.custom_id)) # type: ignore + self._views.pop((item.type.value, item.custom_id), None) # type: ignore for key, value in self._synced_message_views.items(): if value.id == view.id: