package nl.voidcorp.dbot.storage import net.dv8tion.jda.core.entities.Guild import nl.voidcorp.dbot.commands.GSM data class GuildSettings(val prefixes: MutableList = mutableListOf()) { fun getPrefixes(): MutableCollection { return prefixes } val primaryPrefix: String get() = prefixes.firstOrNull() ?: "!" } fun Guild.settings(): GuildSettings { return GSM.getSettings(this) }