public async Task ShowProfileAsync(CommandContext ctx, MiunieUser m = null) { if (m is null) { m = _entityConvertor.ConvertUser(ctx.Member); } var channel = _entityConvertor.ConvertChannel(ctx.Channel); await _profileService.ShowProfileAsync(m, channel); }
public async Task ShowProfileAsync(MiunieUser user = null) { if (user is null) { user = _entityConvertor.ConvertUser(Context.User as SocketGuildUser); } var channel = _entityConvertor.ConvertChannel(Context.Channel as SocketGuildChannel); await _profileService.ShowProfileAsync(user, channel); }
public async Task ShowTimeForUserComparedToCurrentUser(DateTime requestTime, string verb, MiunieUser user) { var u = _entityConvertor.ConvertUser(Context.User as SocketGuildUser); var c = _entityConvertor.ConvertChannel(Context.Channel as SocketGuildChannel); await _service.OutputCurrentTimeComparedToInputForUserAsync(u, requestTime, verb, user, c); }
public async Task GetMyPersonalData() { var u = _entityConvertor.ConvertUser(Context.User as SocketGuildUser); await _service.OutputUserJsonDataAsync(u); }
public async Task ListDirectoryAsync(CommandContext ctx) { var chan = _entityConvertor.ConvertChannel(ctx.Channel); var user = _entityConvertor.ConvertUser((DiscordMember)ctx.User); await _directoryService.ListDirectoryAsync(chan, user); }