File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ func componentListener(event *events.ComponentInteractionCreate) {
48
48
ids := strings .Split (data .CustomID (), ":" )
49
49
switch ids [0 ] {
50
50
case "modal" :
51
- _ = event .CreateModal (discord.ModalCreate {
51
+ _ = event .Modal (discord.ModalCreate {
52
52
CustomID : "test" + ids [1 ],
53
53
Title : "Test" + ids [1 ] + " Modal" ,
54
54
Components : []discord.ContainerComponent {
@@ -159,7 +159,7 @@ func applicationCommandListener(event *events.ApplicationCommandInteractionCreat
159
159
func autocompleteListener (event * events.AutocompleteInteractionCreate ) {
160
160
switch event .Data .CommandName {
161
161
case "test2" :
162
- if err := event .Result ([]discord.AutocompleteChoice {
162
+ if err := event .AutocompleteResult ([]discord.AutocompleteChoice {
163
163
discord.AutocompleteChoiceInt {
164
164
Name : "test1" ,
165
165
Value : 1 ,
You can’t perform that action at this time.
0 commit comments