[Solved] how to @ youself and someone else in a embed on discord

[ad_1] You are getting the result you get because you use the same code at two places. message.author.toString() + ‘called’ + message.author.toString() ^ once here ^ and once here What you need to do is get the member you mentioned and use that instead. message.mentions.members.first().toString() 1 [ad_2] solved how to @ youself and someone else … Read more

[Solved] Python declare multiple lists

[ad_1] You can use a dictionary to store the values: x=[‘aze’,’qsd’,’frz’,…] vars = {} for i in x: vars[“MAX” + i] = [] Or in order for them to become real variables you can add them to globals: x=[‘aze’,’qsd’,’frz’,…] for i in x: globals()[“MAX” + i] = [] You can now use: MAXaze = [1,2,3] … Read more

[Solved] Security of PHP POST Array

[ad_1] An attacker cannot “escape” a PHP array, because the contents of the array are not executed as code. It may contain a string of PHP, but that string is not executed. What may be insecure is how your PHP code handles the user input later on. If you are outputting the data without sanitising … Read more

[Solved] Remove objects from list based on equal property and comparison of time/date [closed]

[ad_1] Assuming you have the corresponding getters and setters, you may try something like below: List<Person> unique = persons.stream() .collect(Collectors.groupingBy(Person::getCustomerNumber)) //returns a Map<String,List<Person>> with customerNumber as key .values() .stream() // stream and sort each list .map(e-> e.stream().sorted( Comparator.comparing(Person::getBirthday) .thenComparing(Person::getBirthTime)) .findFirst().get()) // map to first Person obj .collect(Collectors.toList()); unique.forEach(System.out::println); 1 [ad_2] solved Remove objects from list … Read more

[Solved] How to Convert Date to Int? [closed]

[ad_1] String year1= String.valueOf (year); String month1= String.valueOf(month); String day1= String.valueOf(day); must be changed to String year1= String.valueOf (num1); String month1= String.valueOf(num2); String day1= String.valueOf(num3); because these 3 variables only hold the values entered by the user. Also, not sure why you need the hour, because you never get that as inout from the user. … Read more

[Solved] How can I create a SplashScreen in LibGDX that goes through 3 images before showing the main menu? [closed]

[ad_1] Time Delay float delay = 1; // seconds Timer.schedule(new Task(){ @Override public void run() { // Do your work } }, delay); The above code helps you delay the execution, and after that delay you can perform the action you want. Here, Inside the run method you can switch to any screen and ofcourse … Read more

[Solved] Change link URL to a different link depending on the page

[ad_1] Try something along the lines of this… $(document).ready(function() { var url = window.location.href; var UrlofpageX = url.indexOf(‘theurlyouwanttolookfor’); if (UrlofpageX >= 0) { $(‘.yourlink’).append(‘<a href=”https://website-B”><li>Your different link</li></a>’); } else { $(‘.yourlink’).append(‘<a href=”https://website-A”><li>Your original link</li></a>’); } }); So what happens here is you get the URL of the page that you’re currently on. It gets stored … Read more