fix(bot): 🐛 p.skip not working.
This commit is contained in:
@@ -327,6 +327,7 @@ class Calls(base.Cog):
|
||||
channel = find(lambda c: c.id == channel_id, call.channels)
|
||||
other_channel = find(lambda c: c.id != channel_id, call.channels)
|
||||
|
||||
if other_channel is not None:
|
||||
other_channel.call = None
|
||||
await other_channel.save()
|
||||
|
||||
@@ -338,7 +339,11 @@ class Calls(base.Cog):
|
||||
pass
|
||||
|
||||
await redis.srem(
|
||||
constants.CHANNELS_ONCALL_SET, str(channel_id), str(other_channel.id)
|
||||
constants.CHANNELS_ONCALL_SET,
|
||||
*(
|
||||
[str(channel_id)]
|
||||
+ ([str(other_channel.id)] if other_channel is not None else [])
|
||||
),
|
||||
)
|
||||
|
||||
last_channel_calls = [
|
||||
|
||||
Reference in New Issue
Block a user