Bilge
Bilge3w ago

I deleted discord_bot_configuration... how do I get it back?

discord_bot_configuration is a resource type for this script, but forking it again doesn't give me the resource type again, so how do I get it back?
Script 'Send message to Discord channel using Discord Bot' for disc...
How to Send message to Discord channel using Discord Bot for discord : Send message to Discord channel using apps: https://discord.com/developers/applications
5 Replies
Hugo C.
Hugo C.3w ago
you can copy the raw resource type schema under advanced on this page: https://hub.windmill.dev/resource_types/104/discord_bot_configuration and then recreate the resource type on your instance in the admins workspace
Bilge
BilgeOP3w ago
How did I get it in the first place? Does forking scripts come bundled with resources, but only the first time, or is this particular resource bundled with Windmill but offers no way to restore defaults?
Hugo C.
Hugo C.3w ago
no it's synced automatically you should have a script in the admins workspace which is scheduled to run regularly "Synchronize Hub Resource types with admins workspace"
Bilge
BilgeOP3w ago
Oh, that's what that's about I ended up deleting it because I needed to modify it. The client_secret parameter is incorrectly named public_key, which is very misleading. However, if this is going to keep syncing itself, is it going to overwrite my changes?
Hugo C.
Hugo C.3w ago
it will overwrite your changes you should either use a differente resource type name or disable the schedule, if any