fix(aurora): ruff fixes
This commit is contained in:
parent
516e4539e8
commit
9c293750cb
2 changed files with 17 additions and 40 deletions
|
@ -4,27 +4,15 @@ from datetime import datetime, timedelta
|
|||
from typing import Union
|
||||
|
||||
import humanize
|
||||
from discord import (
|
||||
Color,
|
||||
Embed,
|
||||
Guild,
|
||||
Interaction,
|
||||
InteractionMessage,
|
||||
Member,
|
||||
Role,
|
||||
User,
|
||||
)
|
||||
from discord import (Color, Embed, Guild, Interaction, InteractionMessage,
|
||||
Member, Role, User)
|
||||
from redbot.core import commands
|
||||
from redbot.core.utils.chat_formatting import bold, box, error, warning
|
||||
|
||||
from aurora.utilities.config import config
|
||||
from aurora.utilities.utils import (
|
||||
fetch_channel_dict,
|
||||
fetch_user_dict,
|
||||
get_bool_emoji,
|
||||
get_next_case_number,
|
||||
get_pagesize_str,
|
||||
)
|
||||
from aurora.utilities.utils import (fetch_channel_dict, fetch_user_dict,
|
||||
get_bool_emoji, get_next_case_number,
|
||||
get_pagesize_str)
|
||||
|
||||
|
||||
async def message_factory(
|
||||
|
@ -53,7 +41,7 @@ async def message_factory(
|
|||
Returns:
|
||||
embed: The message embed.
|
||||
"""
|
||||
if response is not None and not moderation_type in [
|
||||
if response is not None and moderation_type not in [
|
||||
"kicked",
|
||||
"banned",
|
||||
"tempbanned",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue