Skip to content
Snippets Groups Projects
Commit a3423bad authored by syuilo's avatar syuilo
Browse files

tweak

parent e3f91446
No related branches found
No related tags found
No related merge requests found
......@@ -117,7 +117,7 @@ async function addRole() {
const currentRoleIds = rolesThatCanBeUsedThisEmojiAsReaction.map(x => x.id);
const { canceled, result: role } = await os.select({
items: roles.filter(r => !currentRoleIds.includes(r.id)).map(r => ({ text: r.name, value: r })),
items: roles.filter(r => r.isPublic).filter(r => !currentRoleIds.includes(r.id)).map(r => ({ text: r.name, value: r })),
});
if (canceled) return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment