Package com.jagrosh.jdautilities.command
Interface GuildSettingsProvider
public interface GuildSettingsProvider
A basic frame that is optionally implementable by objects returned from
Additionally, as stated before, the interface itself does not need to be implemented for an object to be returned handled by a GuildSettingsManager.
GuildSettingsManager#getSettings(Guild)
.
This interface allows the specification of any of the following functions:
- Guild Specific Prefixes (via
getPrefixes()
)
Additionally, as stated before, the interface itself does not need to be implemented for an object to be returned handled by a GuildSettingsManager.
- Since:
- 2.0
- Author:
- Kaidan Gustave
- Implementation Note:
- Unless in the event of a major breaking change to
JDA, there is no chance of implementations of this
interface being required to implement additional
methods.
If in the future it is decided to add a method to this interface, the method will have a default implementation that doesn't require developer additions.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Collection<String>
Gets aCollection
of String prefixes available for the Guild represented by this implementation.
-
Method Details
-
getPrefixes
Gets aCollection
of String prefixes available for the Guild represented by this implementation.An empty Collection or
null
may be returned to signify the Guild doesn't have any guild specific prefixes, or that this feature is not supported by this implementation.- Returns:
- A Collection of String prefixes for the Guild represented by this
implementation, or
null
to signify it has none or that the feature is not supported by the implementation.
-