"API mismatch" - terminal-discord/weechat-discord GitHub Wiki

If the plugin was compiled for a different version of the weechat api, you can manually specify the path to your weechat-plugin.h file when building.

export WEECHAT_BUNDLED=false
# the header can also be found at `./src/plugins/weechat-plugin.h` in the weechat source
export WEECHAT_PLUGIN_FILE=/usr/local/opt/weechat/include/weechat/weechat-plugin.h # or wherever you have weechat installed
cargo build --release