#Problem with Discord webhook

79 messages · Page 1 of 1 (latest)

gleaming trellis
#

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!

supple hatchBOT
#

This post has been reserved for your question.

Hey @gleaming trellis! Please use /close or the Close Post button 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.

gleaming trellis
nimble latch
#

...not sure why you're asking here?

#

this likely isn't anything to do with the implementation of the webhook at all

gleaming trellis
#

Becasue maybe it's a problem of the code i think D:

nimble latch
#

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

dull aurora
#

I think the underscores could be the issue

#

try with spaces maybe

gleaming trellis
nimble latch
#

well there's your answer

gleaming trellis
#

This is other webhook, not mine, that uses my name and logo, but it finds it

#

I don't know why

gleaming trellis
#

im gonna try that

nimble latch
#

just discord not being able to find the message
probably because the content just doesn't match tbh

gleaming trellis
#

this is with underscore

#

still finds it

#

😔

nimble latch
#

have you tried copying the name directly

gleaming trellis
#

yes, that's what I did

nimble latch
#

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

gleaming trellis
#

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:

nimble latch
#

well, that's not the problematic content...

dull aurora
#

try copying the content of a message 1:1

nimble latch
#

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.

gleaming trellis
#

shows the ones without codeblocks

#

with a search with spaces included

#

what a headache

gleaming trellis
nimble latch
#

ok so discord's search is really buggy with formatting characters that aren't formatted apparently

nimble latch
gleaming trellis
#

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

nimble latch
#

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

dull aurora
#

you could maybe try only searching for a part of it

nimble latch
#
a_a_a
#

that message won't show up in search. it's a problem with discord, not with your bot

dull aurora
#

e.g. if you want to search for abc_def_gih, just search for abc

nimble latch
#

search indexing may be slow.

#

nah some messages are just being dropped for no reason

#

got the same inconsistent behavior

gleaming trellis
#

so, i have to quit codeblocks and use regular chatting

nimble latch
#

probably not

#

discord might just be having issues right now particularly

#

oh wait wait

gleaming trellis
#

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

gleaming trellis
#

now yes

dull aurora
#

it depends on the message

nimble latch
#

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

dull aurora
#

but you could store all in a DB and add a command for the search

nimble latch
#

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

gleaming trellis
#

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

#

😭

dull aurora
gleaming trellis
#

so we have to

gleaming trellis
#

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!

supple hatchBOT