translate

suspend fun ChannelType.translate(context: CommandContext): String

Given a CommandContext, translate the ChannelType to a human-readable string based on the context's locale.


fun ChannelType.translate(locale: Locale): String

Given a locale, translate the ChannelType to a human-readable string.


suspend fun NsfwLevel.translate(context: CommandContext): String

Given a CommandContext, translate the NsfwLevel to a human-readable string based on the context's locale.


fun NsfwLevel.translate(locale: Locale): String

Given a locale, translate the NsfwLevel to a human-readable string.


suspend fun Permission.translate(context: CommandContext): String

Given a CommandContext, translate the Permission to a human-readable string based on the context's locale.


fun Permission.translate(locale: Locale): String

Given a locale, translate the Permission to a human-readable string.