#Can't add editor

1 messages · Page 1 of 1 (latest)

tulip spindle
#

@strange lava can you provide what he pasted here?

strange lava
tulip spindle
#

paste it again

strange lava
#

btw i think i know what went wrong, does he need to do it in the editor tab? he did in the 7tv home page

tulip spindle
#

no

strange lava
#

oh

#

fetch('https://7tv.io/v4/gql', {
method: 'POST',
headers: {
'authorization': Bearer ${window.localStorage.getItem('7tv-token')},
'content-type': 'application/json'
},
body: JSON.stringify([
{
operationName: "AddEditor",
variables: {
userId: "01JMA4G12J5QJ06D235P7KQ66N",
editorId: "01JMA2871Z1F8B2HADEMYEQFX7",
permissions: {
superAdmin: false,
emote: {
admin: false,
create: false,
manage: false,
transfer: false
},
emoteSet: {
admin: false,
create: false,
manage: false
},
user: {
admin: false,
manageBilling: false,
manageEditors: false,
managePersonalEmoteSet: false,
manageProfile: false
}
}
},
query: mutation AddEditor($userId: Id!, $editorId: Id!, $permissions: UserEditorPermissionsInput!) { userEditors { create(userId: $userId, editorId: $editorId, permissions: $permissions) { __typename } } }
}
])
});

tulip spindle
#

just needs to be somewhere on 7tv.app

strange lava
tulip spindle
#

You sent him this script and discord formatted some of it

#

is he on this discord?

strange lava
#

ohh lol

strange lava
#

no

#

sorry mb

#

shoul i tell him to join?

tulip spindle
#

wait no

strange lava
#

💀

tulip spindle
#
fetch('https://7tv.io/v4/gql', {
  method: 'POST',
  headers: {
    'authorization': `Bearer ${window.localStorage.getItem('7tv-token')}`,
    'content-type': 'application/json'
  },
  body: JSON.stringify([
    {
      operationName: "AddEditor",
      variables: {
        userId: "01JMA4G12J5QJ06D235P7KQ66N",
        editorId: "01JMA2871Z1F8B2HADEMYEQFX7",
        permissions: {
          superAdmin: false,
          emote: {
            admin: false,
            create: false,
            manage: false,
            transfer: false
          },
          emoteSet: {
            admin: false,
            create: false,
            manage: false
          },
          user: {
            admin: false,
            manageBilling: false,
            manageEditors: false,
            managePersonalEmoteSet: false,
            manageProfile: false
          }
        }
      },
      query: `mutation AddEditor($userId: Id!, $editorId: Id!, $permissions: UserEditorPermissionsInput!) {
        userEditors {
          create(userId: $userId, editorId: $editorId, permissions: $permissions) {
            __typename
          }
        }
      }`
    }
  ])
});
#

copy this and wrap all of it in ``` code here ```

#

test like that

strange lava
#

okay let me try

tulip spindle
#

so discord won't format it

strange lava
#

okay

#
  method: 'POST',
  headers: {
    'authorization': `Bearer ${window.localStorage.getItem('7tv-token')}`,
    'content-type': 'application/json'
  },
  body: JSON.stringify([
    {
      operationName: "AddEditor",
      variables: {
        userId: "01JMA4G12J5QJ06D235P7KQ66N",
        editorId: "01JMA2871Z1F8B2HADEMYEQFX7",
        permissions: {
          superAdmin: false,
          emote: {
            admin: false,
            create: false,
            manage: false,
            transfer: false
          },
          emoteSet: {
            admin: false,
            create: false,
            manage: false
          },
          user: {
            admin: false,
            manageBilling: false,
            manageEditors: false,
            managePersonalEmoteSet: false,
            manageProfile: false
          }
        }
      },
      query: `mutation AddEditor($userId: Id!, $editorId: Id!, $permissions: UserEditorPermissionsInput!) {
        userEditors {
          create(userId: $userId, editorId: $editorId, permissions: $permissions) {
            __typename
          }
        }
      }`
    }
  ])
});```
#

@tulip spindle ?💀

#

test

tulip spindle
#

yeah like that

#

you send it like that

#

and he has to copy inside of it