Deprecate /star add
command in favor of context menus
This commit is contained in:
parent
51ec866647
commit
7bbb1343a4
1 changed files with 0 additions and 19 deletions
|
@ -248,25 +248,6 @@ class StarboardCog(Extension):
|
||||||
description="Manage stars",
|
description="Manage stars",
|
||||||
)
|
)
|
||||||
|
|
||||||
@star.subcommand(
|
|
||||||
sub_cmd_name="add",
|
|
||||||
sub_cmd_description="Star a message",
|
|
||||||
)
|
|
||||||
@slash_option(
|
|
||||||
name="message", description="Message to star", opt_type=OptionTypes.STRING, required=True
|
|
||||||
)
|
|
||||||
@slash_option(
|
|
||||||
name="channel",
|
|
||||||
description="Channel that has the message, not required if used in same channel",
|
|
||||||
opt_type=OptionTypes.CHANNEL,
|
|
||||||
required=False,
|
|
||||||
)
|
|
||||||
@check(admin_or_permissions(Permissions.MANAGE_GUILD))
|
|
||||||
async def _star_message_slash(
|
|
||||||
self, ctx: InteractionContext, message: str, channel: GuildText
|
|
||||||
) -> None:
|
|
||||||
await self._star_add(ctx, message, channel)
|
|
||||||
|
|
||||||
@star.subcommand(sub_cmd_name="delete", sub_cmd_description="Delete a starred message")
|
@star.subcommand(sub_cmd_name="delete", sub_cmd_description="Delete a starred message")
|
||||||
@slash_option(
|
@slash_option(
|
||||||
name="id", description="Star ID to delete", opt_type=OptionTypes.INTEGER, required=True
|
name="id", description="Star ID to delete", opt_type=OptionTypes.INTEGER, required=True
|
||||||
|
|
Loading…
Add table
Reference in a new issue