mirror of
https://github.com/WCBROW01/zblock.git
synced 2025-12-11 20:18:07 -05:00
Remove all feeds associated with a guild when the bot leaves
This commit is contained in:
@ -60,6 +60,9 @@ zblock_feed_info_err zblock_feed_info_insert(PGconn *conn, zblock_feed_info *fee
|
||||
// deletes feed from the database
|
||||
zblock_feed_info_err zblock_feed_info_delete(PGconn *conn, const char *url, u64snowflake channel_id);
|
||||
|
||||
// deletes all feeds associated with a guild from the database
|
||||
zblock_feed_info_err zblock_feed_info_delete_all_guild(PGconn *conn, u64snowflake guild_id);
|
||||
|
||||
// updates the last_pubDate field of a given feed in the database
|
||||
zblock_feed_info_err zblock_feed_info_update(PGconn *conn, zblock_feed_info_minimal *feed);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user