aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts
diff options
context:
space:
mode:
authorGravatar Robin5605 <[email protected]>2023-03-03 12:04:42 -0600
committerGravatar Robin5605 <[email protected]>2023-03-03 12:04:42 -0600
commitd4976e3499527d331e37f20778a72de5a6934013 (patch)
treec0e2799b380f1b5cb4f3a566abf590e7bfe96cda /bot/exts
parentUndeprecate Bookmark Command (diff)
Remove typing.Union import
Diffstat (limited to 'bot/exts')
-rw-r--r--bot/exts/utilities/bookmark.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/utilities/bookmark.py b/bot/exts/utilities/bookmark.py
index d70ccb39..ab457887 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,