Renamed webhook icon to guest icon for preperation of avatars in the client

This commit is contained in:
Jeremy Zhang
2017-09-24 01:22:07 +00:00
parent cb10c35ec9
commit ad833434dd
13 changed files with 90 additions and 60 deletions

View File

@ -65,13 +65,13 @@ $("#discordio").keyup(function(event){
}
});
$("#webhook_icon").keyup(function(event){
$("#guest_icon").keyup(function(event){
if(event.keyCode == 13){
var pathname = window.location.pathname;
var value = $("#webhook_icon").val()
var payload = {"webhook_icon": value}
var value = $("#guest_icon").val()
var payload = {"guest_icon": value}
$.post(pathname, payload, function(data) {
Materialize.toast('Updated Webhook Icon setting!', 2000)
Materialize.toast('Updated Guest Icon setting!', 2000)
});
}
});