Skip to content

Commit

Permalink
style: format code with Autopep8 and isort (#237)
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 9eb3632 according to the output
from Autopep8 and isort.

Details: None
  • Loading branch information
deepsource-autofix[bot] authored May 5, 2024
1 parent 9eb3632 commit b4c52ee
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions extensions/hostsettings.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import re

import interactions as ipy

from classes.database import UserDatabase
from modules.const import AUTHOR_USERID, VERIFICATION_SERVER, VERIFIED_ROLE, EMOJI_UNEXPECTED_ERROR, EMOJI_SUCCESS, EMOJI_USER_ERROR
from modules.const import (AUTHOR_USERID, EMOJI_SUCCESS,
EMOJI_UNEXPECTED_ERROR, EMOJI_USER_ERROR,
VERIFICATION_SERVER, VERIFIED_ROLE)
from modules.discord import format_username
import re

hostsettings_head = ipy.SlashCommand(
name="hostsettings",
Expand All @@ -19,7 +22,6 @@
class HostSettings(ipy.Extension):
"""Host Settings commands"""


member = hostsettings_head.group(
name="member",
description="Manage member settings, for self-hosted bot only")
Expand Down Expand Up @@ -61,7 +63,8 @@ async def hostsettings_member_verify(
return
status = await ud.verify_user(ctx.author.id)

user_roles = [str(role.id) for role in ctx.author.roles] # type: ignore
user_roles = [str(role.id)
for role in ctx.author.roles] # type: ignore

# check if verified role exists
if status is True and str(VERIFIED_ROLE) not in user_roles:
Expand Down

0 comments on commit b4c52ee

Please sign in to comment.