Declare option_type by method instead of int

This commit is contained in:
2021-04-23 21:27:04 +02:00
parent 1b429d5a63
commit 7f63fa0bfb

View File

@ -4,6 +4,7 @@ import os
import dateparser import dateparser
import discord import discord
from discord_slash.model import SlashCommandOptionType
import pytz import pytz
from apscheduler.jobstores.sqlalchemy import SQLAlchemyJobStore from apscheduler.jobstores.sqlalchemy import SQLAlchemyJobStore
from apscheduler.schedulers.asyncio import AsyncIOScheduler from apscheduler.schedulers.asyncio import AsyncIOScheduler
@ -97,13 +98,13 @@ async def do_reminders(ctx):
create_option( create_option(
name="message_reason", name="message_reason",
description="The message I should send when I notify you.", description="The message I should send when I notify you.",
option_type=3, # String option_type=SlashCommandOptionType.STRING,
required=True, required=True,
), ),
create_option( create_option(
name="message_date", name="message_date",
description="The time or date I should write in this channel.", description="The time or date I should write in this channel.",
option_type=3, # String option_type=SlashCommandOptionType.STRING,
required=True, required=True,
), ),
], ],