From b4c52eea4d1f29499bcb058461e2ff32968cbb0b Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 5 May 2024 11:19:26 +0700 Subject: [PATCH] style: format code with Autopep8 and isort (#237) This commit fixes the style issues introduced in 9eb3632 according to the output from Autopep8 and isort. Details: None --- extensions/hostsettings.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/extensions/hostsettings.py b/extensions/hostsettings.py index af056e1c..eeda8b6f 100644 --- a/extensions/hostsettings.py +++ b/extensions/hostsettings.py @@ -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", @@ -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") @@ -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: