mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-10-31 22:09:08 +01:00 
			
		
		
		
	Seperated the name and discrim in the embed footer
This commit is contained in:
		| @@ -16,6 +16,7 @@ | |||||||
|     var times_fetched = 0; // kept track of how many times that it has fetched |     var times_fetched = 0; // kept track of how many times that it has fetched | ||||||
|     var fetch_error_count = 0; // Number of errors fetch has encountered |     var fetch_error_count = 0; // Number of errors fetch has encountered | ||||||
|     var priority_query_guild = false; // So you have selected a channel? Let's populate it. |     var priority_query_guild = false; // So you have selected a channel? Let's populate it. | ||||||
|  |     var current_username_discrim; // Current username/discrim pair, eg EndenDraogn#4151 | ||||||
|  |  | ||||||
|     function element_in_view(element, fullyInView) { |     function element_in_view(element, fullyInView) { | ||||||
|         var pageTop = $(window).scrollTop(); |         var pageTop = $(window).scrollTop(); | ||||||
| @@ -371,7 +372,7 @@ | |||||||
|     function handle_last_message_mention() { |     function handle_last_message_mention() { | ||||||
|         var lastmsg = $("#chatcontent p:last-child"); |         var lastmsg = $("#chatcontent p:last-child"); | ||||||
|         var content = lastmsg.text().toLowerCase(); |         var content = lastmsg.text().toLowerCase(); | ||||||
|         var username_discrim = $("#currentusername").text().toLowerCase(); |         var username_discrim = current_username_discrim.toLowerCase(); | ||||||
|         if (content.includes("@everyone") || content.includes("@" + username_discrim)) { |         if (content.includes("@everyone") || content.includes("@" + username_discrim)) { | ||||||
|             lastmsg.css( "color", "#ff5252" ); |             lastmsg.css( "color", "#ff5252" ); | ||||||
|             lastmsg.css( "font-weight", "bold" ); |             lastmsg.css( "font-weight", "bold" ); | ||||||
| @@ -497,10 +498,14 @@ | |||||||
|         if (authenticated) { |         if (authenticated) { | ||||||
|             $("#currentuserimage").show(); |             $("#currentuserimage").show(); | ||||||
|             $("#currentuserimage").attr("src", avatar); |             $("#currentuserimage").attr("src", avatar); | ||||||
|             $("#currentusername").text(username + "#" + discrim); |             $("#curuser_name").text(username); | ||||||
|  |             $("#curuser_discrim").text("#" + discrim); | ||||||
|  |             current_username_discrim = username + "#" + discrim; | ||||||
|         } else { |         } else { | ||||||
|             $("#currentuserimage").hide(); |             $("#currentuserimage").hide(); | ||||||
|             $("#currentusername").text(username + "#" + userid); |             $("#curuser_name").text(username); | ||||||
|  |             $("#curuser_discrim").text("#" + userid); | ||||||
|  |             current_username_discrim = username + "#" + userid; | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -118,7 +118,7 @@ | |||||||
|       <div id="footercontainer" class="footercontainer"> |       <div id="footercontainer" class="footercontainer"> | ||||||
|         <div class="currentuserchip left" id="nameplate"> |         <div class="currentuserchip left" id="nameplate"> | ||||||
|           <div class="left"><img id="currentuserimage" src="" class="circle left currentuserimage" style="display: none;"></div> |           <div class="left"><img id="currentuserimage" src="" class="circle left currentuserimage" style="display: none;"></div> | ||||||
|           <div id="currentusername" class="currentusername left">Titan#0001</div> |           <div id="currentusername" class="currentusername left"><span id="curuser_name">Titan</span><span id="curuser_discrim">#0001</span></div> | ||||||
|         </div> |         </div> | ||||||
|         <div id="messageboxouter" class="input-field inline"><textarea placeholder="Enter message" id="messagebox" type="text" class="materialize-textarea" rows="1"></textarea></div> |         <div id="messageboxouter" class="input-field inline"><textarea placeholder="Enter message" id="messagebox" type="text" class="materialize-textarea" rows="1"></textarea></div> | ||||||
|       </div> |       </div> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user