aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/info/code_snippets.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/exts/info/code_snippets.py b/bot/exts/info/code_snippets.py
index dc5c2258a..a44b0c475 100644
--- a/bot/exts/info/code_snippets.py
+++ b/bot/exts/info/code_snippets.py
@@ -210,6 +210,9 @@ class CodeSnippets(Cog):
if not is_valid_language:
language = ""
+ if language == "pyi":
+ language = "py"
+
# Adds a label showing the file path to the snippet
if start_line == end_line:
ret = f"`{file_path}` line {start_line}\n"