Skip to content

Commit

Permalink
change some permissions stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav committed May 27, 2021
1 parent 3168cd3 commit fbe2ae8
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions roomer/roomer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

@cog_i18n(_)
class Roomer(commands.Cog):
__version__ = "1.0.0"
__version__ = "1.0.1"

def format_help_for_context(self, ctx: commands.Context) -> str:
# Thanks Sinbad! And Trusty in whose cogs I found this.
Expand Down Expand Up @@ -314,14 +314,10 @@ async def hidden(self, ctx: commands.Context, true_or_false: Optional[bool] = Tr
try:
for key in data:
if data[key] == ctx.author.voice.channel.id:
ov = {
ctx.guild.default_role: discord.PermissionOverwrite(
view_channel=False, connect=False
),
ctx.author: discord.PermissionOverwrite(
view_channel=True, connect=True, speak=True, manage_channels=True
),
}
ov = ctx.author.voice.channel.overwrites
ov[ctx.guild.default_role] = discord.PermissionOverwrite(
view_channel=False, connect=False
)
if self.invoiceConfig:
ov[
ctx.guild.get_role(
Expand Down

0 comments on commit fbe2ae8

Please sign in to comment.