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:
parent
3f8b78f56a
commit
5b41aebb00
1 changed files with 5 additions and 2 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue