1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 20:23:12 +00:00

Refactor rank command to use bridge.Context instead of commands.Context

This commit is contained in:
wlinator 2024-07-14 12:12:15 -04:00
parent 3f8b78f56a
commit 5b41aebb00

View file

@ -1,11 +1,14 @@
from discord import Embed
from discord.ext import commands
from discord.ext import bridge
from lib.constants import CONST
from lib.embed_builder import EmbedBuilder
from services.xp_service import XpService
async def rank(ctx: commands.Context) -> None:
async def rank(ctx: bridge.Context) -> None:
if not ctx.guild:
return
xp_data: XpService = XpService(ctx.author.id, ctx.guild.id)
rank: str = str(xp_data.calculate_rank())