aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mbaruh <[email protected]>2022-11-28 22:17:22 +0200
committerGravatar mbaruh <[email protected]>2022-11-28 22:17:22 +0200
commit71bb23082e4a3a48368e9046d4ddbf50518641f6 (patch)
tree2292fe083ec05267fe7840b299de524b62c42b66
parentfix setting name (diff)
fix: Remove hash prefix from filter IDs
-rw-r--r--bot/exts/filtering/_filter_lists/filter_list.py2
-rw-r--r--bot/exts/filtering/_filters/filter.py2
-rw-r--r--bot/exts/filtering/filtering.py4
3 files changed, 4 insertions, 4 deletions
diff --git a/bot/exts/filtering/_filter_lists/filter_list.py b/bot/exts/filtering/_filter_lists/filter_list.py
index 64c96d350..a32b0741e 100644
--- a/bot/exts/filtering/_filter_lists/filter_list.py
+++ b/bot/exts/filtering/_filter_lists/filter_list.py
@@ -149,7 +149,7 @@ class AtomicList:
message += f" - {triggers[0].description}"
messages = [message]
else:
- messages = [f"#{filter_.id} (`{filter_.content}`)" for filter_ in triggers]
+ messages = [f"{filter_.id} (`{filter_.content}`)" for filter_ in triggers]
return messages
def __hash__(self):
diff --git a/bot/exts/filtering/_filters/filter.py b/bot/exts/filtering/_filters/filter.py
index 49c163d99..b5f4c127a 100644
--- a/bot/exts/filtering/_filters/filter.py
+++ b/bot/exts/filtering/_filters/filter.py
@@ -78,7 +78,7 @@ class Filter(FieldRequiring):
def __str__(self) -> str:
"""A string representation of the filter."""
- string = f"#{self.id}. `{self.content}`"
+ string = f"{self.id}. `{self.content}`"
if self.description:
string += f" - {self.description}"
return string
diff --git a/bot/exts/filtering/filtering.py b/bot/exts/filtering/filtering.py
index bf38a2818..8b1a48617 100644
--- a/bot/exts/filtering/filtering.py
+++ b/bot/exts/filtering/filtering.py
@@ -383,7 +383,7 @@ class Filtering(Cog):
embed.description = f"`{filter_.content}`"
if filter_.description:
embed.description += f" - {filter_.description}"
- embed.set_author(name=f"Filter #{id_} - " + f"{filter_list[list_type].label}".title())
+ embed.set_author(name=f"Filter {id_} - " + f"{filter_list[list_type].label}".title())
embed.set_footer(text=(
"Field names with an asterisk have values which override the defaults of the containing filter list. "
f"To view all defaults of the list, "
@@ -512,7 +512,7 @@ class Filtering(Cog):
if description:
embed.description += f" - {description}"
embed.set_author(
- name=f"Filter #{filter_id} - {filter_list[list_type].label}".title())
+ name=f"Filter {filter_id} - {filter_list[list_type].label}".title())
embed.set_footer(text=(
"Field names with an asterisk have values which override the defaults of the containing filter list. "
f"To view all defaults of the list, "