#Can't add editor
1 messages · Page 1 of 1 (latest)
the same thing you sent, should i paste it again here?
paste it again
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
no
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 } } }
}
])
});
just needs to be somewhere on 7tv.app
okay
ohh lol
💀
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
okay let me try
so discord won't format it
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
