mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-06-16 19:35:24 +02:00
Implement autorole for embed users
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
$('.chips').material_chip();
|
||||
$('select').material_select();
|
||||
|
||||
$('#unauth_users').change(function() {
|
||||
var pathname = window.location.pathname;
|
||||
@ -154,6 +155,24 @@ function add_delete_banned_words(action, word) {
|
||||
});
|
||||
}
|
||||
|
||||
$("#autorole_unauth").change(function () {
|
||||
var pathname = window.location.pathname;
|
||||
var value = $(this).val();
|
||||
var payload = {"autorole_unauth": value}
|
||||
$.post(pathname, payload, function(data) {
|
||||
Materialize.toast('Updated Guest AutoRole setting!', 2000)
|
||||
});
|
||||
});
|
||||
|
||||
$("#autorole_discord").change(function () {
|
||||
var pathname = window.location.pathname;
|
||||
var value = $(this).val();
|
||||
var payload = {"autorole_discord": value}
|
||||
$.post(pathname, payload, function(data) {
|
||||
Materialize.toast('Updated Discord AutoRole setting!', 2000)
|
||||
});
|
||||
});
|
||||
|
||||
function initiate_ban(guild_id, user_id) {
|
||||
var reason = prompt("Please enter your reason for ban");
|
||||
var payload = {
|
||||
|
Reference in New Issue
Block a user