@@ -81,18 +81,18 @@ export class DiscordBridgeConfig {
81
81
}
82
82
83
83
export class DiscordBridgeConfigBridge {
84
- public domain : string ;
85
- public homeserverUrl : string ;
86
- public port : number ;
87
- public bindAddress : string ;
84
+ public domain : string = "" ;
85
+ public homeserverUrl : string = "" ;
86
+ public port : number = 0 ;
87
+ public bindAddress : string = "" ;
88
88
public presenceInterval : number = 500 ;
89
- public disablePresence : boolean ;
90
- public disableTypingNotifications : boolean ;
91
- public disableDiscordMentions : boolean ;
92
- public disableDeletionForwarding : boolean ;
93
- public enableSelfServiceBridging : boolean ;
94
- public disablePortalBridging : boolean ;
95
- public disableReadReceipts : boolean ;
89
+ public disablePresence : boolean = false ;
90
+ public disableTypingNotifications : boolean = false ;
91
+ public disableDiscordMentions : boolean = false ;
92
+ public disableDeletionForwarding : boolean = false ;
93
+ public enableSelfServiceBridging : boolean = false ;
94
+ public disablePortalBridging : boolean = false ;
95
+ public disableReadReceipts : boolean = false ;
96
96
public disableEveryoneMention : boolean = false ;
97
97
public disableHereMention : boolean = false ;
98
98
public disableJoinLeaveNotifications : boolean = false ;
@@ -106,17 +106,17 @@ export class DiscordBridgeConfigBridge {
106
106
}
107
107
108
108
export class DiscordBridgeConfigDatabase {
109
- public connString : string ;
110
- public filename : string ;
109
+ public connString : string = "" ;
110
+ public filename : string = "" ;
111
111
// These parameters are legacy, and will stop the bridge if defined.
112
- public userStorePath : string ;
113
- public roomStorePath : string ;
112
+ public userStorePath : string = "" ;
113
+ public roomStorePath : string = "" ;
114
114
}
115
115
116
116
export class DiscordBridgeConfigAuth {
117
- public clientID : string ;
118
- public botToken : string ;
119
- public usePrivilegedIntents : boolean ;
117
+ public clientID : string = "" ;
118
+ public botToken : string = "" ;
119
+ public usePrivilegedIntents : boolean = false ;
120
120
}
121
121
122
122
export class DiscordBridgeConfigLogging {
@@ -126,7 +126,7 @@ export class DiscordBridgeConfigLogging {
126
126
}
127
127
128
128
class DiscordBridgeConfigRoom {
129
- public defaultVisibility : string ;
129
+ public defaultVisibility : string = "" ;
130
130
public kickFor : number = 30000 ;
131
131
}
132
132
@@ -152,7 +152,7 @@ class DiscordBridgeConfigLimits {
152
152
}
153
153
154
154
export class LoggingFile {
155
- public file : string ;
155
+ public file : string = "" ;
156
156
public level : string = "info" ;
157
157
public maxFiles : string = "14d" ;
158
158
public maxSize : string | number = "50m" ;
0 commit comments