codePreviews: catch edit errors
This commit is contained in:
		
							parent
							
								
									ae66cfa216
								
							
						
					
					
						commit
						a511f79c5f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -107,7 +107,7 @@ events.add("messageCreate", "codePreviews", async function (msg) {
 | 
				
			||||||
  if (out.length > 2000) return;
 | 
					  if (out.length > 2000) return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (out !== "") {
 | 
					  if (out !== "") {
 | 
				
			||||||
    await msg.edit({flags: 1 << 2});
 | 
					    await msg.edit({flags: 1 << 2}).catch(() => {});
 | 
				
			||||||
    await msg.channel.createMessage({
 | 
					    await msg.channel.createMessage({
 | 
				
			||||||
      content: out,
 | 
					      content: out,
 | 
				
			||||||
      allowedMentions: {
 | 
					      allowedMentions: {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue