update options for ffxiv

This commit is contained in:
Luke Robles 2022-10-18 10:14:32 -07:00
parent ac74fc8bb2
commit 98d2a0103a

View File

@ -1,4 +1,4 @@
from discord.commands import Option from discord import option
from discord.ext import commands from discord.ext import commands
import core_utils import core_utils
import discord import discord
@ -30,7 +30,16 @@ class Games(commands.Cog):
name="ffxiv", name="ffxiv",
description="Query the game's API for data about a player", description="Query the game's API for data about a player",
) )
async def ffxiv(self, ctx: commands.Context, player_name, server): @option(
"player_name", description="Your player's first and last name", required=True
)
@option(
"server",
description="Your player's data center",
required=True,
input_type="str",
)
async def ffxiv(self, ctx: commands.Context, player_name: str, server: str):
import ffxiv import ffxiv
try: try: