Compare commits

..

2 Commits

Author SHA1 Message Date
0cfc9b9986 fix: Fix typo in end_session. 2026-02-25 19:37:16 +10:00
e05dfbcc5f fix: Typos in end_session. 2026-02-25 19:34:45 +10:00

View File

@@ -63,11 +63,16 @@ class VoiceLogCog(LionCog):
name="Warning", name="Warning",
value="Could not find voice session to end, statistics may be incorrect.", value="Could not find voice session to end, statistics may be incorrect.",
) )
else:
embed.add_field(
name="Session",
value=f"Voice session lasted {session.duration} seconds!",
)
if after_channel: if after_channel:
session = await self.start_voice_session(member, after_channel, now) session = await self.start_voice_session(member, after_channel, now)
if session: if session:
embed.add_footer(f"Session #{session.sessionid}") embed.set_footer(text=f"Session #{session.sessionid}")
await hook.send(embed=embed) await hook.send(embed=embed)
@@ -83,7 +88,7 @@ class VoiceLogCog(LionCog):
async def end_voice_session(self, member, channel, ended_at): async def end_voice_session(self, member, channel, ended_at):
# Get the last open voice session to close it # Get the last open voice session to close it
open_sessions = await VoiceLogSession.fetch_where( open_sessions = await VoiceLogSession.fetch_where(
guildid=member.guildid, guildid=member.guild.id,
userid=member.id, userid=member.id,
channelid=channel.id, channelid=channel.id,
duration=None, duration=None,