@spatulox/discord-interaction-manager 1.1.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.env.example CHANGED
File without changes
package/LICENSE.md CHANGED
File without changes
package/README.md CHANGED
@@ -87,16 +87,27 @@ Choose an option:
87
87
  ## List interactions
88
88
  > - List global interaction
89
89
 
90
- > - List interaction locked to a specific guild
90
+ > - List spcific interaction for a guild
91
+
92
+ > - List all interactions (global and specific for a guild
91
93
 
92
94
  > - Count the number of interaction by scope**
93
95
 
96
+ > - Save global commands in json files
97
+
94
98
  ## Update an interaction
95
99
  > - You can update any interaction, by updating the generated file inside the "**./handlers**" folder*
96
100
 
97
101
  > - Once you updated the generated file, you can use the cli to update the interaction on Discord
98
102
 
99
- > - If you want to change the scope** of an interaction you can delete/add the "**guild_ids**" field in the generated interaction files, just don't forget to delete the old one and deploy the new one. **Normal update will not work**
103
+ > - If you want to change the scope** :
104
+ > - You have two field : command_scope & id
105
+ > - command_scope can be "global" ou "guild",
106
+ > - "id" can have two forms depending on "command_scope" :
107
+ > - id: {Record<guildId, interactionId | null>} (command_scope = "guild")
108
+ > - id: string (command_scope = "global")
109
+
110
+ > - **Normal update will not work**
100
111
 
101
112
  > - If you want to update the permission of the interaction, you need to update the "**default_member_permissions_string**" field with the keyof **PermissionBitFields** of discordjs (or let it empty for everyone), it will automatically update the "**default_member_permissions**" field required by Discord
102
113