Slash
16eb0b8
jvm
Slash
/
tv.blademaker.slash
/
SlashUtils
Slash
Utils
object
SlashUtils
Members
Functions
as
Ephemeral
Link copied to clipboard
fun
RestAction
<
*
>
.
asEphemeral
(
)
:
RestAction
<
*
>
await
Link copied to clipboard
inline suspend
fun
<
E
:
GenericEvent
>
await
(
events
:
SharedFlow
<
GenericEvent
>
,
timeout
:
Duration
,
crossinline
filter
:
suspend
(
event
:
E
)
->
Boolean
)
:
E
?
discover
Slash
Commands
Link copied to clipboard
fun
discoverSlashCommands
(
packageName
:
String
)
:
DiscoveryResult
Discover the
BaseSlashCommand
inside the package.
on
Link copied to clipboard
inline
fun
<
E
:
GenericEvent
>
on
(
events
:
SharedFlow
<
GenericEvent
>
,
scope
:
CoroutineScope
,
noinline
action
:
suspend
(
event
:
E
)
->
Unit
)
:
Job
to
Human
Link copied to clipboard
fun
Array
<
Permission
>
.
toHuman
(
jump
:
Boolean
=
false
)
:
String
Convert an
Array
of
Permission
in a readable list.