aboutsummaryrefslogtreecommitdiffstats
path: root/bot/bot.py
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2023-05-09 16:01:01 +0100
committerGravatar GitHub <[email protected]>2023-05-09 16:01:01 +0100
commitc3e23e60278d34658f801bd7d7ed721d5a272637 (patch)
treee159a0fae7850d706d713cf2b49dfed2140ce655 /bot/bot.py
parentBump sentry-sdk from 1.21.1 to 1.22.1 (#1273) (diff)
parentMove unshared contants inside modules (diff)
Merge pull request #1270 from python-discord/migrate-to-ruff
Migrate to ruff
Diffstat (limited to 'bot/bot.py')
-rw-r--r--bot/bot.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/bot.py b/bot/bot.py
index da19bdd9..0b20ac54 100644
--- a/bot/bot.py
+++ b/bot/bot.py
@@ -1,5 +1,4 @@
import logging
-from typing import Optional
import discord
from discord import DiscordException, Embed
@@ -26,7 +25,7 @@ class Bot(BotBase):
name = constants.Client.name
@property
- def member(self) -> Optional[discord.Member]:
+ def member(self) -> discord.Member | None:
"""Retrieves the guild member object for the bot."""
guild = self.get_guild(constants.Client.guild)
if not guild: