Skip to content

Commit

Permalink
extremely high quality (not) workaround
Browse files Browse the repository at this point in the history
didn't even tested it yet
  • Loading branch information
mctaylors committed Jul 1, 2024
1 parent 2aaed56 commit 1dffff2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions TeamOctolings.Octobot/Commands/RemindCommandGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private Task<Result> ListRemindersAsync(MemberData data, Snowflake guildId, IUse
{
var reminder = data.Reminders[i];
builder.AppendBulletPointLine(string.Format(Messages.ReminderPosition, Markdown.InlineCode((i + 1).ToString())))
.AppendSubBulletPointLine(string.Format(Messages.ReminderText, Markdown.InlineCode(reminder.Text)))
.AppendSubBulletPointLine(string.Format(Messages.ReminderText, reminder.Text))
.AppendSubBulletPointLine(string.Format(Messages.ReminderTime, Markdown.Timestamp(reminder.At)))
.AppendSubBulletPointLine(string.Format(Messages.DescriptionActionJumpToMessage, $"https://discord.com/channels/{guildId.Value}/{reminder.ChannelId}/{reminder.MessageId}"));
}
Expand Down Expand Up @@ -182,7 +182,7 @@ private async Task<Result> AddReminderAsync(TimeSpan timeSpan, string text, Guil
});

var builder = new StringBuilder()
.AppendBulletPointLine(string.Format(Messages.ReminderText, Markdown.InlineCode(text)))
.AppendBulletPointLine(string.Format(Messages.ReminderText, text))
.AppendBulletPoint(string.Format(Messages.ReminderTime, Markdown.Timestamp(remindAt)));
var embed = new EmbedBuilder().WithSmallTitle(
string.Format(Messages.ReminderCreated, executor.GetTag()), executor)
Expand Down Expand Up @@ -279,7 +279,7 @@ private async Task<Result> EditReminderTimeAsync(int index, string value, Member
data.Reminders.RemoveAt(index);

var builder = new StringBuilder()
.AppendBulletPointLine(string.Format(Messages.ReminderText, Markdown.InlineCode(oldReminder.Text)))
.AppendBulletPointLine(string.Format(Messages.ReminderText, oldReminder.Text))
.AppendBulletPoint(string.Format(Messages.ReminderTime, Markdown.Timestamp(remindAt)));
var embed = new EmbedBuilder().WithSmallTitle(
string.Format(Messages.ReminderEdited, executor.GetTag()), executor)
Expand Down Expand Up @@ -309,7 +309,7 @@ private async Task<Result> EditReminderTextAsync(int index, string value, Member
data.Reminders.RemoveAt(index);

var builder = new StringBuilder()
.AppendBulletPointLine(string.Format(Messages.ReminderText, Markdown.InlineCode(value)))
.AppendBulletPointLine(string.Format(Messages.ReminderText, value))
.AppendBulletPoint(string.Format(Messages.ReminderTime, Markdown.Timestamp(oldReminder.At)));
var embed = new EmbedBuilder().WithSmallTitle(
string.Format(Messages.ReminderEdited, executor.GetTag()), executor)
Expand Down Expand Up @@ -367,7 +367,7 @@ private Task<Result> DeleteReminderAsync(MemberData data, int index, IUser bot,
var reminder = data.Reminders[index];

var description = new StringBuilder()
.AppendBulletPointLine(string.Format(Messages.ReminderText, Markdown.InlineCode(reminder.Text)))
.AppendBulletPointLine(string.Format(Messages.ReminderText, reminder.Text))
.AppendBulletPointLine(string.Format(Messages.ReminderTime, Markdown.Timestamp(reminder.At)));

data.Reminders.RemoveAt(index);
Expand Down

0 comments on commit 1dffff2

Please sign in to comment.