mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-11-26 12:35:20 +01:00
Fix deprecation in Modal
This commit is contained in:
parent
9d2ec71b39
commit
455065087c
@ -79,7 +79,7 @@ public class Modal implements JDAEntity<net.dv8tion.jda.api.interactions.modals.
|
||||
@Override
|
||||
public net.dv8tion.jda.api.interactions.modals.Modal asJDA() {
|
||||
return net.dv8tion.jda.api.interactions.modals.Modal.create(id, title)
|
||||
.addActionRows(rows.stream().map(ActionRow::asJDA).collect(Collectors.toList()))
|
||||
.addComponents(rows.stream().map(ActionRow::asJDA).collect(Collectors.toList()))
|
||||
.build();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user