瀏覽代碼

fix(examples/modals): more renaming of InputText to TextInput

nitroflap 3 年之前
父節點
當前提交
dcf6fe0128
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      examples/modals/main.go

+ 2 - 2
examples/modals/main.go

@@ -115,8 +115,8 @@ func main() {
 			_, err = s.ChannelMessageSend(*ResultsChannel, fmt.Sprintf(
 				"Feedback received. From <@%s>\n\n**Opinion**:\n%s\n\n**Suggestions**:\n%s",
 				userid,
-				data.Components[0].(*discordgo.ActionsRow).Components[0].(*discordgo.InputText).Value,
-				data.Components[1].(*discordgo.ActionsRow).Components[0].(*discordgo.InputText).Value,
+				data.Components[0].(*discordgo.ActionsRow).Components[0].(*discordgo.TextInput).Value,
+				data.Components[1].(*discordgo.ActionsRow).Components[0].(*discordgo.TextInput).Value,
 			))
 			if err != nil {
 				panic(err)