Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor options/choices to use more direct naming instead of type ints #3

Open
mekanoe opened this issue Aug 3, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@mekanoe
Copy link
Member

mekanoe commented Aug 3, 2021

Current:

resource "discord-interactions_guild_command" "example" {
  name        = "hello-world"
  description = "An example global command"
  guild_id    = "386659935687147521"

  option {
    type        = 6
    name        = "user"
    description = "Tell this person hello!"
  }

  option {
    type        = 3
    name        = "message"
    description = "What message do I send?"
  }
}

Ideal:

resource "discord-interactions_guild_command" "example" {
  name        = "hello-world"
  description = "An example global command"
  guild_id    = "386659935687147521"

  user_option {
    name        = "user"
    description = "Tell this person hello!"
  }

  string_option {
    name        = "message"
    description = "What message do I send?"
  }
}

including choice types, and subcommands + subcommand groups.

@mekanoe mekanoe added the enhancement New feature or request label Aug 3, 2021
@mekanoe mekanoe assigned mekanoe and unassigned mekanoe Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant