Archived
1
0
Fork 0
This repository has been archived on 2024-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
akari-bot/bots/discord/slash/user.py
2022-08-30 20:49:01 +08:00

10 lines
357 B
Python

import discord
from bots.discord.client import client
from bots.discord.slash_parser import slash_parser
@client.slash_command(description="查询一个已记录在Mediawiki上的用户信息")
@discord.option(name="username", description="用户名")
async def user(ctx: discord.ApplicationContext, username: str):
await slash_parser(ctx, username)