mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
23 lines
1.0 KiB
C#
23 lines
1.0 KiB
C#
using NadekoBot.Db.Models;
|
|
|
|
namespace NadekoBot.Modules.Xp.Services;
|
|
|
|
public interface IClubService
|
|
{
|
|
Task<bool?> CreateClubAsync(IUser user, string clubName);
|
|
ClubInfo? TransferClub(IUser from, IUser newOwner);
|
|
Task<bool?> ToggleAdminAsync(IUser owner, IUser toAdmin);
|
|
ClubInfo? GetClubByMember(IUser user);
|
|
Task<bool> SetClubIconAsync(ulong ownerUserId, string? url);
|
|
bool GetClubByName(string clubName, out ClubInfo club);
|
|
bool ApplyToClub(IUser user, ClubInfo club);
|
|
bool AcceptApplication(ulong clubOwnerUserId, string userName, out DiscordUser discordUser);
|
|
ClubInfo? GetClubWithBansAndApplications(ulong ownerUserId);
|
|
bool LeaveClub(IUser user);
|
|
bool SetDescription(ulong userId, string? desc);
|
|
bool Disband(ulong userId, out ClubInfo club);
|
|
bool Ban(ulong bannerId, string userName, out ClubInfo club);
|
|
bool UnBan(ulong ownerUserId, string userName, out ClubInfo club);
|
|
bool Kick(ulong kickerId, string userName, out ClubInfo club);
|
|
List<ClubInfo> GetClubLeaderboardPage(int page);
|
|
} |