Merge pull request #1270 from dank074/patch/fix-pins
This commit is contained in:
		
						commit
						39b19d536c
					
				| @ -49,6 +49,7 @@ router.put( | ||||
| 
 | ||||
| 		const message = await Message.findOneOrFail({ | ||||
| 			where: { id: message_id }, | ||||
| 			relations: ["author"], | ||||
| 		}); | ||||
| 
 | ||||
| 		// * in dm channels anyone can pin messages -> only check for guilds
 | ||||
| @ -133,6 +134,7 @@ router.delete( | ||||
| 
 | ||||
| 		const message = await Message.findOneOrFail({ | ||||
| 			where: { id: message_id }, | ||||
| 			relations: ["author"], | ||||
| 		}); | ||||
| 
 | ||||
| 		if (message.guild_id) req.permission?.hasThrow("MANAGE_MESSAGES"); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Madeline
						Madeline