Browse Source
Remove datetime.utcnow() use (deprecated since 3.12)
pull/10439/head
Jakub Kuczys
2 months ago
No known key found for this signature in database
GPG Key ID: 9F02686F15FCBCD3
1 changed files with
2 additions and
2 deletions
-
discord/member.py
|
|
|
@ -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: |
|
|
|
|