Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is with this "webhook unavailable" message when an embed is sent #21

Open
Endomou opened this issue Dec 11, 2020 · 6 comments
Open
Labels
bug Something isn't working

Comments

@Endomou
Copy link

Endomou commented Dec 11, 2020

Hi! this is a very nice bot it took me a while to get how it works though but I got it working and I used this to link a discord channel of my mc server so it sends embeds if someone joins the server and if the server starts or stops but it says webhook unavailable in (server name)
image

@Khaaz
Copy link
Owner

Khaaz commented Dec 11, 2020

This most likely means that for this specific server the webhook doesn't work. It can be because of a bug of another sort, but in 90% of case it just mean that your config for this webhook is not correct (invalid token or id). Double check your config and make sure the webhook is correctly set-up.
Make sure the bot has sufficient permissions as well.
In case this issue still happens after you triple checked and you are 100% sure the webhook is correctly setup in your config and in your server, you can come back here for further investigations.

@Endomou
Copy link
Author

Endomou commented Dec 11, 2020

alright I'm pretty sure the webhook id is fine because I tried swapping the webhook id and token of the two servers and from my testing what happened was the bot was linking the channel to itself which means it was sending the message to the same channel now when I swapped the webhook id and token back it was back to normal.

Normal webhook

Swapped webhook

also the problem is only that the bot can't copy the embed from the minecraft bot and send it to the other server. but it can send messages normally from one server to other if it's just text or images.

@Endomou
Copy link
Author

Endomou commented Dec 11, 2020

I tested it more, it seems embeds from bots are the only messages that can't be copied but images from text and images and links can be sent to the other server.

@Khaaz
Copy link
Owner

Khaaz commented Dec 11, 2020

I see, that makes sense. An easy fix is to stop all messages from bot, or prevent bots from talking in the channel. I apparently have not added support for embeds. It's basically trying to send an empty message which fails.
I'll add that to the TODO list. Thanks for the report, this is a valid issue 👍🏻

@Khaaz Khaaz added the bug Something isn't working label Dec 11, 2020
@joeydoesthings
Copy link

Yeah this message is really annoying. if it could at least have a disable function in the config or something I'd really appreciate it.

@Khaaz
Copy link
Owner

Khaaz commented Jan 31, 2021

The simplest way is to actually disable bots from sending messages in the configs
Otherwise you can remove these lines here: https://github.com/Khaaz/Cross-Server-Bot/blob/master/src/utils.js#L59-L67

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants