userinfo: untry rq
This commit is contained in:
		
							parent
							
								
									c515f1d401
								
							
						
					
					
						commit
						a3f4f6aa96
					
				
					 1 changed files with 21 additions and 21 deletions
				
			
		| 
						 | 
				
			
			@ -511,7 +511,7 @@ userinfo.callback = async function (msg, line) {
 | 
			
		|||
    const baseUrl = `https://cdn.discordapp.com/assets/collectibles/${nameplate.asset}`;
 | 
			
		||||
    let imageUrl = baseUrl + "/static.png";
 | 
			
		||||
    if (palette) {
 | 
			
		||||
      try {
 | 
			
		||||
      //try {
 | 
			
		||||
      const static = await fetch(imageUrl)
 | 
			
		||||
        .then((res) => res.arrayBuffer())
 | 
			
		||||
        .then((b) => Buffer.from(b));
 | 
			
		||||
| 
						 | 
				
			
			@ -531,9 +531,9 @@ userinfo.callback = async function (msg, line) {
 | 
			
		|||
        filename: "nameplate.png",
 | 
			
		||||
      });
 | 
			
		||||
      imageUrl = "attachment://nameplate.png";
 | 
			
		||||
      } catch {
 | 
			
		||||
      //} catch {
 | 
			
		||||
      // noop
 | 
			
		||||
      }
 | 
			
		||||
      //}
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    nameplateEmbed = {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue