Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save iaindooley/6ebdd1975319c4f5a165a0eca563a240 to your computer and use it in GitHub Desktop.
Highlander member ... THERE CAN BE ONLY ONE
function highlanderMember(notification)
{
var notif = new Notification(notification);
var added = notif.addedMemberToCard();
if(added.card().members().length() > 1)
{
added
.card()
.removeMember(added);
notif.replyToMember("THERE CAN BE ONLY ONE");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment