aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mbaruh <[email protected]>2023-03-04 13:10:13 +0200
committerGravatar mbaruh <[email protected]>2023-03-04 13:10:13 +0200
commit659320edd6609c4a287f5da1ff1ce6436c4b6605 (patch)
tree685de5040678c3d5d1877b5fa73967dcf3fe8ded
parentRemove empty README (diff)
More type hint parameterizing
-rw-r--r--bot/exts/filtering/_filter_context.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/filtering/_filter_context.py b/bot/exts/filtering/_filter_context.py
index f5f635f9c..8e1ed5788 100644
--- a/bot/exts/filtering/_filter_context.py
+++ b/bot/exts/filtering/_filter_context.py
@@ -29,7 +29,7 @@ class FilterContext:
event: Event # The type of event
author: User | Member | None # Who triggered the event
channel: TextChannel | Thread | DMChannel | None # The channel involved
- content: str | Iterable # What actually needs filtering
+ content: str | Iterable # What actually needs filtering. The Iterable type depends on the filter list.
message: Message | None # The message involved
embeds: list[Embed] = field(default_factory=list) # Any embeds involved
before_message: Message | None = None
@@ -40,7 +40,7 @@ class FilterContext:
send_alert: bool = False # Whether to send an alert for the moderators
alert_content: str = "" # The content of the alert
alert_embeds: list[Embed] = field(default_factory=list) # Any embeds to add to the alert
- action_descriptions: list = field(default_factory=list) # What actions were taken
+ action_descriptions: list[str] = field(default_factory=list) # What actions were taken
matches: list[str] = field(default_factory=list) # What exactly was found
notification_domain: str = "" # A domain to send the user for context
filter_info: dict['Filter', str] = field(default_factory=dict) # Additional info from a filter.