Comments (8)
I don't know whether this should be appended here or in another issue or not, but I run into an
AttributeError: 'set' object has no attribute 'append'
(coroChannelEvents._on_raw_channel_create
in filedis_snek/event_processors/channel_events.py:18
)
Which version do you use? Its probably fixed in 6.0.0
from naff.
not fixing this as it would be more useful to keep it in the cache. Bots with uncapped message caches would want to keep deleted messages, bots with TTLCaches wont care if we delete it or not
_on_raw_message_delete
does not delete message from cache
from naff.
not fixing this as it would be more useful to keep it in the cache. Bots with uncapped message caches would want to keep deleted messages, bots with TTLCaches wont care if we delete it or not
_on_raw_message_delete
does not delete message from cache
Then we should have an attribute or some other indication to convey that the message was deleted
from naff.
not fixing this as it would be more useful to keep it in the cache. Bots with uncapped message caches would want to keep deleted messages, bots with TTLCaches wont care if we delete it or not
_on_raw_message_delete
does not delete message from cache
Honestly, I'm going to disagree here. Bots with uncapped message caches might not necessarily want deleted messages, simply just wanting an easy way to have all "alive" messages for stuff (for example, a starboard bot may want every message to be kept so reaction events work faster, but having deleted messages would be a waste since they're not being reacted to).
Personally, I can't think of many cases where you would want deleted messages (for longer than the MessageDelete event), even with an uncapped cache. Sniping, I guess? They can cache that themselves for their own purposes (and I say this as someone who's made sniping stuff), hooking onto the delete event, which should be right before the message is deleted from the cache ideally. And honestly, I feel like there's more cases where we don't want a deleted message over where we do.
And even with the TTL cache, you still kinda do wanna do that since you don't want to accidentally get a deleted message. For a personal example, in one of my bots (a starboard one, I'll admit my examples are limited lol), you can specify a message ID (among other methods) to force star a message. Getting a (presumably recently) deleted message there would be awkward at the very least.
Sure, a property/attribute would be nice, but it's an extra check to something I don't see as very useful.
There's probably some very valid reason to have deleted messages in the cache that I'm missing. But even if they exist, I feel like at the very least, deleting messages from the cache should be on at default, with maybe a toggle to turn that off.
from naff.
I don't know whether this should be appended here or in another issue or not, but I run into an
AttributeError: 'set' object has no attribute 'append'
(coro ChannelEvents._on_raw_channel_create
in file dis_snek/event_processors/channel_events.py:18
)
from naff.
I don't know whether this should be appended here or in another issue or not, but I run into an
AttributeError: 'set' object has no attribute 'append'
(coroChannelEvents._on_raw_channel_create
in filedis_snek/event_processors/channel_events.py:18
)Which version do you use? Its probably fixed in 6.0.0
Oh, nvm, I was using v3.0.0 with Python 3.9... (I thought I was using the latest version from pip)
I'll go and upgrade to 3.10.
from naff.
re
_on_raw_guild_ban_add
,_on_raw_guild_ban_remove
should update members obj, or members set in guild or something
We dont cache ban lists or ban states in guilds or member objects. Adding that functionality is out-of-scope of this issue, skipping
from naff.
re
There are also inconsistencies and wrong typing/naming in discord event classes themselves
I cant see where this is the case, examples would be nice.
from naff.
Related Issues (20)
- Missing docs
- [FEAT] Port Sentry integration from taipan to main library HOT 4
- [FEAT] bot.create_guild()
- [FEAT] Application Command Localization
- [Feat] Support raw strings in Embed.footer HOT 2
- [FEAT] Optional presence/activity cache HOT 2
- [BUG] `Message.reply` fails in DMs + no channel for DMs HOT 1
- [FEAT] Add "delete_after" as (float) param to .send functions.
- [BUG] Caching issue when editing really fast
- [BUG] `GuildVoice.position` is not working as it should HOT 2
- [BUG] Command Syncing HOT 1
- [BUG] bot.is_ready not reset during reconnect
- [FEAT] Add Thread Support for Components HOT 1
- [FEAT] New select menu options
- Bot has exceeded global ratelimit, locking REST API for 0.002 seconds HOT 1
- TypeError: Member.__init__() missing 1 required keyword-only argument: 'joined_at'
- AttributeError: 'NoneType' object has no attribute '_voice_member_ids'
- [FEAT] Modal builder class decorator HOT 1
- [FEAT] Add `Role.clone()` method
- [FEAT] Paginator stuff HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from naff.