1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-05-14 01:36:08 +03:00

Add a new .editorconfig and reformat code (#76)

*I'll start working on features and bugfixes after this PR, I promise*
very short summary:
- no more braceless statements
- braces are on new lines now
- `sealed` on everything that can be `sealed`
- no more awkwardly looking alignment of fields/parameters
- no more `Service` suffix on service fields. yeah.
- no more `else`s. who needs them?
- code style is now enforced by CI

---------

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2023-08-03 01:51:16 +05:00 committed by GitHub
parent 4cb39a34b5
commit 84e730838b
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 2917 additions and 623 deletions

View file

@ -3,14 +3,16 @@ namespace Boyfriend.Data;
/// <summary>
/// Stores information about a member
/// </summary>
public class MemberData {
public MemberData(ulong id, DateTimeOffset? bannedUntil) {
public sealed class MemberData
{
public MemberData(ulong id, DateTimeOffset? bannedUntil)
{
Id = id;
BannedUntil = bannedUntil;
}
public ulong Id { get; }
public ulong Id { get; }
public DateTimeOffset? BannedUntil { get; set; }
public List<ulong> Roles { get; set; } = new();
public List<Reminder> Reminders { get; } = new();
public List<ulong> Roles { get; set; } = new();
public List<Reminder> Reminders { get; } = new();
}