Skip to content

Commit 028b096

Browse files
Using class BotBase instead of Bot (#23)
* version bump * using BotBase
1 parent 3ad9c2b commit 028b096

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

discord/ext/prometheus/prometheus_cog.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from discord.ext import commands, tasks
44
from discord import Interaction, InteractionType, AutoShardedClient
55
from discord.app_commands.commands import Command
6+
from discord.ext.commands.bot import BotBase
67

78
log = logging.getLogger("prometheus")
89

@@ -48,7 +49,7 @@ class PrometheusCog(commands.Cog):
4849
using the `on_ready` listener.
4950
"""
5051

51-
def __init__(self, bot: commands.Bot, port: int = 8000):
52+
def __init__(self, bot: BotBase, port: int = 8000):
5253
"""
5354
Parameters:
5455
bot: The Discord bot

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "discord-ext-prometheus"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
authors = [{ name = "Apollo-Roboto", email = "[email protected]" }]
55
description = "An extension for the discord.py library that enables Prometheus metrics"
66
readme = "README.md"

0 commit comments

Comments
 (0)