소스 검색

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)