mirror of
https://github.com/Syping/dtranslatebot.git
synced 2026-04-01 21:30:40 +02:00
delete channel from settings when no target is left
- converted some pointers to references - simplified some constructors
This commit is contained in:
parent
c8239e2517
commit
616ce0055b
7 changed files with 142 additions and 131 deletions
|
|
@ -30,8 +30,8 @@ namespace bot {
|
|||
|
||||
class database {
|
||||
public:
|
||||
explicit database();
|
||||
virtual ~database();
|
||||
explicit database() = default;
|
||||
virtual ~database() = default;
|
||||
virtual void add_channel_target(dpp::snowflake guild_id, dpp::snowflake channel_id, const bot::settings::target &target);
|
||||
virtual void delete_channel(dpp::snowflake guild_id, dpp::snowflake channel_id);
|
||||
virtual void delete_channel_target(dpp::snowflake guild_id, dpp::snowflake channel_id, const std::string &target);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue