[Audio] ctx.message.guild -> ctx.guild + store ids rather than whole guild in skip_votes (#4867)

* ctx.invoke -> bot.invoke
ctx.message.guild -> ctx.guild

* remove the invoke stuff

* remove invoke stuff

* use id attrib instead of entire guild

* change type hinting too

* change second typehint
This commit is contained in:
Jamie
2021-04-03 23:01:10 +01:00
committed by GitHub
parent 363a2e8a17
commit 6c338f175b
6 changed files with 13 additions and 13 deletions

View File

@@ -41,7 +41,7 @@ class MixinMeta(ABC):
db_conn: Optional[APSWConnectionWrapper]
session: aiohttp.ClientSession
skip_votes: MutableMapping[discord.Guild, List[discord.Member]]
skip_votes: MutableMapping[int, List[int]]
play_lock: MutableMapping[int, bool]
_daily_playlist_cache: MutableMapping[int, bool]
_daily_global_playlist_cache: MutableMapping[int, bool]