From 487cc6b06b3031930ee8ba731ead9e508f46dfc5 Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Thu, 3 Feb 2022 21:06:28 -0700 Subject: [PATCH] Fix options -> choices --- jarvis/cogs/admin/lock.py | 4 ++-- jarvis/cogs/admin/lockdown.py | 2 +- jarvis/cogs/gitlab.py | 4 ++-- jarvis/cogs/settings.py | 12 ++++++------ jarvis/cogs/twitter.py | 4 ++-- jarvis/cogs/util.py | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/jarvis/cogs/admin/lock.py b/jarvis/cogs/admin/lock.py index 75c6427..eaf4f13 100644 --- a/jarvis/cogs/admin/lock.py +++ b/jarvis/cogs/admin/lock.py @@ -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", diff --git a/jarvis/cogs/admin/lockdown.py b/jarvis/cogs/admin/lockdown.py index dcf37ba..6f7055c 100644 --- a/jarvis/cogs/admin/lockdown.py +++ b/jarvis/cogs/admin/lockdown.py @@ -21,7 +21,7 @@ class LockdownCog(CacheCog): base="lockdown", name="start", description="Locks a server", - options=[ + choices=[ create_option( name="reason", description="Lockdown Reason", diff --git a/jarvis/cogs/gitlab.py b/jarvis/cogs/gitlab.py index 33b278c..becc05f 100644 --- a/jarvis/cogs/gitlab.py +++ b/jarvis/cogs/gitlab.py @@ -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"), diff --git a/jarvis/cogs/settings.py b/jarvis/cogs/settings.py index 9102dbf..4bc8973 100644 --- a/jarvis/cogs/settings.py +++ b/jarvis/cogs/settings.py @@ -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?", diff --git a/jarvis/cogs/twitter.py b/jarvis/cogs/twitter.py index 8f1ca59..db40aac 100644 --- a/jarvis/cogs/twitter.py +++ b/jarvis/cogs/twitter.py @@ -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"), ], diff --git a/jarvis/cogs/util.py b/jarvis/cogs/util.py index af5e249..eb829bc 100644 --- a/jarvis/cogs/util.py +++ b/jarvis/cogs/util.py @@ -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),