mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-09-20 19:17:42 +00:00
Remove datetime.utcnow() use (deprecated since 3.12)
This commit is contained in:
+2
-2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user