Interface PrefixProvider

All Known Implementing Classes:
GuildPrefix, StaticPrefix

public interface PrefixProvider
Object that provides the prefix to consider for commands during event handling.
Since:
1.0
Version:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Determines the prefix that should be used for the given guild.
  • Method Details

    • getPrefix

      String getPrefix(@Nullable Snowflake guildId)
      Determines the prefix that should be used for the given guild.
      Parameters:
      guildId - The ID of the guild that the event was issued from, or null if it was issued from a private channel.
      Returns:
      The prefix to use.