Fix options -> choices

This commit is contained in:
Zeva Rose 2022-02-03 21:06:28 -07:00
parent e4af3f413f
commit 487cc6b06b
6 changed files with 14 additions and 14 deletions

View file

@ -49,7 +49,7 @@ class LockCog(CacheCog):
@cog_ext.cog_slash( @cog_ext.cog_slash(
name="lock", name="lock",
description="Locks a channel", description="Locks a channel",
options=[ choices=[
create_option( create_option(
name="reason", name="reason",
description="Lock Reason", description="Lock Reason",
@ -105,7 +105,7 @@ class LockCog(CacheCog):
@cog_ext.cog_slash( @cog_ext.cog_slash(
name="unlock", name="unlock",
description="Unlocks a channel", description="Unlocks a channel",
options=[ choices=[
create_option( create_option(
name="channel", name="channel",
description="Channel to lock", description="Channel to lock",

View file

@ -21,7 +21,7 @@ class LockdownCog(CacheCog):
base="lockdown", base="lockdown",
name="start", name="start",
description="Locks a server", description="Locks a server",
options=[ choices=[
create_option( create_option(
name="reason", name="reason",
description="Lockdown Reason", description="Lockdown Reason",

View file

@ -268,7 +268,7 @@ class GitlabCog(CacheCog):
description="State of issues to get", description="State of issues to get",
option_type=OptionTypes.STRING, option_type=OptionTypes.STRING,
required=False, required=False,
options=[ choices=[
SlashCommandChoice(name="Open", value="opened"), SlashCommandChoice(name="Open", value="opened"),
SlashCommandChoice(name="Closed", value="closed"), SlashCommandChoice(name="Closed", value="closed"),
SlashCommandChoice(name="All", value="all"), SlashCommandChoice(name="All", value="all"),
@ -341,7 +341,7 @@ class GitlabCog(CacheCog):
description="State of merge requests to get", description="State of merge requests to get",
option_type=OptionTypes.STRING, option_type=OptionTypes.STRING,
required=False, required=False,
options=[ choices=[
SlashCommandChoice(name="Open", value="opened"), SlashCommandChoice(name="Open", value="opened"),
SlashCommandChoice(name="Closed", value="closed"), SlashCommandChoice(name="Closed", value="closed"),
SlashCommandChoice(name="All", value="all"), SlashCommandChoice(name="All", value="all"),

View file

@ -38,7 +38,7 @@ class SettingsCog(commands.Cog):
subcommand_group="set", subcommand_group="set",
name="modlog", name="modlog",
description="Set modlog channel", description="Set modlog channel",
options=[ choices=[
create_option( create_option(
name="channel", name="channel",
description="Modlog channel", description="Modlog channel",
@ -60,7 +60,7 @@ class SettingsCog(commands.Cog):
subcommand_group="set", subcommand_group="set",
name="userlog", name="userlog",
description="Set userlog channel", description="Set userlog channel",
options=[ choices=[
create_option( create_option(
name="channel", name="channel",
description="Userlog channel", description="Userlog channel",
@ -82,7 +82,7 @@ class SettingsCog(commands.Cog):
subcommand_group="set", subcommand_group="set",
name="massmention", name="massmention",
description="Set massmention amount", description="Set massmention amount",
options=[ choices=[
create_option( create_option(
name="amount", name="amount",
description="Amount of mentions (0 to disable)", description="Amount of mentions (0 to disable)",
@ -102,7 +102,7 @@ class SettingsCog(commands.Cog):
subcommand_group="set", subcommand_group="set",
name="verified", name="verified",
description="Set verified role", description="Set verified role",
options=[ choices=[
create_option( create_option(
name="role", name="role",
description="verified role", description="verified role",
@ -122,7 +122,7 @@ class SettingsCog(commands.Cog):
subcommand_group="set", subcommand_group="set",
name="unverified", name="unverified",
description="Set unverified role", description="Set unverified role",
options=[ choices=[
create_option( create_option(
name="role", name="role",
description="Unverified role", description="Unverified role",
@ -142,7 +142,7 @@ class SettingsCog(commands.Cog):
subcommand_group="set", subcommand_group="set",
name="noinvite", name="noinvite",
description="Set if invite deletion should happen", description="Set if invite deletion should happen",
options=[ choices=[
create_option( create_option(
name="active", name="active",
description="Active?", description="Active?",

View file

@ -94,7 +94,7 @@ class TwitterCog(Scale):
description="Mirror re-tweets?", description="Mirror re-tweets?",
option_type=OptionTypes.STRING, option_type=OptionTypes.STRING,
required=False, required=False,
options=[ choices=[
SlashCommandChoice(name="Yes", value="Yes"), SlashCommandChoice(name="Yes", value="Yes"),
SlashCommandChoice(name="No", value="No"), SlashCommandChoice(name="No", value="No"),
], ],
@ -200,7 +200,7 @@ class TwitterCog(Scale):
description="Mirror re-tweets?", description="Mirror re-tweets?",
option_type=OptionTypes.STRING, option_type=OptionTypes.STRING,
required=False, required=False,
options=[ choices=[
SlashCommandChoice(name="Yes", value="Yes"), SlashCommandChoice(name="Yes", value="Yes"),
SlashCommandChoice(name="No", value="No"), SlashCommandChoice(name="No", value="No"),
], ],

View file

@ -266,7 +266,7 @@ class UtilCog(Scale):
description="Characters to include (default last option)", description="Characters to include (default last option)",
option_type=OptionTypes.INTEGER, option_type=OptionTypes.INTEGER,
required=False, required=False,
options=[ choices=[
SlashCommandChoice(name="A-Za-z", value=0), SlashCommandChoice(name="A-Za-z", value=0),
SlashCommandChoice(name="A-Fa-f0-9", value=1), SlashCommandChoice(name="A-Fa-f0-9", value=1),
SlashCommandChoice(name="A-Za-z0-9", value=2), SlashCommandChoice(name="A-Za-z0-9", value=2),