Rename AddXp function to proper naming convention

This commit is contained in:
Daniel_I_Am 2020-08-11 03:26:28 +02:00
parent 7c22efbb49
commit c0acf1ff79
No known key found for this signature in database
GPG Key ID: 80C428FCC9743E84
2 changed files with 3 additions and 3 deletions

View File

@ -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<string>("Experience:Commands", context.Guild.Id, "false")))
ExperienceHandler.addXP(context);
ExperienceHandler.AddXp(context);
await _commands.ExecuteAsync(context, argPos, _services);
}

View File

@ -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
{