utility: attempt fix flagsFromInt
This commit is contained in:
		
							parent
							
								
									82106f0dd2
								
							
						
					
					
						commit
						5f7d064750
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -383,9 +383,9 @@ function flagsFromInt(int, flags, withRaw = true) {
 | 
			
		|||
 | 
			
		||||
  for (const flag of assignedFlags) {
 | 
			
		||||
    out.push(
 | 
			
		||||
      (flags[flag] || "<Undocumented Flag>") + withRaw
 | 
			
		||||
        ? ` (1 << ${flag}, ${1n << BigInt(flag)})`
 | 
			
		||||
        : ""
 | 
			
		||||
      `${flags[flag] ?? "<Undocumented Flag>"}${
 | 
			
		||||
        withRaw == true ? ` (1 << ${flag}, ${1n << BigInt(flag)})` : ""
 | 
			
		||||
      }`
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1433,7 +1433,7 @@ appinfo.callback = async function (msg, line) {
 | 
			
		|||
      fields: [
 | 
			
		||||
        {
 | 
			
		||||
          name: "Created",
 | 
			
		||||
          value: `<t:${snowflakeToTimestamp(app.id)}:R>`,
 | 
			
		||||
          value: `<t:${Math.floor(snowflakeToTimestamp(app.id) / 1000)}:R>`,
 | 
			
		||||
          inline: true,
 | 
			
		||||
        },
 | 
			
		||||
      ],
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue