fix: Correct ratelimit for delete notify
This commit is contained in:
@@ -91,8 +91,8 @@ class FocusComponent(cmds.Component):
|
|||||||
if hyperfocused and not self.check_hyperfocus_message(payload):
|
if hyperfocused and not self.check_hyperfocus_message(payload):
|
||||||
# If we need to delete, run delete and send message
|
# If we need to delete, run delete and send message
|
||||||
notify = ( #
|
notify = ( #
|
||||||
(last := self._last_deleted.get(profile.profileid))
|
not (last := self._last_deleted.get(profile.profileid))
|
||||||
and (utc_now() - last).total_seconds() > 30
|
or (utc_now() - last).total_seconds() > 30
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
await self.focus_delete_message(payload)
|
await self.focus_delete_message(payload)
|
||||||
|
|||||||
Reference in New Issue
Block a user