[Commands] Cleanup #guild Command (#2693)

# Commands
- Adds `#guild search [Search Criteria]` sub command.

# Notes
- Allows operators to search for a guild instead of listing all guilds at once.
- Adds a method for sending guild sub commands to make code drier.
This commit is contained in:
Alex King
2023-01-04 16:20:43 -05:00
committed by GitHub
parent b15e73e1b2
commit d9f437d90f
4 changed files with 122 additions and 50 deletions
+2 -1
View File
@@ -80,7 +80,8 @@ public:
//called by worldserver when it receives a message from world.
void ProcessWorldPacket(ServerPacket *pack);
void ListGuilds(Client *c) const;
void ListGuilds(Client *c, std::string search_criteria = std::string()) const;
void ListGuilds(Client *c, uint32 guild_id = 0) const;
void DescribeGuild(Client *c, uint32 guild_id) const;