Browse Source

Fix tests

pull/10109/head
dolfies 1 year ago
parent
commit
7561e63176
  1. 4
      discord/ext/commands/cooldowns.py
  2. 4
      discord/member.py

4
discord/ext/commands/cooldowns.py

@ -31,14 +31,14 @@ import time
import asyncio
from collections import deque
from ...abc import PrivateChannel
from discord.abc import PrivateChannel
from .errors import MaxConcurrencyReached
from .context import Context
if TYPE_CHECKING:
from typing_extensions import Self
from ...message import Message
from discord.message import Message
__all__ = (
'BucketType',

4
discord/member.py

@ -143,9 +143,7 @@ class VoiceState:
'suppress',
)
def __init__(
self, *, data: VoiceStatePayload, channel: Optional[ConnectableChannel] = None
):
def __init__(self, *, data: VoiceStatePayload, channel: Optional[ConnectableChannel] = None):
self.session_id: Optional[str] = data.get('session_id')
self._update(data, channel)

Loading…
Cancel
Save