put the preset in the preset field......
This commit is contained in:
		
							parent
							
								
									98f5aeb45a
								
							
						
					
					
						commit
						1b03a39dee
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -187,7 +187,7 @@ async function createRoom(channel, guild, spaceID, kstate, privacyLevel) {
 | 
			
		|||
		const roomID = await api.createRoom({
 | 
			
		||||
			name,
 | 
			
		||||
			topic,
 | 
			
		||||
			preset: PRIVACY_ENUMS.ROOM_HISTORY_VISIBILITY[privacyLevel], // This is closest to what we want, but properties from kstate override it anyway
 | 
			
		||||
			preset: PRIVACY_ENUMS.PRESET[privacyLevel], // This is closest to what we want, but properties from kstate override it anyway
 | 
			
		||||
			visibility: PRIVACY_ENUMS.VISIBILITY[privacyLevel],
 | 
			
		||||
			invite: [],
 | 
			
		||||
			initial_state: ks.kstateToState(kstate)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue