You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: remove CommandChatInputRegisterShortcut alias interface, prefer using ApplicationCommandRegistry.RegisterOptions instead (#597)
The old interface exposed options that were not actually supported
by Sapphire, which was misleading. The whole interface could in fact
be removed, but that would be a breaking change, so for now we mark
it as deprecated and make it a type alias.
While normally removing interface options would be a breaking change too,
these particular options already did absolutely nothing and weren't
being read anywhere anymore. Anyone who still had this option and
will get a TypeScript build error can simply remove the options.
* Specifies what we should do when the command is present, but not identical with the data you provided
715
-
* @default RegisterBehavior.LogToConsole
716
-
*/
717
-
behaviorWhenNotIdentical?: RegisterBehavior;
718
-
/**
719
-
* If we should register the command, be it missing or present already
720
-
* @default false
721
-
*/
722
-
register: boolean;
723
-
/**
724
-
* If this is specified, the application commands will only be registered for these guild ids.
725
-
*
726
-
* :::tip
727
-
*
728
-
* If you want to register both guild and global chat input commands,
729
-
* please read the [guide about registering application commands](https://www.sapphirejs.dev/docs/Guide/commands/registering-application-commands) instead.
730
-
*
731
-
* :::
732
-
*
733
-
*/
734
-
guildIds?: string[];
735
-
/**
736
-
* Specifies a list of command ids that we should check in the event of a name mismatch
737
-
* @default []
738
-
*/
739
-
idHints?: string[];
740
-
/**
741
-
* Sets the `defaultPermission` field for the chat input command
742
-
*
743
-
* :::warn
744
-
*
745
-
* This will be deprecated in the future for Discord's new permission system.
746
-
*
747
-
* :::
748
-
*/
749
-
defaultPermission?: boolean;
750
-
/**
751
-
* Sets the `nameLocalizations` for the chat input command
752
-
*/
753
-
nameLocalizations?: LocalizationMap;
754
-
/**
755
-
* Sets the `descriptionLocalizations` for the chat input command
0 commit comments