Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.52 KB | None | 0 0
  1. function loadPermForm() {
  2.                     const endpoint = "/Discord/GetRole?";
  3.                     const serverId = `serverId=${@Model.Server.ServerId}`;
  4.                     const roleId = `roleId=${roleIdSelector.value}`;
  5.                     const uri = endpoint + serverId + '&' + roleId;
  6.                     window.fetch(uri).then((resp) => {
  7.                         resp.json().then((data) => {
  8.                             console.log(data);
  9.                         });
  10.                     });
  11.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement