aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-09-01 20:56:42 +0100
committerGravatar Chris Lovering <[email protected]>2022-10-02 18:33:49 +0100
commitfe86fb97e2206840927fa2642d5d512e98f4f025 (patch)
tree76c0afd6b0ce1ebaa8540ef1e999f6472ecd5151
parentSend filter alerts to #filter-log instead of #mod-meta (diff)
Namespace discord import in filter_lists
-rw-r--r--bot/exts/filters/filter_lists.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bot/exts/filters/filter_lists.py b/bot/exts/filters/filter_lists.py
index 8cb83c19f..808307e39 100644
--- a/bot/exts/filters/filter_lists.py
+++ b/bot/exts/filters/filter_lists.py
@@ -1,13 +1,13 @@
import re
from typing import Optional
+import discord
from botcore.site_api import ResponseCodeError
-from discord import Colour, Embed
from discord.ext.commands import BadArgument, Cog, Context, IDConverter, group, has_any_role
from bot import constants
from bot.bot import Bot
-from bot.constants import Channels
+from bot.constants import Channels, Colours
from bot.converters import ValidDiscordServerInvite, ValidFilterListType
from bot.log import get_logger
from bot.pagination import LinePaginator
@@ -179,9 +179,9 @@ class FilterLists(Cog):
# Build the embed
list_type_plural = list_type.lower().replace("_", " ").title() + "s"
- embed = Embed(
+ embed = discord.Embed(
title=f"{allow_type.title()}ed {list_type_plural} ({len(result)} total)",
- colour=Colour.blue()
+ colour=Colours.blue
)
log.trace(f"Trying to list {len(result)} items from the {list_type.lower()} {allow_type}")