From 96eeab3eec4d3cca95aa0d92f3eb916a91a5902d Mon Sep 17 00:00:00 2001 From: MiroslavRosenov <57327793+MiroslavRosenov@users.noreply.github.com> Date: Mon, 7 Mar 2022 11:12:03 +0200 Subject: [PATCH] Update utils.py --- pomice/utils.py | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/pomice/utils.py b/pomice/utils.py index 329b14d..d020d96 100644 --- a/pomice/utils.py +++ b/pomice/utils.py @@ -1,12 +1,9 @@ import random import time import socket -from typing import Union from timeit import default_timer as timer from itertools import zip_longest - -from discord import AutoShardedClient, Client -from discord.ext.commands import AutoShardedBot, Bot +from discord import Enum __all__ = [ "ExponentialBackoff", @@ -151,3 +148,30 @@ class Ping: return s_runtime +class VoiceRegion(Enum): + us_west = "us-west" + us_east = "us-east" + us_south = "us-south" + us_central = "us-central" + eu_west = "eu-west" + eu_central = "eu-central" + singapore = "singapore" + london = "london" + sydney = "sydney" + amsterdam = "amsterdam" + frankfurt = "frankfurt" + brazil = "brazil" + hongkong = "hongkong" + russia = "russia" + japan = "japan" + southafrica = "southafrica" + south_korea = "south-korea" + india = "india" + europe = "europe" + dubai = "dubai" + vip_us_east = "vip-us-east" + vip_us_west = "vip-us-west" + vip_amsterdam = "vip-amsterdam" + + def __str__(self): + return self.value