Interface LocalizedComponent
- All Known Subinterfaces:
SequencedComponent<T>
- All Known Implementing Classes:
AbstractSequencedContainer, SeparatedContainer, SequencedContainer, SequencedTextDisplay, TextDisplayContainer
public sealed interface LocalizedComponent
permits AbstractSequencedContainer<E,R>, SequencedComponent<T>
Interface for
Components that can be localized.-
Method Summary
Modifier and TypeMethodDescriptionAdds Entries to use for localization.entries(Collection<Entry> entries) Adds Entries to use for localization.locale()Gets theLocalethis container will be localized inSets theLocalethis component will be localized inlocale(DiscordLocale locale) Sets theLocalethis component will be localized in
-
Method Details
-
locale
-
locale
Sets theLocalethis component will be localized in- Parameters:
locale- the newDiscordLocaleto use for localization- Returns:
- this instance for fluent interface
-
locale
-
entries
-
entries
-