gesinn-it-pub / mwbot

A simple, but flexible MediaWiki bot for Node.js
MIT License
46 stars 15 forks source link

Clarify how to use edit tokens #29

Open lucaswerkmeister opened 5 years ago

lucaswerkmeister commented 5 years ago

This library’s handling of edit tokens is currently a bit inconsistent, I think:

I have no idea which of these should be used when making a request directly with request(). this.editToken looks good, but it’s unclear if it’s part of the stable interface. getEditToken() is part of the stable interface, but resolves with an undocumented value that looks more like an implementation detail than this.editToken. Can you clarify this?