mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-04 17:09:41 +00:00
Move region to webrtc schemas
This commit is contained in:
@@ -17,10 +17,10 @@
|
||||
*/
|
||||
|
||||
import { Payload, WebSocket } from "@spacebar/gateway";
|
||||
import { Config, emitEvent, Guild, Member, Region, VoiceServerUpdateEvent, VoiceState, VoiceStateUpdateEvent } from "@spacebar/util";
|
||||
import { Config, emitEvent, Guild, Member, VoiceServerUpdateEvent, VoiceState, VoiceStateUpdateEvent } from "@spacebar/util";
|
||||
import { genVoiceToken } from "../util/SessionUtils";
|
||||
import { check } from "./instanceOf";
|
||||
import { VoiceStateUpdateSchema } from "@spacebar/schemas";
|
||||
import { Region, VoiceStateUpdateSchema } from "@spacebar/schemas";
|
||||
// TODO: check if a voice server is setup
|
||||
|
||||
// Notice: Bot users respect the voice channel's user limit, if set.
|
||||
|
||||
@@ -15,5 +15,7 @@
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
export * from "./VoiceIdentifySchema";
|
||||
export * from "./VoiceVideoSchema";
|
||||
export * from "./Region"
|
||||
@@ -16,7 +16,7 @@
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { Region } from ".";
|
||||
import { Region } from "@spacebar/schemas";
|
||||
|
||||
export class RegionConfiguration {
|
||||
default: string = "spacebar";
|
||||
|
||||
@@ -21,6 +21,5 @@ export * from "./defaults";
|
||||
export * from "./guild";
|
||||
export * from "./kafka";
|
||||
export * from "./limits";
|
||||
export * from "./region";
|
||||
export * from "./register";
|
||||
export * from "./security";
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
/*
|
||||
Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
|
||||
Copyright (C) 2023 Spacebar and Spacebar Contributors
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published
|
||||
by the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
export * from "./Region";
|
||||
Reference in New Issue
Block a user