OT v4.2.1: Fixed TS bug with shared components

This commit is contained in:
DJj123dj
2026-05-31 22:37:54 +02:00
parent 2eb6d9e981
commit 1e66cf9917
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -10,8 +10,8 @@ import { ODTicket } from "../api/ticket.js"
* A list of all available IDs in the default `ODSharedComponentManager` class in `opendiscord`.
* It's used to generate typescript declarations for this class.
*/
export interface ODSharedComponentManagerIdMappings extends api.ODComponentManagerIdConstraint {
//"opendiscord:example-component":{origin:"slash"|"text"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:example-component"},
export interface ODSharedComponentManagerIdMappings extends api.ODSharedComponentManagerIdConstraint {
//"opendiscord:example-component":{component:api.ODComponent<object,any>,origin:"slash"|"text"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:example-component"},
}
/**## ODMessageComponentManagerIdMappings `interface`