Fix options -> choices
This commit is contained in:
parent
e4af3f413f
commit
487cc6b06b
6 changed files with 14 additions and 14 deletions
|
@ -49,7 +49,7 @@ class LockCog(CacheCog):
|
|||
@cog_ext.cog_slash(
|
||||
name="lock",
|
||||
description="Locks a channel",
|
||||
options=[
|
||||
choices=[
|
||||
create_option(
|
||||
name="reason",
|
||||
description="Lock Reason",
|
||||
|
@ -105,7 +105,7 @@ class LockCog(CacheCog):
|
|||
@cog_ext.cog_slash(
|
||||
name="unlock",
|
||||
description="Unlocks a channel",
|
||||
options=[
|
||||
choices=[
|
||||
create_option(
|
||||
name="channel",
|
||||
description="Channel to lock",
|
||||
|
|
|
@ -21,7 +21,7 @@ class LockdownCog(CacheCog):
|
|||
base="lockdown",
|
||||
name="start",
|
||||
description="Locks a server",
|
||||
options=[
|
||||
choices=[
|
||||
create_option(
|
||||
name="reason",
|
||||
description="Lockdown Reason",
|
||||
|
|
|
@ -268,7 +268,7 @@ class GitlabCog(CacheCog):
|
|||
description="State of issues to get",
|
||||
option_type=OptionTypes.STRING,
|
||||
required=False,
|
||||
options=[
|
||||
choices=[
|
||||
SlashCommandChoice(name="Open", value="opened"),
|
||||
SlashCommandChoice(name="Closed", value="closed"),
|
||||
SlashCommandChoice(name="All", value="all"),
|
||||
|
@ -341,7 +341,7 @@ class GitlabCog(CacheCog):
|
|||
description="State of merge requests to get",
|
||||
option_type=OptionTypes.STRING,
|
||||
required=False,
|
||||
options=[
|
||||
choices=[
|
||||
SlashCommandChoice(name="Open", value="opened"),
|
||||
SlashCommandChoice(name="Closed", value="closed"),
|
||||
SlashCommandChoice(name="All", value="all"),
|
||||
|
|
|
@ -38,7 +38,7 @@ class SettingsCog(commands.Cog):
|
|||
subcommand_group="set",
|
||||
name="modlog",
|
||||
description="Set modlog channel",
|
||||
options=[
|
||||
choices=[
|
||||
create_option(
|
||||
name="channel",
|
||||
description="Modlog channel",
|
||||
|
@ -60,7 +60,7 @@ class SettingsCog(commands.Cog):
|
|||
subcommand_group="set",
|
||||
name="userlog",
|
||||
description="Set userlog channel",
|
||||
options=[
|
||||
choices=[
|
||||
create_option(
|
||||
name="channel",
|
||||
description="Userlog channel",
|
||||
|
@ -82,7 +82,7 @@ class SettingsCog(commands.Cog):
|
|||
subcommand_group="set",
|
||||
name="massmention",
|
||||
description="Set massmention amount",
|
||||
options=[
|
||||
choices=[
|
||||
create_option(
|
||||
name="amount",
|
||||
description="Amount of mentions (0 to disable)",
|
||||
|
@ -102,7 +102,7 @@ class SettingsCog(commands.Cog):
|
|||
subcommand_group="set",
|
||||
name="verified",
|
||||
description="Set verified role",
|
||||
options=[
|
||||
choices=[
|
||||
create_option(
|
||||
name="role",
|
||||
description="verified role",
|
||||
|
@ -122,7 +122,7 @@ class SettingsCog(commands.Cog):
|
|||
subcommand_group="set",
|
||||
name="unverified",
|
||||
description="Set unverified role",
|
||||
options=[
|
||||
choices=[
|
||||
create_option(
|
||||
name="role",
|
||||
description="Unverified role",
|
||||
|
@ -142,7 +142,7 @@ class SettingsCog(commands.Cog):
|
|||
subcommand_group="set",
|
||||
name="noinvite",
|
||||
description="Set if invite deletion should happen",
|
||||
options=[
|
||||
choices=[
|
||||
create_option(
|
||||
name="active",
|
||||
description="Active?",
|
||||
|
|
|
@ -94,7 +94,7 @@ class TwitterCog(Scale):
|
|||
description="Mirror re-tweets?",
|
||||
option_type=OptionTypes.STRING,
|
||||
required=False,
|
||||
options=[
|
||||
choices=[
|
||||
SlashCommandChoice(name="Yes", value="Yes"),
|
||||
SlashCommandChoice(name="No", value="No"),
|
||||
],
|
||||
|
@ -200,7 +200,7 @@ class TwitterCog(Scale):
|
|||
description="Mirror re-tweets?",
|
||||
option_type=OptionTypes.STRING,
|
||||
required=False,
|
||||
options=[
|
||||
choices=[
|
||||
SlashCommandChoice(name="Yes", value="Yes"),
|
||||
SlashCommandChoice(name="No", value="No"),
|
||||
],
|
||||
|
|
|
@ -266,7 +266,7 @@ class UtilCog(Scale):
|
|||
description="Characters to include (default last option)",
|
||||
option_type=OptionTypes.INTEGER,
|
||||
required=False,
|
||||
options=[
|
||||
choices=[
|
||||
SlashCommandChoice(name="A-Za-z", value=0),
|
||||
SlashCommandChoice(name="A-Fa-f0-9", value=1),
|
||||
SlashCommandChoice(name="A-Za-z0-9", value=2),
|
||||
|
|
Loading…
Add table
Reference in a new issue