Don't store finished views/modals

This commit is contained in:
z03h
2023-02-13 20:52:40 -08:00
committed by GitHub
parent caf0fbdc1b
commit e6ef43139f
4 changed files with 9 additions and 6 deletions

View File

@ -1552,7 +1552,7 @@ class Messageable:
data = await state.http.send_message(channel.id, params=params)
ret = state.create_message(channel=channel, data=data)
if view:
if view and not view.is_finished():
state.store_view(view, ret.id)
if delete_after is not None: