Enhance guild management features in the owner panel
- Updated the guilds API to support searching by both guild name and ID, improving user experience. - Increased the number of guilds retrieved from the database from 100 to 200 for better visibility. - Implemented invite creation functionality, allowing owners to generate invites directly from the guild management interface. - Enhanced the UI to display guild names, icons, and member counts, providing a more informative overview. - Updated localization files to reflect new search capabilities and invite-related messages in both English and German.
This commit is contained in:
@@ -79,6 +79,19 @@ export const GuildBlacklistSchema = z.object({
|
||||
|
||||
export type GuildBlacklist = z.infer<typeof GuildBlacklistSchema>;
|
||||
|
||||
/** Enriched guild row for the Owner panel guild manager. */
|
||||
export const OwnerGuildListItemSchema = z.object({
|
||||
id: snowflake,
|
||||
name: z.string().nullable(),
|
||||
iconUrl: z.string().url().nullable(),
|
||||
memberCount: z.number().int().nonnegative().nullable(),
|
||||
locale: z.string().min(1).max(16),
|
||||
createdAt: z.string(),
|
||||
blacklisted: z.boolean()
|
||||
});
|
||||
|
||||
export type OwnerGuildListItem = z.infer<typeof OwnerGuildListItemSchema>;
|
||||
|
||||
export const ChangelogEntrySchema = z.object({
|
||||
id: z.string().optional(),
|
||||
version: z.string().min(1).max(32),
|
||||
|
||||
Reference in New Issue
Block a user