OnlyInServers does not work properly sometimes #17
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Foxite/Botsome#17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I had an item with a probability of 0.001 and an OnlyInServers list with one server. This item has activated 4 times in servers where it was not supposed to activate. When I raise the probability for testing, it does not activate.
I have disabled this item globally until I find out what the problem is
My current theory is that this isn't to do with the item having a probability but because the GuildId is missing from the object when it is received from Discord. The docs say that the guild_id property of a Channel object "may be missing for some channel objects received over gateway guild dispatches" which is of course very clear and useful. I wasn't able to find a specific event that does this, but MessageCreated shouldn't be one of them.
Regardless I've added code to alert a webhook if this appears to be the case.
So I added this item to my config:
It consistently triggers even though there is no server that exists, with that ID. However I did not get the report from the builtin alert.
This stopped happening after I restarted Botsome