Date: 2024/01/08 06:59:55 UTC-08:00
Type: Denizen Script
executeCmd:
type: world
events:
on discord slash command name:execute:
- ~discordinteraction defer interaction:<context.interaction>
- define command_input <context.options.get[command].if_null[<empty>]>
- if <[command_input]>:
- execute silent as_server <[command_input]>
- ~discordinteraction reply interaction:<context.interaction>
- else:
- ~discordinteraction reply interaction:<context.interaction> "Something went wrong!"
- stop