Compare commits
2 Commits
dff1eb3185
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 0cfc9b9986 | |||
| e05dfbcc5f |
@@ -63,11 +63,16 @@ class VoiceLogCog(LionCog):
|
||||
name="Warning",
|
||||
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:
|
||||
session = await self.start_voice_session(member, after_channel, now)
|
||||
|
||||
if session:
|
||||
embed.add_footer(f"Session #{session.sessionid}")
|
||||
embed.set_footer(text=f"Session #{session.sessionid}")
|
||||
|
||||
await hook.send(embed=embed)
|
||||
|
||||
@@ -83,7 +88,7 @@ class VoiceLogCog(LionCog):
|
||||
async def end_voice_session(self, member, channel, ended_at):
|
||||
# Get the last open voice session to close it
|
||||
open_sessions = await VoiceLogSession.fetch_where(
|
||||
guildid=member.guildid,
|
||||
guildid=member.guild.id,
|
||||
userid=member.id,
|
||||
channelid=channel.id,
|
||||
duration=None,
|
||||
|
||||
Reference in New Issue
Block a user