Make ensureRoom/syncRoom check if autocreatable

This commit is contained in:
Cadence Ember
2024-09-24 17:21:35 +12:00
parent dbbb8281e6
commit af68657ec4
3 changed files with 27 additions and 7 deletions

View File

@@ -63,8 +63,8 @@ Pressing buttons on web or using the /invite command on a guild will insert a ro
So here's all the technical changes needed to support self-service in v3:
- New guild_active table showing whether, and how, a guild is bridged
- New guild_active table showing whether, and how, a guild is bridged.
- When /invite command is used, INSERT OR IGNORE INTO state 1 and ensureRoom + ensureSpace.
- When bot is added through "easy mode" web button, REPLACE INTO state 1 and ensureSpace.
- When bot is added through "self-service" web button, REPLACE INTO state 2.
- Event dispatcher will only ensureRoom if the guild_active state is 1
- When bot is added through "self-service" web button, REPLACE INTO state 0.
- Event dispatcher will only ensureRoom if the guild_active state is 1.