File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
src/main/kotlin/me/devoxin/flight/api/context Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -65,20 +65,6 @@ interface Context {
6565 ? : messageChannel.sendMessage(content).submit()
6666 }
6767
68- /* *
69- * Convenience method for replying to either a slash command event, or a message event.
70- * This will acknowledge, and correctly respond to slash command events, if applicable.
71- *
72- * @param embed
73- * The options to apply to the embed builder.
74- */
75- fun respond (embed : EmbedBuilder .() -> Unit ): CompletableFuture <* > {
76- val create = MessageCreateData .fromEmbeds(EmbedBuilder ().apply (embed).build())
77-
78- return asSlashContext?.respond0(create)
79- ? : messageChannel.sendMessage(create).submit()
80- }
81-
8268 /* *
8369 * Convenience method for replying to either a slash command event, or a message event.
8470 * This will acknowledge, and correctly respond to slash command events, if applicable.
You can’t perform that action at this time.
0 commit comments