Remove datetime.utcnow() use (deprecated since 3.12)

This commit is contained in:
Jakub Kuczys
2026-04-14 12:37:51 -04:00
committed by GitHub
parent dae0142554
commit f0195a5ffb
+2 -2
View File
@@ -977,7 +977,7 @@ class Member(discord.abc.Messageable, _UserTag):
await http.edit_my_voice_state(guild_id, voice_state_payload)
else:
if not suppress:
voice_state_payload['request_to_speak_timestamp'] = datetime.datetime.utcnow().isoformat()
voice_state_payload['request_to_speak_timestamp'] = utils.utcnow().isoformat()
await http.edit_voice_state(guild_id, self.id, voice_state_payload)
if voice_channel is not MISSING:
@@ -1038,7 +1038,7 @@ class Member(discord.abc.Messageable, _UserTag):
payload = {
'channel_id': self.voice.channel.id,
'request_to_speak_timestamp': datetime.datetime.utcnow().isoformat(),
'request_to_speak_timestamp': utils.utcnow().isoformat(),
}
if self._state.self_id != self.id: