#Speedgame Button command isnt working

1 messages · Page 1 of 1 (latest)

frank spire
#

disable_on_timeout was introduced in 2.1, so if you're on an older version you either have to upgrade or implement the timeout logic yourself

#

for reference, this is what it looks like in 2.1.x ```py
async def on_timeout(self) -> None:
"""|coro|

    A callback that is called when a view's timeout elapses without being explicitly stopped.
    """
    if self.disable_on_timeout:
        if self._message:
            self.disable_all_items()
            await self._message.edit(view=self)```but just copy pasting it won't work
#

just adapt the logic as you see fit i suppose