mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2026-05-07 09:03:55 -04:00
Add WL dep and WL overides
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
from . import constants as constants
|
||||
from . import events as events
|
||||
from . import overwrites as overwrites
|
||||
@@ -0,0 +1,14 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import typing
|
||||
|
||||
__all__ = ["REGION_AGGREGATION"]
|
||||
|
||||
REGION_AGGREGATION: typing.Dict[str, str] = {
|
||||
"dubai": "singapore",
|
||||
"amsterdam": "europe",
|
||||
"london": "europe",
|
||||
"frankfurt": "europe",
|
||||
"eu-central": "europe",
|
||||
"eu-west": "europe",
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import typing
|
||||
|
||||
if typing.TYPE_CHECKING:
|
||||
from .overwrites import RedPlayer, RedTrack
|
||||
|
||||
|
||||
class QueueEnd:
|
||||
"""Event dispatched on QueueEnd.
|
||||
|
||||
Attributes
|
||||
------------
|
||||
player: :class:`RedPlayer`
|
||||
The player associated with the event.
|
||||
track: :class:`RedTrack`
|
||||
The track associated with the event.
|
||||
"""
|
||||
|
||||
__slots__ = ("track", "player")
|
||||
|
||||
def __init__(self, data: dict):
|
||||
self.track = data.get("track")
|
||||
self.player = data.get("player")
|
||||
|
||||
def __str__(self):
|
||||
return "QueueEnd"
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user