Type Alias AbstractRESTClient
AbstractRESTClient: { checkCommandsSynced: ( guildId: string | null, ) => Promise<CommandCheckResponse>; clearCommands: (guildId?: string | null) => Promise<void>; data: APICommandData[]; fetchApiCommands: ( guildId: string | null, ) => Promise< Collection<string, ApplicationCommand<{ guild: GuildResolvable }>>, >; syncCommands: ( components: Collection<string, NonAPICommand>, options?: SyncCommandOptions, ) => Promise<void>; syncCommandsToDatabase: ( guildId: string | null, commandData: APICommandData[], diff: CommandCheckResponse, ) => Promise<void>;} Type declaration
checkCommandsSynced: (guildId: string | null) => Promise<CommandCheckResponse>
clearCommands: (guildId?: string | null) => Promise<void>
fetchApiCommands: (
guildId: string | null,
) => Promise<
Collection<string, ApplicationCommand<{ guild: GuildResolvable }>>,
>
syncCommands: (
components: Collection<string, NonAPICommand>,
options?: SyncCommandOptions,
) => Promise<void>
syncCommandsToDatabase: (
guildId: string | null,
commandData: APICommandData[],
diff: CommandCheckResponse,
) => Promise<void>
Checks if local commands are in sync with the database & Discord API