From 2cab4cb7d025c2cb6c6cf945c10642d115b9c2ce Mon Sep 17 00:00:00 2001 From: cloudwithax Date: Fri, 21 Apr 2023 10:55:11 -0400 Subject: [PATCH] update examples --- examples/advanced.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/advanced.py b/examples/advanced.py index 1db4d28..b8d2d3a 100644 --- a/examples/advanced.py +++ b/examples/advanced.py @@ -101,13 +101,13 @@ class Music(commands.Cog): await self.pomice.create_node( bot=self.bot, host="127.0.0.1", - port="3030", + port=3030, password="youshallnotpass", identifier="MAIN", ) print(f"Node is ready!") - async def required(self, ctx: commands.Context): + def required(self, ctx: commands.Context): """Method which returns required votes based on amount of members in a channel.""" player: Player = ctx.voice_client channel = self.bot.get_channel(int(player.channel.id)) @@ -119,7 +119,7 @@ class Music(commands.Cog): return required - async def is_privileged(self, ctx: commands.Context): + def is_privileged(self, ctx: commands.Context): """Check whether the user is an Admin or DJ.""" player: Player = ctx.voice_client