// Using Rest Action channel.sendMessage("Your Message").queue( (m) -> m.delete().queueAfter(5, TimeUnit.SECONDS));