presence: fix top color
This commit is contained in:
		
							parent
							
								
									5a235ad023
								
							
						
					
					
						commit
						1831f4d3db
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -357,7 +357,7 @@ presence.callback = async function (msg, line) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const finalComponents = [{type: 10, content: `Presence for **${formatUsername(target)}**: ${icons.join(" ")}`}];
 | 
					    const finalComponents = [{type: 10, content: `Presence for **${formatUsername(target)}**: ${icons.join(" ")}`}];
 | 
				
			||||||
    if (components.length > 0) {
 | 
					    if (components.length > 0) {
 | 
				
			||||||
      const card = {type: 17, components: [], accent_color: getTopColor(msg, target)};
 | 
					      const card = {type: 17, components: [], accent_color: getTopColor(msg, target.id)};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      for (const [index, component] of components.entries()) {
 | 
					      for (const [index, component] of components.entries()) {
 | 
				
			||||||
        if (Array.isArray(component)) {
 | 
					        if (Array.isArray(component)) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue