Skip to content

Create Server Setting Table #68

Open

Description

@FelixRandle

Database

2 Tables

Settings
Int, String, String
Id, Identifier, DefaultValue

GuildSettings
Id, GuildId, SettingId, Value

Code

Needs a public interface so cogs can register settings for themselves
e.g.
register_setting("christmasMode", "false")

When pulling a setting, if no entry for the guild, use default value.
GuildSettings entry only exists once it has been explicitly set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions