From c0acf1ff797936b7f0aed4a9de64244ae0a01fef Mon Sep 17 00:00:00 2001 From: Daniel-I-Am Date: Tue, 11 Aug 2020 03:26:28 +0200 Subject: [PATCH] Rename AddXp function to proper naming convention --- ChaosBot/Discord/Services/CommandHandler.cs | 4 ++-- ChaosBot/Discord/Services/ExperienceHandler.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ChaosBot/Discord/Services/CommandHandler.cs b/ChaosBot/Discord/Services/CommandHandler.cs index 8c461be..af9d4a3 100644 --- a/ChaosBot/Discord/Services/CommandHandler.cs +++ b/ChaosBot/Discord/Services/CommandHandler.cs @@ -66,12 +66,12 @@ namespace ChaosBot.Discord.Services if (!(message.HasMentionPrefix(_client.CurrentUser, ref argPos) || message.HasStringPrefix(prefix, ref argPos))) { - ExperienceHandler.addXP(context); + ExperienceHandler.AddXp(context); return; } if(Convert.ToBoolean(ConfigurationRepository.GetValue("Experience:Commands", context.Guild.Id, "false"))) - ExperienceHandler.addXP(context); + ExperienceHandler.AddXp(context); await _commands.ExecuteAsync(context, argPos, _services); } diff --git a/ChaosBot/Discord/Services/ExperienceHandler.cs b/ChaosBot/Discord/Services/ExperienceHandler.cs index 99a5c82..2f890d1 100644 --- a/ChaosBot/Discord/Services/ExperienceHandler.cs +++ b/ChaosBot/Discord/Services/ExperienceHandler.cs @@ -17,7 +17,7 @@ namespace ChaosBot.Discord.Services { private static readonly ILogger _logger = Program.Logger; - public static async void addXP(SocketCommandContext context) + public static async void AddXp(SocketCommandContext context) { try {