Fixed error in custom_welcome_msg and message_builder

This commit is contained in:
NovaNo1r
2022-02-23 21:45:53 -08:00
parent c674d581b7
commit 76df21036a
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ def image(
"""
if abspath:
if isinstance(abspath, Path):
return MessageSegment.image(file)
return MessageSegment.image(abspath)
return (
MessageSegment.image("file:///" + abspath)
if os.path.exists(abspath)