From 98d2a0103a05a317277be3f6d68ca1e086c5ead2 Mon Sep 17 00:00:00 2001 From: Luke Robles <98352913+lrobles-iterable@users.noreply.github.com> Date: Tue, 18 Oct 2022 10:14:32 -0700 Subject: [PATCH] update options for ffxiv --- app/cogs/game_apis.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app/cogs/game_apis.py b/app/cogs/game_apis.py index d2525694..54d93679 100644 --- a/app/cogs/game_apis.py +++ b/app/cogs/game_apis.py @@ -1,4 +1,4 @@ -from discord.commands import Option +from discord import option from discord.ext import commands import core_utils import discord @@ -30,7 +30,16 @@ class Games(commands.Cog): name="ffxiv", 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 try: