Hello, I have a personal minecraft plugin that uses a Discord webhook to send messages to a channel of a discord server. Everything is fine, it's just that when I try to search the message sent (e.g. hello) in the search options of the server it does not appear. I'm using a public github (don't remember the author) to use the webhook with embed, etc. Please help!
#Problem with Discord webhook
79 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @gleaming trellis! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
...not sure why you're asking here?
this likely isn't anything to do with the implementation of the webhook at all
Becasue maybe it's a problem of the code i think D:
no, everything's just on discord there
try that again, maybe try copy-pasting the username or trying other messages/other parts of the message in case there are some non-ascii characters there you aren't seeing
or just try searching in the channel plainly; the webhook messages should show up
well there's your answer
This is other webhook, not mine, that uses my name and logo, but it finds it
I don't know why
.
im gonna try that
just discord not being able to find the message
probably because the content just doesn't match tbh
have you tried copying the name directly
yes, that's what I did
from testing, looks like it is on discord's end. just doing a_a_a in a codeblock makes it just not show up in search, ever
It's weird, even without codeblocks it didn't show up months ago, now it finds it
so the problem is codeblocks... But why the other webhook works but not mine D:
well, that's not the problematic content...
try copying the content of a message 1:1
uh so having 1 underscore and searching with a space kinda works?
but 2 underscores means it just does not show up (0 results, kinda thing.)
it's not an issue of your webhook.
it's an issue on discord's end, with discord's search feature.
shows the ones without codeblocks
with a search with spaces included
what a headache
what is "discord's end"?
ok so discord's search is really buggy with formatting characters that aren't formatted apparently
the issue is with discord's code, not your code
got it
But as i showed you, it affects just me, no the others webhooks
that makes me think that the problem is from me
the other webhooks don't have formatting characters that aren't formatted
in the same way that's triggering the bug, apparently
you're stuck in confirmation bias right now
you could maybe try only searching for a part of it
a_a_a
that message won't show up in search. it's a problem with discord, not with your bot
e.g. if you want to search for abc_def_gih, just search for abc
it did but this message did not.
search indexing may be slow.
nah some messages are just being dropped for no reason
got the same inconsistent behavior
so, i have to quit codeblocks and use regular chatting
probably not
discord might just be having issues right now particularly
oh wait wait
This problem has like 10 months, when I started using webhooks
but now the problem it's for codeblocks, as i told you i had problem with all the webhook
it depends on the message
ok so discord search breaks with specifically:
messages in text channels
have formatting characters, where they aren't transformed into formatting
not reliant on the codeblock apparently
but you could store all in a DB and add a command for the search
the symptoms are inconsistent/slow indexing and extremely inconsistent content indexing
that's what ive found
maybe a combination of circumstances is making it even slower or consistently non-functional in your case, but it's nothing about your code. discord just being broken
i agree with dan, storing your own data would probably be better here
I'm struggling with this because the discord server is our database. I have staff that execute commands and the webhook sends the dats of the command to a specfic channel, so when a staff requires information he/she just searches in the search option
and like you saw, we have a lot of data, so seaching manually scrolling thru the text channel it's not efficent
😭
you cannot rely on Discord's search
I know, it is just the minecraft server owner does not provide us a way to see this
so we have to
then that needs to be changed
I'm gonna try to convince him. For the moment, I'm gonna quit codeblocks and just stay with regular chatting, thanks for the help!
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.