diff options
-rw-r--r-- | bot/exts/utilities/bookmark.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bot/exts/utilities/bookmark.py b/bot/exts/utilities/bookmark.py index d70ccb39..1af716bc 100644 --- a/bot/exts/utilities/bookmark.py +++ b/bot/exts/utilities/bookmark.py @@ -1,6 +1,6 @@ import logging import random -from typing import Awaitable, Callable, Optional, Union +from typing import Awaitable, Callable, Optional import discord from discord.ext import commands @@ -22,7 +22,7 @@ MESSAGE_NOT_FOUND_ERROR = ( async def dm_bookmark( - target_user: Union[discord.Member, discord.User], + target_user: discord.Member | discord.User, target_message: discord.Message, title: str, ) -> None: @@ -45,7 +45,7 @@ class SendBookmark(discord.ui.View): def __init__( self, action_bookmark_function: - Callable[[Union[discord.Member, discord.User], discord.Message, str], Awaitable[None]], + Callable[[discord.Member | discord.User, discord.Message, str], Awaitable[None]], author: discord.Member, channel: discord.TextChannel, target_message: discord.Message, @@ -154,7 +154,7 @@ class Bookmark(commands.Cog): """Build the channel embed to the bookmark requester.""" return discord.Embed( description=( - f"Click the button to be sent your very own bookmark to" + f"Click the button to be sent your very own bookmark to " f"[this message]({target_message.jump_url})." ), colour=Colours.soft_green, |