mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-16 18:50:13 +00:00
Remove deprecated code
Remove `system_set` and `member_set` frrom system and member commands
This commit is contained in:
parent
d5e36d7f81
commit
39cb185cf3
2 changed files with 0 additions and 14 deletions
|
|
@ -7,8 +7,6 @@ from pluralkit.errors import PluralKitError
|
|||
async def member_root(ctx: CommandContext):
|
||||
if ctx.match("new") or ctx.match("create") or ctx.match("add") or ctx.match("register"):
|
||||
await new_member(ctx)
|
||||
elif ctx.match("set"):
|
||||
await member_set(ctx)
|
||||
# TODO "pk;member list"
|
||||
elif not ctx.has_next():
|
||||
raise CommandError("Must pass a subcommand. For a list of subcommands, type `pk;help member`.")
|
||||
|
|
@ -81,11 +79,6 @@ async def new_member(ctx: CommandContext):
|
|||
"Member \"{}\" (`{}`) registered! Type `pk;help member` for a list of commands to edit this member.".format(new_name, member.hid))
|
||||
|
||||
|
||||
async def member_set(ctx: CommandContext):
|
||||
raise CommandError(
|
||||
"`pk;member set` has been retired. Please use the new member modifying commands. Type `pk;help member` for a list.")
|
||||
|
||||
|
||||
async def member_name(ctx: CommandContext, member: Member):
|
||||
system = await ctx.ensure_system()
|
||||
new_name = ctx.pop_str(CommandError("You must pass a new member name."))
|
||||
|
|
|
|||
|
|
@ -38,8 +38,6 @@ async def system_root(ctx: CommandContext):
|
|||
await system_frontpercent(ctx, await ctx.ensure_system())
|
||||
elif ctx.match("timezone") or ctx.match("tz"):
|
||||
await system_timezone(ctx)
|
||||
elif ctx.match("set"):
|
||||
await system_set(ctx)
|
||||
elif ctx.match("list") or ctx.match("members"):
|
||||
await system_list(ctx, await ctx.ensure_system())
|
||||
elif not ctx.has_next():
|
||||
|
|
@ -91,11 +89,6 @@ async def system_new(ctx: CommandContext):
|
|||
await ctx.reply_ok("System registered! To begin adding members, use `pk;member new <name>`.")
|
||||
|
||||
|
||||
async def system_set(ctx: CommandContext):
|
||||
raise CommandError(
|
||||
"`pk;system set` has been retired. Please use the new system modifying commands. Type `pk;help system` for a list.")
|
||||
|
||||
|
||||
async def system_name(ctx: CommandContext):
|
||||
system = await ctx.ensure_system()
|
||||
new_name = ctx.remaining() or None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue