diff options
author | 2023-07-14 14:03:48 -0500 | |
---|---|---|
committer | 2023-07-14 14:03:48 -0500 | |
commit | 643e673bd1ed72b98b6c2728f25b4a96ba758579 (patch) | |
tree | 38d1d1e3268c49dbbda3b0e688fa4fa3e2894ea7 /bot/exts/utilities | |
parent | Fix incorrect permissions target (diff) | |
parent | Bump sentry-sdk from 1.27.1 to 1.28.0 (#1325) (diff) |
Merge branch 'python-discord:main' into undeprecate-bookmark
Diffstat (limited to 'bot/exts/utilities')
-rw-r--r-- | bot/exts/utilities/colour.py | 2 | ||||
-rw-r--r-- | bot/exts/utilities/epoch.py | 2 | ||||
-rw-r--r-- | bot/exts/utilities/reddit.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/utilities/colour.py b/bot/exts/utilities/colour.py index b8f1d62d..95f9ac22 100644 --- a/bot/exts/utilities/colour.py +++ b/bot/exts/utilities/colour.py @@ -182,7 +182,7 @@ class Colour(commands.Cog): hex_tuple = ImageColor.getrgb(f"#{hex_colour}") await self.send_colour_response(ctx, hex_tuple) - def get_colour_conversions(self, rgb: tuple[int, int, int]) -> dict[str, str]: + def get_colour_conversions(self, rgb: tuple[int, int, int]) -> dict[str, tuple[int, ...] | str]: """Create a dictionary mapping of colour types and their values.""" colour_name = self._rgb_to_name(rgb) if colour_name is None: diff --git a/bot/exts/utilities/epoch.py b/bot/exts/utilities/epoch.py index d1ba98bb..1f65b935 100644 --- a/bot/exts/utilities/epoch.py +++ b/bot/exts/utilities/epoch.py @@ -118,7 +118,7 @@ class TimestampMenuView(discord.ui.View): self.dropdown.add_option(label=label, description=date_time) @discord.ui.select(placeholder="Select the format of your timestamp") - async def select_format(self, interaction: discord.Interaction, _: discord.ui.Select) -> discord.Message: + async def select_format(self, interaction: discord.Interaction, _: discord.ui.Select) -> None: """Drop down menu which contains a list of formats which discord timestamps can take.""" selected = interaction.data["values"][0] if selected == "Epoch": diff --git a/bot/exts/utilities/reddit.py b/bot/exts/utilities/reddit.py index f8e358de..cfc70d85 100644 --- a/bot/exts/utilities/reddit.py +++ b/bot/exts/utilities/reddit.py @@ -37,7 +37,7 @@ class Reddit(Cog): self.access_token = None self.client_auth = BasicAuth(RedditConfig.client_id.get_secret_value(), RedditConfig.secret.get_secret_value()) - self.auto_poster_loop.start() + # self.auto_poster_loop.start() async def cog_unload(self) -> None: """Stop the loop task and revoke the access token when the cog is unloaded.""" |