Add Discord guild ID configuration and enhance event announcement options
Some checks failed
CI / backend (push) Has been cancelled
CI / frontend (push) Has been cancelled
CI / compose (push) Has been cancelled

This commit introduces the `DISCORD_GUILD_ID` environment variable to the configuration files, allowing for better integration with Discord for role synchronization. The event announcement functionality has been updated to include an option for the `@everyone` mention, which can be toggled during event creation. The backend logic has been modified to handle this new option, and corresponding updates have been made to the frontend to allow users to control the mention behavior. Additionally, tests have been added to ensure the correct functionality of these features.
This commit is contained in:
2026-07-19 11:34:11 +03:00
parent ae19c03542
commit c3624376b0
29 changed files with 1524 additions and 37 deletions

View File

@@ -171,7 +171,7 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/EventInput"
$ref: "#/components/schemas/EventCreateInput"
responses:
"201":
description: Event created
@@ -1034,6 +1034,15 @@ components:
type: string
format: date-time
description: Synchronized by the server to startsAt.
EventCreateInput:
allOf:
- $ref: "#/components/schemas/EventInput"
- type: object
properties:
pingEveryone:
type: boolean
default: true
description: Whether the Discord announcement should notify @everyone. The announcement is still posted when false.
Event:
allOf:
- $ref: "#/components/schemas/EventInput"